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
  #11  
Old 07-18-2009, 12:38 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,714
BMR777 is on a distinguished road
Default RE: Link questions

The second and third pieces of code you have, what files are you placing these in? If you're placing it in the getlinks function in functions.php you might have to call the logincheck() function before using the code, such as this:

PHP Code:
$loginstatus logincheck();
$isloggedin $loginstatus[loginstatus];
$loggedinname $loginstatus[username];

if(
$isloggedin == "yes"){
    
$royallinks "
        <li><a href='pages.php?page=royals'>My Royals</a>
        <ul>
            <li><a href='adopt.php'>Adopt a Royal</a></li>
            <li><a href='myadopts.php'>Care for Royals</a></li>
            <li><a href='promo.php'>Rare Royals</a></li>
        </ul>
        </li>
    "
;
}

else{
    
$royallinks "";


if(
$isloggedin == "yes"){
        
$accountlinks "
        <li><a href='account.php'>Account</a>
        <ul>
            <li><a href='profile.php?user="
.$username."'>View Profile</a></li>
            <li><a href='account.php?act=changeemail'>Change Email</a></li>
            <li><a href='account.php?act=changepass'>Change Password</a></li>
            <li><a href='forgotpass.php'>Reset Password</a></li>
            <li><a href='account.php?act=changesettings'>Settings</a></li>
        </ul>
        </li>"
;
}

else{
    
$accountlinks "";
}

if(
$isloggedin == "yes"){
    
$pmlinks ="
        <li><a href='messages.php'>Inbox</a></li>
        <li><a href='messages.php?act=send'>Compose Message</a></li>"
;
}

else{
    
$pmlinks ="";

See if that works. :)
Brandon
Reply With Quote
  #12  
Old 07-18-2009, 02:07 PM
arlecchina arlecchina is offline
Member
 
Join Date: Feb 2009
Posts: 65
Credits: 3,605
arlecchina
Default RE: Link questions

That worked, thanks Brandon!
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
Link Dots voni Questions and Supports 6 05-13-2014 10:20 AM
Link MaximumRide Questions and Supports 6 04-23-2012 04:52 PM
how change this link ? :( kratosvr Questions and Supports 5 08-24-2011 09:09 AM
PHP in a link? Saphira Questions and Supports 9 01-31-2009 11:30 AM
Forums Link Ashje Questions and Supports 2 01-24-2009 12:28 AM


All times are GMT -5. The time now is 10:05 AM.

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