php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#224748 - 09/17/02 02:48 PM Group Moderators v1.0
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Mod Name / Version - Group Moderators v1.0<br /><br />Description - Allows administrator to set permissions for selected moderators to add and optionally remove users from selected groups. Adds links to new pages for admin and mods in admin menu.<br /><br />Example - None.<br /><br />Pre-requisites - none<br /><br />Author - Aglavalin, aka Steve Stout<br /><br />Files Altered - admin/menu.php<br /><br />Database Altered - Only a new table is created, thus, very removable.<br /><br />New Files - admin/pickuser.php, admin/editusergroup.php, admin/doeditusergroup.php, admin/editgroupmod.php and admin/doeditgroupmod.php<br /><br />Credits: I have seen this asked for several times on the threadsdev.com boards.<br /><br />Notes: This is a simple hack. Group Moderators need to be in the UBBT moderator group to access the pages via admin menu, but they do not need to be a board moderator. The ability to remove a user from each group a moderator can add users to is optional. i.e A moderator can add a user to a group, but not remove anyone from that group if the admin desires. Works fine on 6.1<br /><br /><br />This seems to be working fine so far, so I'm gonna release it. It is beta, and will probably evolve some before being finished. I have added in as many security checks as I can think of, but if anyone can find any loopholes please let me know!


Attachments
56830-GroupModerators_v1.0.zip (24 downloads)


Top
#224749 - 09/17/02 09:13 PM Re: Group Moderators v1.0 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
OH MY!!! Ok, let me get this straight.<br /><br />Here is my situation. My site is just a massive general regional site. And within my site there are many official "clubs", and they have been bugging me to host their message boards within my current board system, and obviously make them private to only group members.<br /><br />So, that is great, but I had to wait for a PM from the club owner with a list of names to add to that usergroup. So, are you saying I make the private forums, and setup the mod for those forums only. I can then grant them privilages to add anyone to only THEIR usergroup? <br /><br />If that is how I understand it, that is an incredible and essential mod for me, as I do not have time/energy to do this for them.

Top
#224750 - 09/17/02 11:44 PM Re: Group Moderators v1.0 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Yes, you can make a group just for one forum, or category, and assign as many people as you like to add and/or delete users from that group. I have this issue on my boards, where I have at least 5 groups that I get PMs on to add people almost every day, so I got tired of it and now I have assigned one person from each group to just do it themself! I also use these groups to allow access to sections of the website, so now the new users can gain access faster since I don't have to be in the loop anymore <img src="/forum/images/icons/smile.gif" alt="" />


Edited by Aglavalin (09/17/02 11:45 PM)

Top
#224751 - 09/18/02 10:14 AM Re: Group Moderators v1.0 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
That is awesome. Best mod ever as far as I'm concerned, lol.<br /><br />I will apply it later today. YOu just made my life a whole lot easier!

Top
#224752 - 09/18/02 10:18 AM Re: Group Moderators v1.0 [Re: neuron]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Very nice mod indeed, this will certainly make it easier for the admin when there are many sub-boards that new users have to be added to on a regular basis. I've had a few of these myself, but the only one that is active at the moment aren't adding any new members anymore. But if any of the boards gets active and wants to have more members I will definitely install this.
_________________________
/Gardener | Complete list of my mods

Top
#224753 - 09/18/02 02:47 PM Re: Group Moderators v1.0 [Re: c0bra]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
I just had a bad thought about this. I need to add the ability for it to prevent someone from editing the groups of admins and moderators. I'll come up with a new version which has a couple more options for the admin to check off groups which will prevent their members from having ANY of their groups modified. This should take care of this issue. This would only be some page replacements, and would only matter in rare cases. This hack is still safe as long as you don't give the authority to boneheads or someone who is in a foul mood. LOL

Top
#224754 - 09/20/02 05:55 PM Group Moderators v1.1 [Re: neuron]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Here is an updated zip with a fix to block all admins and moderators from having any of their groups edited. Only editusergroups.php was changed.


Attachments
56975-GroupModerators_v1.1.zip (18 downloads)


Top
#224755 - 09/23/02 12:10 PM Re: Group Moderators v1.1 [Re: neuron]
Datal Offline
Member

Registered: 08/27/01
Posts: 203
Anyway we could get the add a user to a group to be like the search system built into UBBT??

