Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues
Author Message
blyy
New Member
New Member



Joined: Jun 21, 2008
Posts: 17

PostPosted: Mon Aug 18, 2008 8:21 am Reply with quote

I am having an issue the NSN Groups and the block I created.
I created a group of "Game Admins".
I created a block by hand which contains 2 web links.
The block is set to be viewable by the Game Admins group only.
But only web site admins can see it. The NSN Groups work with modules, emails etc. buy not with my hand made block... any ideas?
Thanks in advance,
blyy
 
View user's profile Send private message
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Mon Aug 18, 2008 10:28 am Reply with quote

Are sure you have selected the option to display the block based on the group you have created.

Under "Who Can View This" you should have Groups Only selected and then under "What Groups" you have to highlight the group that you want to allow to view it.

Sorry if I am stating the obvious, I just want to make sure. Wink
 
View user's profile Send private message
blyy







PostPosted: Mon Aug 18, 2008 10:32 am Reply with quote

Yes I have done this, don't worry about stating the obvious, I hope the solution is obvious and more importantly... easy!
 
jakec







PostPosted: Mon Aug 18, 2008 12:51 pm Reply with quote

OK, any mods?

Have you tried it with one of the standard blocks that comes with RN?

How did you create the block? Through the WYSIWYG editor?
 
blyy







PostPosted: Mon Aug 18, 2008 12:59 pm Reply with quote

mods?
no
Using standard block created with WYSIWHG editor with just 2 links like below:

<p><font face="Arial"><a target="_blank" href="http://xxx.xxx.xxx.xxx:9020/pbsvweb">RCON Web Tool</a></font></p>
<p><font face="Arial"><a target="_blank" href="ftp://xxx:xxx@xxx.xxx.xxx.xxx/blah/cod4/pb/svss/msgpbssv.html">Screen Shots</a></font></p>

I can create a module link that uses the groups.
but the block is only visible to me (admin) unless I make it visible to all. My groups 'GameAdmins' do not have access.
 
jakec







PostPosted: Mon Aug 18, 2008 1:07 pm Reply with quote

Can you set me up a temp admin and user account and I can have a look for you.
 
jakec







PostPosted: Mon Aug 18, 2008 1:35 pm Reply with quote

Cheers I received the PM.

The good news is everything appears to be setup correctly.

I believe the problem is being caused by your theme. If you go into Your Account for a user in that group and change the theme to fisubice the block appears.

I assume this theme uses AutoTheme?
 
blyy







PostPosted: Mon Aug 18, 2008 1:41 pm Reply with quote

Yes it does use autotheme Rolling Eyes
Should I look through their forums for the answer?
Thanks so much for the quick investigation of the issue, yet another reason RN rocks.
 
jakec







PostPosted: Mon Aug 18, 2008 1:44 pm Reply with quote

Yeah probably best to have a look at their forum, someone might have had the problem before. If not they should be able to help.

Unfortunately I don't know enough about Autotheme myself to help any further. Sad
 
jakec







PostPosted: Mon Aug 18, 2008 1:53 pm Reply with quote

Looks like it is a problem that has been around for a while.
[ Only registered users can see links on this board! Get registered or login! ]
 
jakec







PostPosted: Mon Aug 18, 2008 1:58 pm Reply with quote

I found this post at their site: [ Only registered users can see links on this board! Get registered or login! ]
 
mars
Worker
Worker



Joined: Jul 08, 2006
Posts: 123
Location: Bloomsburg,Pennsylvania

PostPosted: Mon Aug 18, 2008 3:20 pm Reply with quote

I will get the AutoTheme developer to look into this.
Those posts are a few years old and the new AutoTheme doesn't replace any core files anymore.

So it may just need a line or two of code adjusted to work properly.

_________________
Visit Our PHPNuke Theme Site 
View user's profile Send private message Visit poster's website
blyy







PostPosted: Tue Aug 19, 2008 9:25 am Reply with quote

Here is Mars' fix which works great.
Thanks to jkec as well for pointing me in the right direction.

Code:
# 

#-----[ OPEN ]------------------------------------------
#modules/AutoTheme/includes/php-nuke/atAPI.php

#-----[ function atBlockLoad() ]------------------------------------------
#
#-----[ FIND ]------------------------------------------
#
             elseif ($view == 3 && !atIsLoggedIn() || atIsAdminUser()) {
                $displaythis = 1;
             }

#
#-----[ AFTER, ADD ]------------------------------------------
#
             elseif ($view > 3 && in_groups($groups)) {
                      $displaythis = 1;
         }


#-----[ function atGetBlocks() ]------------------------------------------
#
#-----[ FIND ]------------------------------------------
#

    $result = sql_query("SELECT bid, bkey, title, content, url, blockfile, view, bposition, weight, active FROM ".$prefix."_blocks $querylang ORDER BY weight ASC", $dbi);

    while (list($bid, $bkey, $title, $content, $url, $blockfile, $view, $position, $weight, $active) = sql_fetch_row($result, $dbi)) {
        $blocklist[$title] = compact("bid", "bkey", "title", "content", "url", "blockfile", "view", "position", "weight", "active");
        $blocklist[$title]['weight'] = (int)$blocklist[$title]['weight'];
    }

#
#-----[ REPLACE WITH ]------------------------------------------
#

    $result = sql_query("SELECT bid, bkey, title, content, url, blockfile, view, bposition, weight, active, groups FROM ".$prefix."_blocks $querylang ORDER BY weight ASC", $dbi);

    while (list($bid, $bkey, $title, $content, $url, $blockfile, $view, $position, $weight, $active, $groups) = sql_fetch_row($result, $dbi)) {
        $blocklist[$title] = compact("bid", "bkey", "title", "content", "url", "blockfile", "view", "position", "weight", "active", "groups");
        $blocklist[$title]['weight'] = (int)$blocklist[$title]['weight'];
    }
 
mars







PostPosted: Tue Aug 19, 2008 1:12 pm Reply with quote

Shawn from [ Only registered users can see links on this board! Get registered or login! ] provided the fix.
Glad it is working for you. Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> RN v2.20.00 - All Issues

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 ©