PHP Nuke Nederland
 
•   Home  •  Downloads  •  Your Account  •  Forums  •
PHP-Nuke Nederland: Forums

PHP-Nuke Nederland :: View topic - NSN Group
 Forum FAQ  •   Search   •  Memberlist  •  Usergroups   •  Register   •    •  Profile  •  Log in to check your private messages  •  Log in

 
Post new topicReply to topic
View previous topic Log in to check your private messages View next topic
Author Message
bram
Beginner
Beginner


Joined: Aug 07, 2008
Posts: 5

PostPosted: Fri 08 Aug 2008 0:26 Reply with quoteBack to top

Hoi,

Ik heb een vraag wat betreft het installeren van NSN groups. Ik gebruikt momenteel php-nuke 7.6 pachted 3.1. Ik ben begonnen met de installatie van NSNgroups (1.7.0).
Volgens de handleiding moet ik in het bedstandje 'blocks/block-Modules.php' een aantal codes vervangen, maar drie van deze codes staan niet in mijn bestandje 'block-modules.php' (zoals vermeld in de handleiding). Ik heb al verschillende dingen geprobeerd (bv codes die er op lijken veranderen), maar het lukt me niet om het goed te krijgen.
Ik zal deze codes hieronder vermelden en erbij zetten naar welk stuk (dat ik denk) er verwezen wordt in mijn php bestandje.

(1)
**volgens de handleiding:

