Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Templates and Themes

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2009, 12:00 AM
Blue Icebox Blue Icebox is offline
Member
 
Join Date: Jan 2009
Posts: 45
Credits: 5,061
Blue Icebox
Default 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!!
Reply With Quote
  #2  
Old 04-27-2009, 04:43 PM
Ashje Ashje is offline
Member
 
Join Date: Jan 2009
Posts: 179
Credits: 10,078
Ashje
Default RE: How to make Index Change

If there is something BBCode doesn't support, simply edit out the code parse.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mys v1.3.4 Index Page Mod (Use PHP inside Index!) Kyttias Mys v1.3.x Mods 1 01-19-2015 10:49 PM
How would I change template.tpl to index.html? LucasA33 Questions and Supports 10 04-05-2014 04:16 AM
Make users make their own website on your site ... kitty08 Mys v1.2.x Mods 0 10-27-2011 03:49 PM
2 errors on index.php Wrim Questions and Supports 2 04-22-2010 06:27 PM
change password and change email Blackmagic Questions and Supports 5 03-05-2009 03:13 AM


All times are GMT -5. The time now is 03:47 PM.

Currently Active Users: 9285 (0 members and 9285 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636