Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.

IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.

You are not logged in.

#1 08-05-2011 14:01:19

tandarts
Members
From: The Netherlands
Registered: 26-09-2008
Posts: 15

Add new page

Thank you for the great script.

Is it possible (and easy) to create an blank page I can use inside my blog area.

There is no need to edit it inside the admin panel (would be nice though) because I could use an iframe

I was thinking to copy the profile template, but I have no idea how to get this correct in my blog.

Offline

#2 10-05-2011 05:52:45

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,062

Re: Add new page

Yes, pretty easy. Copy profile.tpl.php. Lets say you call it profile2.tpl.php

In index.php find around line 850:

case 'captcha':
$MWC = new PhpCaptcha();
$MWC->Create();
break;

After that add:

case 'profile2':
include(FOLDER_PATH.'inc/header.php');
$tpl = new Savant2();
$tpl->display('themes/'.THEME.'/profile2.tpl.php');
include(FOLDER_PATH.'inc/footer.php');
break;

Access new page as 'index.php?cmd=profile2'

If you are using search engine friendly urls, open .htaccess.

Find:

RewriteRule ^(profile|contact|all-archive|rss-feed).html$ index.php?cmd=$1

Change to:

RewriteRule ^(profile|contact|all-archive|rss-feed|profile2).html$ index.php?cmd=$1

Access page as profile2.html


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy