Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Templates and Themes (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=26)
-   -   How to make Index Change (http://www.mysidiaadoptables.com/forum/showthread.php?t=736)

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!!

Ashje 04-27-2009 04:43 PM

RE: How to make Index Change
 
If there is something BBCode doesn't support, simply edit out the code parse.


All times are GMT -5. The time now is 02:50 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.