#
#-----[ FIND ]------------------------------------------
#
$result3 = $db->sql_query("SELECT title, custom_title, view FROM " . $prefix . "_modules WHERE active='1' AND title!='$def_module' AND inmenu='1' ORDER BY custom_title ASC");
while ($row3 = $db->sql_fetchrow($result3)) {

#
#-----[ REPLACE WITH ]------------------------------------------
#
$result3 = $db->sql_query("SELECT * FROM " . $prefix . "_modules WHERE active='1' AND title!='$def_module' AND inmenu='1' ORDER BY custom_title ASC");
while ($row3 = $db->sql_fetchrow($result3)) {
$groups = $row3['groups'];

**Wat in mijn bestand staat:

$sql = "SELECT title, custom_title, view FROM ".$prefix."_modules WHERE active='1' AND inmenu='1' ORDER BY custom_title ASC";
$result = $db->sql_query($sql);

(2)
**volgens de handleiding:
#
#-----[ FIND ]------------------------------------------
#
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 WITH ]------------------------------------------
#
if ($view == 0) {
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
} elseif ($view == 1 AND is_user($user)) {
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
} elseif ($view == 2 AND is_admin($admin)) {
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
} elseif ($view == 3 AND paid()) {
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
} elseif ($view > 3 AND in_groups($groups)) {
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=$m_title\">$m_title2</a><br>\n";
}

**Wat in mijn bestand staat:

if (is_admin($admin)) {
$content .= "<br><center><strong>"._INVISIBLEMODULES."</strong><br>";
$content .= "<span class=\"tiny\">"._ACTIVEBUTNOTSEE."</span></center><br>";


(3)
**volgens de handleiding:


#
#-----[ FIND ]------------------------------------------
#
$db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$mod_uname', '0', '0', '1', '0')");

#
#-----[ REPLACE WITH ]------------------------------------------
#
$db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$mod_uname', '0', '0', '', '1', '0')");


**Wat in mijn bestand staat:

Dit stuk kon ik helemaal niet terug vinden in mijn php bestand.


Ik hoop dat dit zo een beetje duidelijk en overzichtelijk is!
Als het handiger is, kan ik het php bestand en de benodigde wijzigingen doorsturen.

Mijn site staat overigens nog niet online want ik ben hem nog aan het ontwikkelen onder http://localhost/, dus helaas heb ik geen url.

Alvast bedankt voor de hulp!
Groeten, Bram
View user's profileSend private message
welrob
Helper
Helper


Joined: Aug 02, 2005
Posts: 426
Location: Naarden - Vesting

PostPosted: Fri 08 Aug 2008 1:32 Reply with quoteBack to top

Aldus de readme.txt ook altijd de moeite van het lezen waard.

1. Introduction and Requirements
--------------------------------
· NSN Groups is a PHP-Nuke add-on which allows the admin to assign user
groups. Add and/or remove groups and users within each group.
· It requires PHP-Nuke 7.6 plus Patched 2.9+ to be installed.
· You can now "EMPTY" a group and "ADD" multiple users to a group.
· Users can now be expired from groups.
· With this version it will be much easier for module developers to make group
reactive modules.
· Table names are changed to a final naming convention for NSN.
· Will mirror your phpBB groups into NSN Groups and mirror NSN Groups into phpBB
groups. Thru NSN Groups admin you will be able to control both NSN Groups and
phpBB groups.
· Added ` marks to enclose table and field names.
· Added get_magic_quotes_runtime to help prevent failed queries.

_________________
Te Lezen: Forum Regels Te Gebruiken:Forum Zoeken
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
bram
Beginner
Beginner


Joined: Aug 07, 2008
Posts: 5

PostPosted: Fri 08 Aug 2008 4:24 Reply with quoteBack to top

Dat heb ik inderdaad gelezen, maar met mijn php-nuke 7.6 pachted 3.1 voldoe ik hier toch aan (omdat het PHP-nuke 7.6 patched 2.9 + vereist). Of staat die + niet voor 'en hoger'?
View user's profileSend private message
welrob
Helper
Helper


Joined: Aug 02, 2005
Posts: 426
Location: Naarden - Vesting

PostPosted: Fri 08 Aug 2008 21:10 Reply with quoteBack to top

Klopt zo zou het moeten zijn echter de code die gebruikt wordt komt uit de patched 2.9 en die bestaat dus niet meer in 3.1.

Je moet anders eens kijken naar de 7.6 versie van ravennuke deze is kant en klaar met sentinal en msn groups er al in die gebruik ik zelf ook en is echt top.

Wat je ook kan doen is op de site van Zero de vraag eens stellen op het forum, ik weet dat hij de msn groups werkend heeft daar Wink en wellicht dat hij nog weet hoe hij het gedaan heeft.

_________________
Te Lezen: Forum Regels Te Gebruiken:Forum Zoeken
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
zeromechanic
Administrator
Administrator


Joined: Oct 01, 2004
Posts: 1474
Location: Emmeloord

PostPosted: Sat 09 Aug 2008 7:09 Reply with quoteBack to top

weheh nog weten.
moet ik weer ff induiken.

maar het is versie 1.7.1 de laatste
http://www.nukescripts.net/download-file-2009.html

zover ik kan zien heb ik de stap van de block-Modules niet uitgevoerd.
Had voor mij ook geen zin omdat ik dat block niet gebruik.
Ik gebruik het sommaire menu.

alle overige stappen wel uit voeren.

hieronder de code van ravnenuke :

Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/*         Additional security & Abstraction layer conversion           */
/*                           2003 chatserv                              */
/*      http://www.nukefixes.com -- http://www.nukeresources.com        */
/************************************************************************/
/************************************************************************/
/* Additional code clean-up, performance enhancements, and W3C and      */
/* XHTML compliance fixes by Raven and Montego.                         */
/************************************************************************/

if ( !defined('BLOCK_FILE') ) {
    Header('Location: ../index.php');
    die();
}


global $prefix, $db, $admin, $user, $modlist, $dummy, $default_module;

$content = '';
$ThemeSel = get_theme();
$def_module = '';
if (file_exists('themes/'.$ThemeSel.'/module.php')) {
    include_once('themes/'.$ThemeSel.'/module.php');
    if (is_active($default_module) AND file_exists('modules/'.$default_module.'/index.php')) {
        $def_module = $default_module;
    } else {
        $def_module = '';
    }
}

$row = $db->sql_fetchrow($db->sql_query('SELECT main_module FROM '.$prefix.'_main'));
$main_module = $row['main_module'];

/* If the module doesn't exist, it will be removed from the database automaticaly */
$result2 = $db->sql_query('SELECT title FROM ' . $prefix . '_modules');
while ($row2 = $db->sql_fetchrow($result2)) {
    $title = stripslashes($row2['title']);
    $a = 0;
    $handle=opendir('modules');
    while ($file = readdir($handle)) {
        if ($file == $title) {
            $a = 1;
        }
    }
    closedir($handle);
    if ($a == 0) {
        $db->sql_query('DELETE FROM '.$prefix.'_modules WHERE title=\''.$title.'\'');
    }
}

/* Now we make the Modules block with the correspondent links */

$content .= '<strong><big>·</big></strong> <a href="index.php">'._HOME.'</a><br />';
$result3 = $db->sql_query('SELECT * FROM ' . $prefix . '_modules WHERE active=1 AND title!=\''.$def_module.'\' AND inmenu=1 ORDER BY custom_title ASC');
while ($row3 = $db->sql_fetchrow($result3)) {
    $groups = $row3['groups'];
    $m_title = stripslashes($row3['title']);
    $custom_title = $row3['custom_title'];
    $view = intval($row3['view']);
    $m_title2 = ereg_replace('_', ' ', $m_title);
    if (!empty($custom_title)) {
        $m_title2 = $custom_title;
    }
    if ($m_title != $main_module) {
        if ($view == 0) {
            $content .= '<strong><big>·</big></strong> <a href="modules.php?name='.$m_title.'">'.$m_title2.'</a><br />';
        } elseif ($view == 1 AND ((is_user($user) AND is_group($user, $m_title)) OR is_admin($admin))) {  //RN0000119, RN0000317
            $content .= '<strong><big>·</big></strong> <a href="modules.php?name='.$m_title.'">'.$m_title2.'</a><br />';
        } elseif ($view == 2 AND is_admin($admin)) {
            $content .= '<strong><big>·</big></strong> <a href="modules.php?name='.$m_title.'">'.$m_title2.'</a><br />';
        } elseif ($view == 3 AND (paid() OR is_admin($admin))) {  //RN0000119, RN0000317
            $content .= '<strong><big>·</big></strong> <a href="modules.php?name='.$m_title.'">'.$m_title2.'</a><br />';
        } elseif ($view > 3 AND in_groups($groups)) {
            $content .= '<strong><big>·</big></strong> <a href="modules.php?name='.$m_title.'">'.$m_title2.'</a><br />';
        }
    }
}

/* 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)) {
    $content .= '<br /><center><b>'._INVISIBLEMODULES.'</b><br />';
    $content .= '<span class="tiny">'._ACTIVEBUTNOTSEE.'</span></center><br />';
    $result5 = $db->sql_query('SELECT title, custom_title FROM '.$prefix.'_modules WHERE active=1 AND inmenu=0 ORDER BY title ASC');
    while ($row5 = $db->sql_fetchrow($result5)) {
        $mn_title = stripslashes($row5['title']);
        $custom_title = $row5['custom_title'];
        $mn_title2 = ereg_replace('_', ' ', $mn_title);
        if (!empty($custom_title)) {
            $mn_title2 = $custom_title;
        }
        if (!empty($mn_title2)) {
            $content .= '<strong><big>·</big></strong> <a href="modules.php?name='.$mn_title.'">'.$mn_title2.'</a><br />';
            $dummy = 1;
        } else {
            $a = 1;
        }
    }
    if ($a == 1 AND $dummy != 1) {
        $content .= '<strong><big>·</big></strong> <i>'._NONE.'</i><br />';
    }
    $content .= '<br /><center><b>'._NOACTIVEMODULES.'</b><br />';
    $content .= '<span class="tiny">'._FORADMINTESTS.'</span></center><br />';
    $result6 = $db->sql_query('SELECT title, custom_title FROM '.$prefix.'_modules WHERE active=0 ORDER BY title ASC');
    while ($row6 = $db->sql_fetchrow($result6)) {
        $mn_title = stripslashes($row6['title']);
        $custom_title = $row6['custom_title'];
        $mn_title2 = ereg_replace('_', ' ', $mn_title);
        if (!empty($custom_title)) {
            $mn_title2 = $custom_title;
        }
        if (!empty($mn_title2)) {
            $content .= '<strong><big>·</big></strong> <a href="modules.php?name='.$mn_title.'">'.$mn_title2.'</a><br />';
            $dummy = 1;
        } else {
            $a = 1;
        }
    }
    if ($a == 1 AND $dummy != 1) {
        $content .= '<strong><big>·</big></strong> <i>'._NONE.'</i><br />';
    }
}

?>

_________________
Te Lezen: Forum Regels | Te Gebruiken
View user's profileSend private messageVisit poster's website
welrob
Helper
Helper


Joined: Aug 02, 2005
Posts: 426
Location: Naarden - Vesting

PostPosted: Sat 09 Aug 2008 9:31 Reply with quoteBack to top

zeromechanic wrote:
weheh nog weten.
moet ik weer ff induiken.

maar het is versie 1.7.1 de laatste
http://www.nukescripts.net/download-file-2009.html

zover ik kan zien heb ik de stap van de block-Modules niet uitgevoerd.
Had voor mij ook geen zin omdat ik dat block niet gebruik.
Ik gebruik het sommaire menu.

alle overige stappen wel uit voeren.



weheh? Tuurlijk jij nog weten Wink

Yep das nog steeds de laatste 1.7.1 die heb ikke ook.

_________________
Te Lezen: Forum Regels Te Gebruiken:Forum Zoeken
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
bram
Beginner
Beginner


Joined: Aug 07, 2008
Posts: 5

PostPosted: Mon 11 Aug 2008 2:01 Reply with quoteBack to top

Bedankt voor jullie reacties, ik zal eens kijken of ik er nu verder uitkom.

Ik heb nu trouwens alle andere nodige aanpassingen gedaan op de block-module na en in principe werkt NSN-group, alleen de modules blijven constant zichtbaar ookal heeft een bepaalde group/gebruiker er geen toegang tot.

Verder zal ik eens kijken naar ravnenuke.

Groeten, Bram
View user's profileSend private message
zeromechanic
Administrator
Administrator


Joined: Oct 01, 2004
Posts: 1474
Location: Emmeloord

PostPosted: Mon 11 Aug 2008 7:49 Reply with quoteBack to top

bram wrote:

Ik heb nu trouwens alle andere nodige aanpassingen gedaan op de block-module na en in principe werkt NSN-group, alleen de modules blijven constant zichtbaar ookal heeft een bepaalde group/gebruiker er geen toegang tot.



dit komt dus om dat dat moduleblok niet is aangepast

_________________
Te Lezen: Forum Regels | Te Gebruiken
View user's profileSend private messageVisit poster's website
bram
Beginner
Beginner


Joined: Aug 07, 2008
Posts: 5

PostPosted: Mon 11 Aug 2008 23:07 Reply with quoteBack to top

Ik heb nu Ravennuke geinstalleerd en alles (incl nsn groups) werkt perfect, bedankt voor de tip!
View user's profileSend private message
Display posts from previous:      
 Donaties   Adverteren 
Wilt u het forum steunen, dan kunt u nu eenvoudig doneren met PayPal.
Post new topicReply to topic
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

Web site powered by PHP-Nuke

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004-2008 by BlueLion.
SEO enhanced with the Sitemapper script
You can syndicate our news using the file backend.php or ultramode.txt
Powered by PHP Powered by MySQL Apache Webserver Valid robots.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Pagina rendering: 0.19 seconden


[Valid News RSS]

RSS Feeds:
[RSS 2.0 News Feed]
[RSS 2.0 Download Feed]
[RSS 2.0 Forum Feed]
[RSS 2.0 Link Feed]
:: fisubsilver shadow phpbb2 style by Daz :: PHP-Nuke theme by BlueLion ::