Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 10-24-2011, 02:20 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 134,684
Tequila is on a distinguished road
Default

Since I've finally gotten time, here's mine as well. :3

Colors are just random, fix as needed. :3
Also comes with a read me of sorts:
Quote:
You'll need to edit a portion of your inc/functions.php file to get the sidebar to display properly. :3

Copy & Paste this part into your functions file:
PHP Code:
// Edit of functions by tequila

function getsidebar() {

    
//This function determines what shows in the side bar of the template

    
$isloggedin $GLOBALS['isloggedin'];

    
$loggedinname $GLOBALS['loggedinname'];

    if(
$isloggedin == "yes") {

        
$msgctr "<a href='messages.php'>Archive</a>";

        
$query "SELECT * FROM ".$GLOBALS['prefix']."messages WHERE touser='".$loggedinname."' and status='unread'";

        
$result runquery($query);

        
$num mysql_num_rows($result);

        if(
$num 0) {

        
$msgctr "<a href='messages.php'>Scrolls <b>(".$num.")</b></a>";

        }

// Feel free to keep this url for coins if you use them
// otherwise reset to whatever you would like.
// For now the money links to the account page.

        
$sidebar "
        <a href='profile.php?user='
{$row['username']}'>{$row['username']}</a>
<a href="
account.php">{$GLOBALS['money']}<img src='http://i42.tinypic.com/1zwp1mf.jpg' border='0'></a>
        <a href='myadopts.php'>My Adopts</a>
        <a href='inventory.php'>Inventory</a>
        "
.$msgctr."
        <a href='logout.php'>Log Out</a>"
;



           
$query "SELECT * FROM ".$GLOBALS['prefix']."users WHERE username='".$loggedinname."' and usergroup='1'";

           
$result runquery($query);

           
$usercancp mysql_num_rows($result);



        if(
$usercancp  != 0) {

            
$sidebar .= "<li><a href='admin.php'>Admin Center</a></li><br />";

        }



        
$query1 runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username != 'Visitor'");

        
$total1 mysql_num_rows($query1);

        
$query2 runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username = 'Visitor'");

        
$total2 mysql_num_rows($query2);

            

        
$sidebar .= "</ul>";

    }

    else {

        
$sidebar "<b><u>Member Login:</u></b><br />

        <form name='form1' method='post' action='login.php'>

          <p>Username: 

            <input name='username' type='text' id='username'>

        </p>

          <p>Password: 

            <input name='password' type='password' id='password'>

        </p>

          <p>

            <input type='submit' name='Submit' value='Log In'>

          </p>

        </form>Don't have an account?<br /><a href='register.php'>Register Free</a><br /><a href='forgotpass.php'>Forgot Password?</a>"
;

        
$query1 runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username != 'Visitor'");

        
$total1 mysql_num_rows($query1);

        
$query2 runquery("SELECT * FROM ".$GLOBALS['prefix']."online WHERE username = 'Visitor'");

        
$total2 mysql_num_rows($query2);

        
$sidebar .= "";



    }

    return 
$sidebar;


// End of sidebar portion. 
Quote:
Don't forget to edit the line in the header to tell where the css file is located. :3

Enjoy after changing colors to suit. :3

tequila ;3
Nicely done chibi. :3 Did you have problems with the drop down html?
Attached Files
File Type: zip iris-spider.zip (2.9 KB, 3 views)
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
 


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
How to create an image map collierox Tutorials and Tips 3 03-13-2018 04:11 AM
How To Create an Explore System in Mys. 1.3.4 cailynmae Tutorials and Tips 42 07-17-2017 01:25 PM
How do i create my site? crystalwolftear Feedback and Suggestions 3 04-28-2014 10:48 PM
Looking for someone to create me a theme. Infernette Staff Central 16 11-26-2013 08:13 PM
Help create this theme? budz Templates and Themes 0 11-06-2011 11:36 AM


All times are GMT -5. The time now is 08:41 AM.

Currently Active Users: 2372 (0 members and 2372 guests)
Threads: 4,082, Posts: 32,047, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636