How to make Index Change

Forum
Last Post
Threads / Messages

Blue Icebox

Member
Member
Joined
Jan 13, 2009
Messages
45
Points
0
Mysidian Dollar
3,336
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:
// **********************************************************************
// 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:
// **********************************************************************
// Begin Template Definition
// **********************************************************************

and replace everything between those comments with
PHP:
// 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

PS you can even do this to the tos.php!!
 
If there is something BBCode doesn't support, simply edit out the code parse.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,277
Messages
33,119
Members
1,602
Latest member
BerrieMilk
BETA

Latest Threads

Top