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, 58 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Adding a moderator for forums [ ]
 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
intel352
Lieutenant
Lieutenant


Joined: Mar 11, 2003
Posts: 180


PostPosted: Fri Sep 12, 2003 2:49 pm Reply with quoteBack to top

ahhh, that must be it

thanks for letting me know, i'll make sure i get the latest forums package then

_________________
Image
CSMapCentral || NukeBBMods
Find all posts by intel352View user's profileSend private messageVisit poster's websiteICQ Number
empower
Nuke Cadet
Nuke Cadet


Joined: Jun 21, 2003
Posts: 3


PostPosted: Wed Sep 17, 2003 4:07 am Reply with quoteBack to top

I have a quick workaround for this problem
remove the user from all groups
then set permissions for the user
then add the user back into groups.

When you set user permissions it appears that a special individual user group is created.(a row in bb_user_groups table) but if the user is already in a group then the row is not inserted and the changes dont stick.
Find all posts by empowerView user's profileSend private message
Raulken
Nuke Soldier
Nuke Soldier


Joined: Apr 16, 2003
Posts: 15


PostPosted: Mon Sep 22, 2003 8:07 am Reply with quoteBack to top

Fix:

Code:

$newmaxvalue are max value of group id from table nuke_bbgroups +1

INSERT INTO `nuke_bbgroups` ( `group_id` , `group_type` , `group_name` , `group_description` , `group_moderator` , `group_single_user` )
VALUES (
'$newmaxvalue', '1', '', 'Personal User', '0', '1'
);

$newmaxvalue are "group id"
$user_id are user id

INSERT INTO `nuke_bbuser_group` ( `group_id` , `user_id` , `user_pending` )
VALUES (
'$newmaxvalue', '$user_id, '0'
);



Just do it Smile (from italy) www.raulken.it
Find all posts by RaulkenView user's profileSend private messageVisit poster's website
Phoenix_NeoFighters
Nuke Soldier
Nuke Soldier


Joined: Jun 19, 2003
Posts: 16

Location: Brazil

PostPosted: Sun Oct 19, 2003 2:50 pm Reply with quoteBack to top

I have same problem ...

I want put moderator in my bbtonuke ...

but, have this error ...

I understand like fix problem...

try download file, but link dont work ...

Raulken, I put this code where !?

thx

_________________
Visit www.neofighters.com > All about games, emulation, movies, and more.
Visit too www.brtop.com > portal of news, japan/brazil!
Find all posts by Phoenix_NeoFightersView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
Raulken
Nuke Soldier
Nuke Soldier


Joined: Apr 16, 2003
Posts: 15


PostPosted: Sun Oct 19, 2003 2:58 pm Reply with quoteBack to top

"To hand" Sad

Please staff fix on file
Find all posts by RaulkenView user's profileSend private messageVisit poster's website
sting
Site Admin
Site Admin


Joined: Jul 24, 2003
Posts: 1985

Location: Apparently ALWAYS Online. . .

PostPosted: Wed Oct 22, 2003 8:16 am Reply with quoteBack to top

Raulken - what file is that to go in?

-sting

_________________
Is it paranoia if they are really out to get you?

-------------------------------------------------------
sting usually hangs out at nukehaven.net
Find all posts by stingView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Raulken
Nuke Soldier
Nuke Soldier


Joined: Apr 16, 2003
Posts: 15


PostPosted: Thu Oct 23, 2003 1:59 pm Reply with quoteBack to top

I use it on sqlplus(tool no web, manual sql)... Because modules/Forums/admin/admin_ug_auth.php not work...
Find all posts by RaulkenView user's profileSend private messageVisit poster's website
Phoenix_NeoFighters
Nuke Soldier
Nuke Soldier


Joined: Jun 19, 2003
Posts: 16

Location: Brazil

PostPosted: Thu Oct 23, 2003 6:30 pm Reply with quoteBack to top

But ... how fix ? Confused


I have other errors in forum .. like when: Notify me when a reply is posted
is checked in post .. have a error..

