PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

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

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 Visit poster's website AIM Address Yahoo Messenger
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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!
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum