Ravens PHP Scripts: Forums
 

 

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



Joined: Mar 26, 2006
Posts: 87
Location: UK

PostPosted: Tue Mar 28, 2006 11:26 pm Reply with quote

Wasn't sure wether to post this in Modules or Blocks.

You'd have thought that God Admin would be able to see the memberlist no matter what "Viewable to" was set at. Rolling Eyes

See screenshots:
  • Only registered users can see links on this board! Get registered or login!
  • Only registered users can see links on this board! Get registered or login!

Is the subject achievable?

Thanks.
 
View user's profile Send private message Visit poster's website
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Wed Mar 29, 2006 8:56 am Reply with quote

No, the visibility that says "Registered users only" means you must be using a Nuke user account to see it. Neither the misnomer "superuser" or God account apply.. they are a Nuke admin account.

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
fade2gray







PostPosted: Wed Mar 29, 2006 9:50 am Reply with quote

evaders99 wrote:
No, the visibility that says "Registered users only" means you must be using a Nuke user account to see it. Neither the misnomer "superuser" or God account apply.. they are a Nuke admin account.


Bang Head Did you not see Only registered users can see links on this board! Get registered or login! screenshot taken by user with admin privelidges. Question Confused
 
evaders99







PostPosted: Wed Mar 29, 2006 3:35 pm Reply with quote

It says there is one member online. Thus you still must be logged in as a Nuke user account. Nuke user accounts (through Your_Account) and Nuke admin accounts (through admin.php) are completely seperate. Despite the name "superuser", it is not a user account... it is an admin account.
 
fade2gray







PostPosted: Sat Apr 01, 2006 8:23 am Reply with quote

Ok... if it can't be done by making changes to the configuration, could Nuke be hacked to do this?
 
evaders99







PostPosted: Sat Apr 01, 2006 5:36 pm Reply with quote

Just make sure you are logged in as a Nuke user and a Nuke admin
That's the way the system has always worked
 
fade2gray







PostPosted: Sun Apr 02, 2006 7:38 pm Reply with quote

evaders99 wrote:
Just make sure you are logged in as a Nuke user and a Nuke admin

I now understand and accept that, but....


evaders99 wrote:
That's the way the system has always worked

... I refer you Only registered users can see links on this board! Get registered or login!.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Apr 05, 2006 7:00 am Reply with quote

This has been fixed in the v2.02.02 patch release due out soon. In the meantime, if you would like this behaviour to be more in line with the core nuke version:

=== OPEN FILE ===

blocks/block-Modules.php

=== FIND CODE ===

Code:


            if ($view == 0) {
                $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            } elseif ($view == 1 AND is_user($user)) {
                $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            } elseif ($view == 2 AND is_admin($admin)) {
                $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            } elseif ($view == 3 AND paid()) {
                $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            } elseif ($view > 3 AND in_groups($groups)) {
              $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            }


=== REPLACE WITH ===

Code:


            if ($view == 0) {
                $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            } elseif (($view == 1 AND is_user($user)) OR is_admin($admin)) {
                $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            } elseif ($view == 2 AND is_admin($admin)) {
                $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            } elseif (($view == 3 AND paid()) OR is_admin($admin)) {
                $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            } elseif ($view > 3 AND in_groups($groups)) {
              $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            }



Thanks goes to Evaders for providing the ideas for the fix!

Regards,
montego

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
fade2gray







PostPosted: Wed Apr 05, 2006 5:17 pm Reply with quote

Works for me, thanks Evaders and Montego.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©