Blue Icebox |
04-26-2009 12:00 AM |
How to make Index Change
Well, right now, you must edit your index in the ACP... But what if you wanted the guest to have a different index then the members? What if there's some BBCode that does not support what you want to do... like videos ect...
Here's the solution!
Find the comments
PHP Code:
// **********************************************************************
// End Prepwork - Output the page to the user
// This page sets up the new adoptions and then forwards the user to
// a secondary page for adoptables processing.....
// **********************************************************************
and
PHP Code:
// **********************************************************************
// Begin Template Definition
// **********************************************************************
and replace everything between those comments with
PHP Code:
// Lets see if the user is logged in or not...
if($isloggedin != "no"){
// So the member IS logged in...
$article_title = "TITLE";
$article_content = "HTML DESCRIPTION 4 MEMBERS";
// What guests see...
}
else if($isloggedin != "yes"){
// So the guest is NOT logged in...
$article_title = "TITLE";
$article_content = "HTML DESCRIPTION 4 GUESTS";
}
be sure to replace the title and the descriptions! Html is supported! :D remember that within the [" "] boundaries, you may only use ['] to replace ["]
:D[hr]
PS you can even do this to the tos.php!!
|