Top
#224756 - 09/25/02 09:27 PM Re: Group Moderators v1.1 [Re: Macthorn]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hmm.. I got an error when running this query:<br /><pre><font class="small">code:</font><hr>CREATE TABLE w3t_Groupmods (<br /> GM_Username varchar(30) NOT NULL,<br /> GM_AddGroup tinyint(3) DEFAULT '3' NOT NULL,<br /> GM_RemoveGroup carchar(1) NOT NULL,<br /> KEY GM_Username (GM_Username)<br />);</pre><hr><br /><br />I know in the instructions it says it will give an error but the table will be created correctly. But.. I checked, the table was not created. It gave this as a response:<br /><br />[]You have an error in your SQL syntax near 'carchar(1) NOT NULL,<br /> KEY GM_Username (GM_Username)<br />)' at line 4<br />[/]

Top
#224757 - 09/25/02 10:44 PM Re: Group Moderators v1.1 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Looks like another one of my typos there. That code should be<br /><br /><pre><font class="small">code:</font><hr><br />CREATE TABLE w3t_Groupmods (<br /> GM_Username varchar(30) NOT NULL,<br /> GM_AddGroup tinyint(3) DEFAULT '3' NOT NULL,<br /> GM_RemoveGroup varchar(1) NOT NULL,<br /> KEY GM_Username (GM_Username)<br />);<br /></pre><hr><br /><br />Attached are correctied directions.


Attachments
57510-GroupModerators_v1.2.txt (46 downloads)


Top
#224758 - 09/25/02 11:06 PM Re: Group Moderators v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Thanks, that worked <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#224759 - 09/29/02 09:07 PM Re: Group Moderators v1.1 [Re: palmen]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Hmm, just got around to actually putting this hack into action, and encountering a problem when trying to add someone:<br /><br />[]SQL ERROR: Database error only visible to forum administrators<br /><br />Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home2/www/michiganjeepers/forums/mysql.inc.php on line 121<br />[/]<br /><br />Every other feature works, except that one. And also.. why do the group mods have ability to ban users? That may not be too safe if it is a public ban, or is it just a ban from their forum?

Top
#224760 - 09/29/02 10:02 PM Re: Group Moderators v1.1 [Re: palmen]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Ok... problem!<br /><br />Not sure if this was the intended use or not, but moderators, whether or not they are group mods have access to the "admin" link, and they can edit the forum they are a mod in!! I don't want that feature.. could be potentially very dangerous <img src="/forum/images/graemlins/frown.gif" alt="" />

Top
#224761 - 09/30/02 01:04 AM Re: Group Moderators v1.1 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
The mods have had that ability for a while, there is a hack for it around here. One that you can turn off some of their abilities, like editing the forum!

Top
#224762 - 09/30/02 07:00 AM Re: Group Moderators v1.1 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Really? I have just recently started adding mods, but I had no idea they had these abilities! I just don't like the idea of a mod getting ticked off and purging all of the threads in their forum, or banning people for no reason, etc. I mean I trust them as mods, but not with some admin functions.<br /><br />I will have to look to see if I can find that hack you are talking about.<br /><br />Also, I am still getting that error when trying to add someone to a group, so if you have time and could look at that, that would be great <img src="/forum/images/graemlins/smile.gif" alt="" /> Thanks.

Top
#224763 - 09/30/02 10:01 AM Re: Group Moderators v1.1 [Re: palmen]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Restrict Moderators may be the hack you're looking for.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#224764 - 09/30/02 10:50 AM Re: Group Moderators v1.1 [Re: joeuser]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Thanks Dave, yes that is what I was looking for. Any idea if it works under 6.1?

Top
#224765 - 09/30/02 11:49 AM Re: Group Moderators v1.1 [Re: palmen]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I'm using it under 6.1. When I upgrade UBB.threads, though, I use Beyond Compare, rather than re-installing hacks individually.<br /><br />I think the only change needed is to use {$config['tbprefix']}Users instead of w3t_Users, in the changes to admin/showstats.php. And that really only matters if you're using, or may be using in the future, a custom table prefix other than "w3t_".<br />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#224766 - 09/30/02 01:02 PM Re: Group Moderators v1.1 [Re: joeuser]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Thanks, got it working great. Now.. if I could just get the SQL permissions error figured out, I'll be good to go <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#224767 - 10/01/02 08:38 PM Re: Group Moderators v1.0 [Re: neuron]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Aglavalin, any idea on what might be causing the SQL permissions errors? I'm sure its something simple, but I have retraced my steps and can't see an obvious problem <img src="/forum/images/graemlins/frown.gif" alt="" />

