PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
layingback
New Member
New Member


Joined: Feb 16, 2004
Posts: 2

PostPosted: Mon Feb 16, 2004 1:52 pm Reply with quote Back to top

I'm trying to make a site easier to use initially. I'd like to reduce the menu list that appears under Module Navigation to only show those items which are in the "All Visitor" category, unless teh user is already logged on - in which case they should see everything as normal. I.e. Hide everything that is "Registered Members Only" until after they have registered/logged in. So it doesn't appear so "daunting" to the novice user of the site.

Anyone know of a hack to block-Modules.php to do this?

Thanks!
View user's profile Send private message
layingback
New Member
New Member


Joined: Feb 16, 2004
Posts: 2

PostPosted: Mon Feb 16, 2004 7:13 pm Reply with quote Back to top

OK, if anyone else wants this same effect, here's how I did it:

In module block-Modules.php

Find line
Code:
global $prefix, $db, $admin;

and change to
Code:
global $prefix, $db, $admin, $user;

Find line
Code:
if ((is_admin($admin) AND $view == 2) OR $view != 2) {

and change to
Code:
if (is_admin($admin) OR (is_user($user) AND $view != 2) OR $view == 0) {


Note that Your Account will still appear on a guest user's menu, as access to this is required in order to log in Wink Similarly if you want to allow users to log in via the Forum's Log in to check your private messages button then Private Messages will also have to be set to 'All Visitors' and appear on the guest user's menu.

But it still makes for a much cleaner menu for the casual visitor.
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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