link of nickname is incorrect ... link is invalid

is it possible to block the button soon Submit after the first click? to avoid that it is clicked again and send the same message again.


wait. Thx

_________________
Visit www.neofighters.com > All about games, emulation, movies, and more.
Visit too www.brtop.com > portal of news, japan/brazil!
Find all posts by Phoenix_NeoFightersView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
ToJo
Nuke Cadet
Nuke Cadet


Joined: May 04, 2003
Posts: 3


PostPosted: Wed Oct 29, 2003 2:25 am Reply with quoteBack to top

This subject had me baffled as far as modifing the original code so I just wrote a new script for the admin that makes the necessary additions to the bbgroups and bbuser_group

The code is rough but works. You have to know the User ID of the member you are going to change permissions for. The script will find the next group id number and automatically add it for you. Maybe after some sleep I will fix it up some. Very Happy

first I call forumfix.php and goes in the admin/modules/ folder

Code:
<?php

/*******************************************************************************
*
* Redistribution and use with or without modification, are
* permitted provided that the following condition is met:
*
* Redistributions must retain the credit to original author below.
*
* File : forumfix.php
* Addon for PHP-Nuke to manage forums Couldn't update private forum permissions problem
* Date : 10/29/2003
*
* Author : ToJo
* Website : http://www.coopvets.com
* Email : tojo@coopvets.com
*******************************************************************************/

if(!eregi("admin.php", $PHP_SELF)){ die("Access Denied"); }

   $result = sql_query("select radminuser, radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
   list($radminuser, $radminsuper)=sql_fetch_row($result, $dbi);
   if(($radminuser==1)OR($radminsuper==1)){

/**************************************************/

function forumfix(){
global $fixsubmit, $addsubmit, $action, $user_id, $newmaxvalue;

include("header.php");
GraphicAdmin();
OpenTable();
if(!$action){
   $newmaxvalue = 0;

    $query =mysql_query("SELECT group_id FROM nuke_bbgroups ORDER BY group_id DESC") or die(mysql_error());
      $row = mysql_fetch_array($query);
   $newmaxvalue = $row[group_id];
   $newmaxvalue++;

echo "<form method=\"post\" action=\"admin.php?op=forumfix&action=add\">";
      echo "<center><table border=\"0\" cellspacing=\"0\" cellpadding=\"4\">";
      echo "<tr><td align=right>User ID:</td><td><input type=\"text\" name=\"user_id\" size=\"24\" maxlength=\"24\" value=\"\" /></td></tr>";
      echo "<tr><td align=right>New Group ID:</td><td><input type=\"text\" name=\"newmaxvalue\" size=\"24\" maxlength=\"24\" value=\"$newmaxvalue\" /></td></tr>";
      echo "</table><br><br>";
      echo "<input type=\"submit\" name=\"fixsubmit\" value=\"Fix Member Grouping\" />";
      echo "</form>\n";
}

if($action=="add"){
   if(!$addsubmit){

        echo "<center>Are you sure?<br>";
        echo "<form method=\"post\" action=\"admin.php?op=forumfix&action=add&newmaxvalue=$newmaxvalue&user_id=$user_id\">";
        echo "<input type=\"submit\" name=\"addsubmit\" value=\"Yes\" /></form><br>";
        echo "<a href=\"admin.php?op=forumfix\">Back</a>";
   } else {

/*$newmaxvalue are max value of group id from table nuke_bbgroups +1 */
         $query1 =mysql_query("INSERT INTO nuke_bbuser_group VALUES ('$newmaxvalue', '$user_id', '0')") or die(mysql_error());
         $query2 =mysql_query("INSERT INTO nuke_bbgroups VALUES ('$newmaxvalue', '1', '', 'Personal User', '0', '1')") or die(mysql_error());
}

CloseTable();

include("footer.php");

}}

/**************************************************/

switch($op){

   case "forumfix":
      forumfix();
   break ;

}

/**************************************************/

} else {
   echo "Access Denied";
}
?>


The second I call case.forumfix.php and goes in the admin/case/ folder

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.       */
/************************************************************************/

if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }

