Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
Posted:
Tue Jun 15, 2004 3:16 am
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.
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Tue Jun 15, 2004 3:53 am
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?
Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
Posted:
Tue Jun 15, 2004 4:06 am
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.
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