You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 60 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Google Tap and NSN group users? [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
fluentdesigns
Sergeant
Sergeant


Joined: Aug 27, 2003
Posts: 91


PostPosted: Tue Sep 23, 2003 3:58 pm Reply with quoteBack to top

I went to install google tap and i have NSN group users install and in the block-Modules.php file there is some code that needs to be replaced and where that is there is a note from NSN users that it was edited. What do I need to do? Is it possible to add google tap if you have nsn users installed?

It says find this code

Code:
 if ($m_title != $main_module) {
            if ((is_admin($admin) AND $view == 2) OR $view != 2) {
                        $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
            }
        }


replace it with this

Code:
if ($m_title != $main_module) {
            if ((is_admin($admin) AND $view == 2) OR $view != 2) {
                if ($m_title == "Forums") {
                        $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title&file=index\">$m_title2</a><br>\n";
                } else {
                        $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
                }
            }
        }


but in my modified blocks-Modules.php file i have this

Code:
if ($m_title != $main_module) {
        /* Beginning of NSN Groups Modification by J Miner, March 2003 */
        /* Decide if link gets shown based on group access             */
        $showit = 0;
        switch($view){
            case 0: // All users case
                $showit = 10;
            break;

            case 1: // Registered user access
                if (is_user($user) || is_admin($admin)) $showit = 1;
            break;

            case 2: // Admin only access
                if (is_admin($admin)) $showit = 2;
            break;

            default:  // Check if member of group that has access
                $userInfo = getusrinfo($user);
                $newview = $view - 2;
                list($confUID) = $db->sql_fetchrow($db->sql_query("select uid from ".$prefix."_users_groups_users where gid='$newview' AND uid='$userInfo[user_id]'"));
                if (($confUID == $userInfo[user_id] && $confUID != Null) || is_admin($admin)) $showit = $view;
            break;
        }


Any ideas?


One more thing.. if I wanted to uninstall NSN Groups could I just delete the files that go with NSN groups and replace them with the an unmodified version of PHPnuke 6.5?
Find all posts by fluentdesignsView user's profileSend private message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Tue Sep 23, 2003 10:08 pm Reply with quoteBack to top

Just below that do you have a line that looks like this?
Code:
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";


If you do try replacing that with this;
Code:
                if ($m_title == "Forums") {
                        $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title&file=index\">$m_title2</a><br>\n";
                } else {
                        $content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
                }
            }
        }


Please keep a back up in the event it throws some kind of error. I don't have a site configured with both to test it on.
Find all posts by IACOJView user's profileSend private message
fluentdesigns
Sergeant
Sergeant


Joined: Aug 27, 2003
Posts: 91


PostPosted: Wed Sep 24, 2003 1:41 pm Reply with quoteBack to top

I dont see it.. here is what the full function looks like

Code:
   if ($m_title != $main_module) {
        /* Beginning of NSN Groups Modification by J Miner, March 2003 */
        /* Decide if link gets shown based on group access             */
        $showit = 0;
        switch($view){
            case 0: // All users case
                $showit = 10;
            break;

            case 1: // Registered user access
                if (is_user($user) || is_admin($admin)) $showit = 1;
            break;

            case 2: // Admin only access
                if (is_admin($admin)) $showit = 2;
            break;

            default:  // Check if member of group that has access
                $userInfo = getusrinfo($user);
                $newview = $view - 2;
                list($confUID) = $db->sql_fetchrow($db->sql_query("select uid from ".$prefix."_users_groups_users where gid='$newview' AND uid='$userInfo[user_id]'"));
                if (($confUID == $userInfo[user_id] && $confUID != Null) || is_admin($admin)) $showit = $view;
            break;
        }

        if ($showit != 0)
        $content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
       

        /* End of NSN Groups Modification */
   }
    }


and here is the next function under it

Code:
/* If you're Admin you and only you can see Inactive modules and test it */
    /* If you copied a new module is the /modules/ directory, it will be added to the database */
   
    if (is_admin($admin)) {
   $handle=opendir('modules');
   while ($file = readdir($handle)) {
       if ( (!ereg("[.]",$file)) ) {
      $modlist .= "$file ";
       }
   }


Hope this helps figure this out

-thanks
Find all posts by fluentdesignsView user's profileSend private message
IACOJ
Major
Major


Joined: Jan 15, 2003
Posts: 1269

Location: USA

PostPosted: Wed Sep 24, 2003 2:18 pm Reply with quoteBack to top

From the first portion of code you posted:
Quote:
if ($showit != 0)
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";

/* End of NSN Groups Modification */
}
}
Find all posts by IACOJView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.729 Seconds - 487 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::