Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2011, 04:00 PM
LucasA33's Avatar
LucasA33 LucasA33 is offline
Member
 
Join Date: Jul 2011
Posts: 144
Gender: Male
Credits: 12,423
LucasA33 is on a distinguished road
Default Where can I edit the "Member Links".

I'm talking about the "View your Adoptables, Change Theme ect.. ect.."
and those stuff, I can't seem to find them and I want to remove the change theme link, ect..
Reply With Quote
  #2  
Old 08-20-2011, 04:01 PM
Slix's Avatar
Slix Slix is offline
Member
 
Join Date: Jun 2010
Posts: 14
Credits: 2,232
Slix
Default

It's under inc>functions.php. Search for "sidebar".
__________________
Poliwager ~ Pokémon Forums ~ Adopt a Pokémon

Reply With Quote
  #3  
Old 08-20-2011, 04:03 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 335,375
Hall of Famer is on a distinguished road
Default

I believe the corresponding script can be found inside functions.php.

Well here you are:

PHP Code:
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'>Messages</a>";
        
$query "SELECT * FROM ".$GLOBALS['prefix']."messages WHERE touser='".$loggedinname."' and status='unread'";
        
$result runquery($query);
        
$num mysql_numrows($result);
        if(
$num 0) {
        
$msgctr "<a href='messages.php'>Messages <b>(".$num.")</b></a>";
        }
        
$sidebar "You have {$GLOBALS['money']} {$GLOBALS['settings']['cost']}.<br />
        <a href='donate.php'>Donate money to friends</a><br />
        <br /><strong>Your links:</strong><br />
        <ul><li><a href='adopt.php'>Adopt New Pets</a></li>
        <li><a href='pound.php'>Acquire Pounded Pets</a></li>
        <li><a href='myadopts.php'>Manage Adoptables</a></li>
        <li><a href='account.php'>Go to My Account</a></li>
        <li>"
.$msgctr."
        <li><a href='changestyle.php'>Change Theme</a></li>
        <li><a href='logout.php'>Log Out</a></li>"
;

           
$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 .= "<a href='online.php'>This site has ".$total1." members and ".$total2." guests online.</a>";

        
        
$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 .= "<br />This site currently has ".$total1." members and ".$total2." guests.";

    }
    return 
$sidebar;

This is where sidebar is defined, remove the line:

PHP Code:
<li><a href='changestyle.php'>Change Theme</a></li
It should fix your problem.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #4  
Old 08-20-2011, 04:05 PM
LucasA33's Avatar
LucasA33 LucasA33 is offline
Member
 
Join Date: Jul 2011
Posts: 144
Gender: Male
Credits: 12,423
LucasA33 is on a distinguished road
Default

Thank you, both
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
"Fairy State" theme by Bobbybighoof (Mysidia 1.3.3) bobbybig Templates and Themes 3 07-18-2018 06:54 PM
Removing of prefix "class", "abstract", "interface" Suggestions FounderSim Suggestions and Feature Requests 3 10-05-2014 05:35 PM
"Nicnack Shop" by Bobbybighoof (mysidia v1.3.3) bobbybig Templates and Themes 5 04-15-2013 03:11 PM
Secondary "RARE" cash option? Tequila Questions and Supports 4 09-17-2012 09:18 AM
[Updated] AJAX Sortable Adoptables on "myadopts.php" Page fadillzzz Mys v1.2.x Mods 57 05-29-2012 02:16 AM


All times are GMT -5. The time now is 06:31 PM.

Currently Active Users: 9843 (0 members and 9843 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