[Rose CP 1.5 Tutorial] How to add a new page

Status
Not open for further replies.
Junior Spellweaver
Joined
Jan 18, 2006
Messages
196
Reaction score
0
Location
Belgium
Here is how you add a new page to Rose CP.

First, open functions.php and find:
Code:
		    <li><a href="?act=home">Home</a></li>
		    <li><a href="?act=register">Register</a></li>
		    <li><a href="?act=forgot">Forgot Password</a></li>
		    <li><a href="?act=rankings">Rankings</a></li>
		    <li><a href="?act=downloads">Downloads</a></li>
		    <li><a href="'. $my_forum .'">Forum</a></li>

If you want to add a link, just add this under the last link:
for example, a faq. page.
Code:
<li><a href="?act=faq">F.A.Q.</a></li>

But that's not all, you need to make a new .php file in the modules folder.
So go to the modules folder and make a new file called faq.php
Now add this in the file:
Code:
<?php
if (!stristr($_SERVER['PHP_SELF'], "index.php") AND !stristr($_SERVER['SCRIPT_NAME'], "index.php")) { die ("Uy!! Unsa gud ni??"); }
$content = '
CONTENT GOES HERE
';

$template->AddParam('content',$content);


?>

Now you have a new page in your CP.
Thank you for reading ^_^
 
Status
Not open for further replies.
Back