switch($op) {

    case "forumfix":

    include("admin/modules/forumfix.php");
    break;

}

?>


The third I call links.forumfix.php and goes in the admin/links/ folder

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.       */
/************************************************************************/

if (($radminsuper==1) OR ($radminlink==1)) {
    adminmenu("admin.php?op=forumfix", "Forums Fix", "forumfix.gif");
}

?>


I used part of Raulken's script from above. (thanx for the inspiration!)

Only real problem right now is you have to back up after script is done but hey it works. Very Happy

_________________
Image
Find all posts by ToJoView user's profileSend private messageVisit poster's website
Phoenix_NeoFighters
Nuke Soldier
Nuke Soldier


Joined: Jun 19, 2003
Posts: 16

Location: Brazil

PostPosted: Wed Oct 29, 2003 6:21 am Reply with quoteBack to top

dont work ... Sad

but,, need now fix error in send email.. when Notify Replys is checked ...

_________________
Visit www.neofighters.com > All about games, emulation, movies, and more.
Visit too www.brtop.com > portal of news, japan/brazil!
Find all posts by Phoenix_NeoFightersView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
ToJo
Nuke Cadet
Nuke Cadet


Joined: May 04, 2003
Posts: 3


PostPosted: Wed Oct 29, 2003 7:40 am Reply with quoteBack to top

What don't work? I have used it multiple times on two sites both running nuke 6.5 with phbb 2.0.6.

_________________
Image
Find all posts by ToJoView user's profileSend private messageVisit poster's website
Phoenix_NeoFighters
Nuke Soldier
Nuke Soldier


Joined: Jun 19, 2003
Posts: 16

Location: Brazil

PostPosted: Wed Oct 29, 2003 11:56 am Reply with quoteBack to top

after click em Confirm button: "Are you Sure? Yes"
dont show nothing. only go next screen, with links of admin.

i am using nuke 6.9.

--
do u know solve problem with email ?

thx

_________________
Visit www.neofighters.com > All about games, emulation, movies, and more.
Visit too www.brtop.com > portal of news, japan/brazil!
Find all posts by Phoenix_NeoFightersView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
ToJo
Nuke Cadet
Nuke Cadet


Joined: May 04, 2003
Posts: 3


PostPosted: Wed Oct 29, 2003 12:20 pm Reply with quoteBack to top

It works just doesn't show anything. After doing this just go back and try to set that person up as moderator or such and it should work. The scripting was done this morning at about 5 am and I just wanted to get it done before I fell asleep LOL.

As far as the e-mail - I have no idea. I don't have this problem so I haven't tried to fix it sorry!

_________________
Image
Find all posts by ToJoView user's profileSend private messageVisit poster's website
Snegny
Nuke Cadet
Nuke Cadet


Joined: Nov 24, 2003
Posts: 2


PostPosted: Mon Nov 24, 2003 2:50 pm Reply with quoteBack to top

Hi everybody,

I have downloaded and executed fixgroup-file. It fixed the problem, but now I have lost all messages of "anonymous" users. The forum shows only those messages of only registered users and all messages of the guests are gone! Please advice what can be done in the situation?
Find all posts by SnegnyView user's profileSend private message
Snegny
Nuke Cadet
Nuke Cadet


Joined: Nov 24, 2003
Posts: 2


PostPosted: Mon Nov 24, 2003 2:52 pm Reply with quoteBack to top

Hi everybody,

I have downloaded and executed fixgroup-file. It fixed the problem, but now I have lost all messages of "anonymous" users. The forum shows only those messages of only registered users and all messages of the guests are gone! Please advice what can be done in the situation?

chatserv wrote:
Make a backup of your database before trying this Download this file, upload it to the Forums folder and point your browser to http://www.yoursite.com/modules.php?name=Forums&file=fixgroup

Delete once done try changing the user's permissions once you have run the file.
Find all posts by SnegnyView 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.320 Seconds - 315 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::