Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...
Author Message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Jun 15, 2004 3:16 am Reply with quote

I'm looking for pointers on how to modify the main menu block.
What I am trying to acheive is for the menu links to appear in bold blue if the link is set visible for 'Guest'
Links appear in bold black for links set to visible for 'Registered users'.
Any idea anyone - short of hard coding all the links individually which I can do as a last resort.
 
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Jun 15, 2004 3:53 am Reply with quote

I will assume that you mean block-Modules.php? If so, your basic approach would be to use the is_user() function and determine if the person is a user or visitor. Then, based on the true/false set a variable, say $color="blue", and wrap the menu link in a <span style="color:$color">LINK</span>. Enough pointers?
 
View user's profile Send private message
Guardian2003







PostPosted: Tue Jun 15, 2004 4:06 am Reply with quote

I can follow the logic of that but I'm not a coder (not php anyway) BUT I'll give it a go and yes it was indeed block-Modules.php I was referring to as this is where the menu call is stored.

Many thanks Raven!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Seeking applications ...

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 ©