Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
thundarfoot
Regular
Regular


Joined: Jan 16, 2008
Posts: 75

PostPosted: Fri Jan 25, 2008 12:37 pm Reply with quote

I am using deep blue theme.
In theme.php (line 86) there is a line of code that controls making the buttons at the top of the screen.

Code:
 </a><a href="top.htmlics"><img border="0" src="themes/DeepBlue/images/topics.gif" width="140" height="18"alt="Topics" /></a><a href="modules.php?name=Top"><img border="0" src="themes/DeepBlue/images/top10.gif" width="140" height="18" alt="Top" /></a>'



I am editing these to point to my modules or pages, rather than the default ones...fairly simple to swap urls and pics, BUT

I would like to change the last button, topics...to be a log in or out button.
It would need to change the .jpg and the href= based on users loged in status.

Is this possible? with like a if else or something? dont want to chase my tail if this is not possible, looking for examples or advice if it is..

Thank you very very much for any help you can give.
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Fri Jan 25, 2008 12:45 pm Reply with quote

Take a look at fisubice, theme.php. There is this block of code that you might be able to use:

Code:


    cookiedecode($user);
    $username = '';
    if (count($cookie)>1) $username = $cookie[1];
    if (empty($username)) {
        $username = 'Anonymous';
    }
    echo '<body bgcolor="#FFFFFF" text="#516A88" style="margin: 10px">';
            echo ads(0);
    if ($username == 'Anonymous') {
        $theuser = '&nbsp;&nbsp;<a href="modules.php?name=Your_Account">'._LOGIN.'</a> '._OR.' <a href="modules.php?name=Your_Account&amp;op=new_user">'._BREG.'</a>';
    } else {
        $theuser = '&nbsp;&nbsp;'._BWEL." $username!";
    }


It might take a little work cause fisubice uses separate html files and evals while deepblue is all done in-line in the theme. But the basic idea is there.
 
View user's profile Send private message Visit poster's website
thundarfoot
PostPosted: Fri Jan 25, 2008 1:03 pm Reply with quote

ty
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©