Portal Themes, PHPnuke Themes and PostNuke themes Themes Home Page Profile Free Nuke theme Downloads Nuke theme Support Forums Nuke Themes Store
spacer image spacer image
Featured
Call of Duty 4 Nuke Theme

Call of Duty 4 Nuke Theme

Call of Duty 4 PHPNuke Theme, Call of Duty 4 PostNuke Theme, Call of Duty 4 Evo Theme, Call of Duty ...

$15.00
Enter Store ]
spacer image
Main Menu
spacer image
Site Status
spacer image Welcome Guest
Join us!
spacer image
spacer imagespacer imagespacer image
spacer image
Registration is free and gives full access to site
spacer image
spacer image Register
spacer image Login:
User:

spacer image
Password:

spacer image
Remember me
spacer image
spacer imageMembers:
Last: Today New:0
Last: Yesterday:0
Last: Total:7536
Last: Last:
maxfoot
Members: Online
Members: Members:0
Guests: Guests:48
Total: Total:48
spacer image Online Members
No online members
spacer image
Past News
Older articles
spacer image


Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
blyyOffline
Post subject: Blocks and NSN Groups with COD4 Red Metal Theme  PostPosted: Aug 18, 2008 - 09:50 PM



Joined: Jun 21, 2008
Posts: 10

Status: Offline
I'm using Blocks and NSN Groups with COD4 Red Metal Theme.

NSN groups are phpnuke groups for setting permissions.

For instance I am created GameAdmins as a group and created a block that only they can see. The problem is that the purchased Theme doesn't let the group view it. I can view the block as admin or if I switch themes I can see it as a member of the group. Any ideas on how to fix?
Thanks,
blyy
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject: RE: Blocks and NSN Groups with COD4 Red Metal Theme  PostPosted: Aug 18, 2008 - 09:53 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
What is NSN groups and where did you download it from?
 
 View user's profile Send private message  
Reply with quote
marsOffline
Post subject: RE: Blocks and NSN Groups with COD4 Red Metal Theme  PostPosted: Aug 18, 2008 - 11:45 PM
Site Admin


Joined: Aug 15, 2004
Posts: 4277

Status: Offline
Ok try this

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'];
    }
 
 View user's profile Send private message  
Reply with quote
blyyOffline
Post subject: RE: Blocks and NSN Groups with COD4 Red Metal Theme  PostPosted: Aug 19, 2008 - 04:23 PM



Joined: Jun 21, 2008
Posts: 10

Status: Offline
That did it, thanks!
 
 View user's profile Send private message  
Reply with quote
Display posts from previous:     
Jump to:  
All times are GMT - 5 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits
spacer image spacer image

Welcome to www.PortalThemes.com, Your #1 Source for

Zikula Themes

,

PHP-Nuke themes

,

MD-Pro Themes

,

Nuke Evolution Themes

,

Platinum Nuke Themes

,

Xanthia Themes

,

AutoThemes and

Joomla Templates
World of Warcraft and Blizzard Entertainment are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries. These terms and all related materials, logos, and images are copyright Blizzard Entertainment. This site is in no way associated with or endorsed by Blizzard Entertainment
SiteMap SiteMap 2 SiteMap 3