Top
#224768 - 10/01/02 09:00 PM Re: Group Moderators v1.1 [Re: palmen]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Is that the error you posted here?<br /><br />If so, you may need to comment-out the "admin-only" check in mysql.inc.php so that you can get the actual error message.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#224769 - 10/01/02 11:55 PM Re: Group Moderators v1.1 [Re: joeuser]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
I really have no idea what the error could be. Try commenting out mysql.inc.php where it hides the error, then you can see what the error really is. This should shed some more light on it.

Top
#224770 - 10/14/02 01:39 PM Re: Group Moderators v1.0 [Re: palmen]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
been very busy, but I figured out the problem. Just a small typo in your pickuser.php<br /><br /><pre><font class="small">code:</font><hr>// -----------------------------------------------<br />// check to see if they are a group moderator<br /> $query = " <br /> SELECT GM_Username<br /> FROM {$config['tbprefix']}groupmods<br /> WHERE GM_Username = '$Username'<br /> "; </pre><hr><br /><br />Where it says groupmods it should say Groupmods <img src="/forum/images/graemlins/smile.gif" alt="" />

Top
#224771 - 10/15/02 12:19 AM Re: Group Moderators v1.0 [Re: palmen]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
Would be nice if MySQL was case sensative on all servers so I would notice this kind of stuff, lol

Top
#224772 - 01/19/03 08:38 AM Re: Group Moderators v1.0 [Re: neuron]
dreamer_dup1 Offline
User

Registered: 08/27/02
Posts: 45
Does anyone knows if it's compatible with 6.2 ?<br />I think it's very useful mod

Top
#224773 - 02/24/03 04:46 PM Re: Group Moderators v1.0 [Re: himik]
Datal Offline
Member

Registered: 08/27/01
Posts: 203
So far it works with me....

Top
#224774 - 02/25/03 02:35 AM Re: Group Moderators v1.0 [Re: Macthorn]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Hmm<br />I got it so it adds the moderator to the group with the different powers. But when I log in as the new moderator they don't have the power..... I also added the restrict moderator mod while installing this one. Any ideas why my new group moderator has no power?<br /><br />Running 6.2.2

Top
#224775 - 02/27/03 06:55 AM Re: Group Moderators v1.0 [Re: Kelly]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Ok found what I needed... I had to give them mod powers to the specific forum. Somehow lost my add group moderators in the process. (*Then with mod powers they could read all the previously private mod forums) Yikes..<br /><br />also had to adjust my previously private forums to admin/private usergroup acess so the "new group mods"... couldn't read what the actual mods (now a privatemod usergroup).<br /><br />Works like a charm... very creative and should be very useful for private groups/clubs. Thanks<br /><br />BTW I had to add a bit of code msula posted in the restrict moderators mod.<br /><br />Thanks for a very powerful addition.

Top
#224776 - 02/28/03 06:16 AM Re: Group Moderators v1.0 [Re: palmen]
smilesforu Offline
Junior Member

Registered: 01/31/02
Posts: 676
Well I almost got this...(I thought) I setup a test group moderator and when he adds a user to the group. The user gets removed from (users group), but placed in the private usergroup. Then the only forum the user added gets to view is the private one they just got added to, unless I go search the name and readd them to the user group. Kinda defeats the purpose of the mod if I have to fix every added user. <br /> <br />HELP>>> thanks in advance... <br /> <br /> <br /> <br />using 6.2.2 but shouldn't be a issue... will review the hack piece by piece when I get a chance to make sure I followed along correctly. Looks ok just a permission step in here someplace... doeditusergroup.php? <br /> <br />The usergroup the group moderator removes the user from never shows up on the list to be checked or unchecked. Like a default uncheck command is being used as it updates the user behinds the scenes. Need to limit the moderator from using that kind of power. <br /> <br />I got about every hack offered here going so it should be just a switch on a restriction.


Edited by Smilesforu (03/02/03 02:48 AM)

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks