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>·</big></strong> <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>·</big></strong> <a href=\"modules.php?name=$m_title&file=index\">$m_title2</a><br>\n";
} else {
$content .= "<strong><big>·</big></strong> <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?
IACOJ Major
Joined: Jan 15, 2003
Posts: 1269
Location: USA
Posted:
Tue Sep 23, 2003 10:08 pm
Just below that do you have a line that looks like this?
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.
fluentdesigns Sergeant
Joined: Aug 27, 2003
Posts: 91
Posted:
Wed Sep 24, 2003 1:41 pm
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
IACOJ Major
Joined: Jan 15, 2003
Posts: 1269
Location: USA
Posted:
Wed Sep 24, 2003 2:18 pm
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";
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