vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Add Usergroup as Moderator (https://vborg.vbsupport.ru/showthread.php?t=93543)

Andreas 10-06-2005 08:31 AM

Hmm, this Query works just fine for me.
Which mySQL Version do you use?

diretur 10-06-2005 08:32 AM

3.23.58-log

diretur 10-06-2005 08:36 AM

wait, maybe I have it!
Table 'db32351_14.vb3_moderatorusergroup' doesn't exist

I did't create any table because I haven't seen it in the readme file!

diretur 10-06-2005 08:40 AM

sorry for the chaos: now I uninstalled the mod, so the table should have been deleted from the database. right?

Andreas 10-06-2005 08:40 AM

I think that 3.23 is too old.
The table should have been automatically created by the product install code.

trilljester 10-06-2005 03:09 PM

Kirby: Can you limit this usergroup's moderator functions, meaning, they can have the same limitations as moderators as a single user moderator, right? Like if I don't want them deleting posts or what not, I can restrict that, correct?

JohnBee 10-06-2005 06:55 PM

Okay I installed this mod and the first thing I noticed is when I try to edit any of the usergroups i get an SQL dB error. I tried to deactivate the hack and make the changes but it still does the same so I guess there have been changes made to the tables that cause the error.

I will try and uninstall then try to edit the usergroups to see if the same problem occurs. One thing for sure is once the hack is installed, it almost certainly leads us to edit or refine the usergroups to better fit the group system in forum home so the SQL error will almost definately take place.

Okay I uninstalled the hack and the error still occurs so I guess the MOD is noit cleaning up the tables after uninstallation.

Here is the error
Code:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = 'Site moderator',
        `description` = '',
        `usertitle` = '',
        `opentag` = '<span style=\"color: #6A0000;\">',
        `closetag` = '</span>',
        `passwordexpires` = '0',
        `passwordhistory` = '0',
        `forumpermissions` = '1048575',
        `attachlimit` = '0',
        `pmquota` = '50',
        `pmpermissions` = '1',
        `pmsendmax` = '5',
        `calendarpermissions` = '63',
        `wolpermissions` = '15',
        `adminpermissions` = '0',
        `genericpermissions` = '204193695',
        `genericoptions` = '23',
        `profilepicmaxwidth` = '100',
        `profilepicmaxheight` = '120',
        `profilepicmaxsize` = '65535',
        `avatarmaxwidth` = '100',
        `avatarmaxheight` = '120',
        `avatarmaxsize` = '50000',
        `imghost` = '0'
WHERE usergroupid=7;

MySQL Error  : Unknown column 'imghost' in 'field list'
Error Number : 1054
Date        : Thursday, October 6th 2005 @ 03:57:34 PM
Script      : http://www.mysite.com/www/forum/admincp/usergroup.php
Referrer    : http://www.mysite.com/www/forum/admincp/usergroup.php?do=edit&usergroupid=7
IP Address  : ***.***.**.**
Username    : Xxxxxx
Classname    : vb_database

Looking forward to a fix.

Mephisteus 10-06-2005 07:43 PM

Its messing up at the imghost field. Its neither a defeault field nor is it part of this hack, Id be looking at another hack... (though I do not know which one, Im guessing one that hosts images on a usergroup basis or something :p)

@trilljester, yes it does :)

Andreas 10-06-2005 07:53 PM

@trilljester
The permissions are the same as for normal moderators.

@JohnBee
Field imghost definitely has nothing to do with this Hack, so this error is caused by another Hack.
=> Remove all Bitfield XMLs from Hacks you don't use (any longer) and rebuilt the bitfield cache.

trilljester 10-06-2005 09:07 PM

Awesome. Thanks for this, Kirby! I really wish this was a feature in VBulletin, I'm surprised it's not. It's actually a feature in most forum softwares.

JohnBee 10-06-2005 10:45 PM

Quote:

Originally Posted by KirbyDE
@trilljester
The permissions are the same as for normal moderators.

@JohnBee
Field imghost definitely has nothing to do with this Hack, so this error is caused by another Hack.
=> Remove all Bitfield XMLs from Hacks you don't use (any longer) and rebuilt the bitfield cache.

Okay I know exacly what MOD is reponsable for this. I did uninstall it but it looks like it left some dirty code behind. Any idea how I can rebuild bitfield cache? I have a file called bitfield_rebuild.php but it won't run gives me an error. Is there another way?

Andreas 10-06-2005 10:47 PM

I don't know where bitfield_rebuild.php comes from, but it is not a standard file.
admincp/index.php?do=buildbitfields is the way to go.

Andreas 10-12-2005 11:49 PM

Quote:

Originally Posted by KirbyDE
Hmm, maybe I could add some Code to prevent changing individual Moderators (that are Mderatros because they are in a Moderator Usergroup).

This is now implemented in Version 1.0.7

cynix2 10-13-2005 02:07 AM

First love the hack its exactly what Im looking for.

Question though, I have my groups that moderate set to be a public usergroup with a leader so they can hire new staffers and such, When they join the usergroup it sets them in the group as an additional usergroup. If i set them manuially your mod allows them to moderate as allowed However when they join a public usergroup using the system they dont have any powers. Why are the users not allowed to moderate? Is it the hack, the forum, or what is happening so that users cannot mod when joining a public group?

Mephisteus 10-13-2005 05:33 AM

Quote:

Originally Posted by cynix2
First love the hack its exactly what Im looking for.

Question though, I have my groups that moderate set to be a public usergroup with a leader so they can hire new staffers and such, When they join the usergroup it sets them in the group as an additional usergroup. If i set them manuially your mod allows them to moderate as allowed However when they join a public usergroup using the system they dont have any powers. Why are the users not allowed to moderate? Is it the hack, the forum, or what is happening so that users cannot mod when joining a public group?

@ cynix2 the querys are done when the form is used that was given by kirby. I do agree however, that it would be a sweet thing considering I have 4 usergroups that would benefit from such a possibility :p

Andreas 10-13-2005 09:27 AM

Public Usergroup Management doesn't run through the Datamanagers, so the current Code doesn't catch that.
Support will be available in Version 1.0.8

Andreas 10-13-2005 12:17 PM

Support for moderated public Usergroups as Moderator Usergroups is now available in Version 1.0.8

akanevsky 10-13-2005 01:11 PM

Nice hack, but this code is kind of creepy:

Code:

  <if condition="$show[modgroup]">
  <if condition="$show[doshowmodgroup]">
  <a href="showgroups.php$session[sessionurl_q]">$moderator[usergrouptitle]</a>
  </if>
  <else />
  <a href="member.php?$session[sessionurl]u=$moderator[userid]" rel="nofollow">$moderator[musername]</a>
  </if>

Cause what if I want to add both groups and single users to a certain forum?
I believe <if> allows that... Somehow:

Code:

  <if condition="$show[modgroup]">
  <if condition="$show[doshowmodgroup]">
  <a href="showgroups.php$session[sessionurl_q]">$moderator[usergrouptitle]</a>
  </if>
  <if condition="$show[doshowmodgroup] OR $show[doshowsinglemod]">, </if>
  <if condition="$show[doshowsinglemod]">
  <a href="member.php?$session[sessionurl]u=$moderator[userid]" rel="nofollow">$moderator[musername]</a>
  </if>
  </if>


Andreas 10-13-2005 01:20 PM

My code is correct, yours isn't - you are opening 4 <if> but close only 3 :)

akanevsky 10-13-2005 01:29 PM

It doesn't matter how many <if>'s I open and close, I am trying to get through the point that you could make it show both groups and users... Besides, I fxied it.

Mephisteus 10-13-2005 01:48 PM

Quote:

Originally Posted by Dark Visor
It doesn't matter how many <if>'s I open and close, I am trying to get through the point that you could make it show both groups and users... Besides, I fxied it.

I could swear it shows both already :p

:)

akanevsky 10-13-2005 01:56 PM

Quote:

I could swear it shows both already
Really? Well I didn't check. If it does then cool :)

Andreas 10-13-2005 02:06 PM

Quote:

Originally Posted by Dark Visor
It doesn't matter how many <if>'s I open and close

It does matter, cause you might/will get template compile errors otherwise ;)

akanevsky 10-13-2005 02:11 PM

Jeez........... I know that... I'm just giving you an ESTIMATE of what the code should be. -.-

jluerken 10-17-2005 07:28 AM

Perfect hack kirbyDE. This should be standard.

I found five small cosmetic problems and it would be nice to get an update for this.

1. If you add a group as moderator for a forum and its subforums then you will see in ADMINCP - Show all moderators only the top forum.
This list should contain also the subforums like if you add the mod to every single board.

2. Admincp - Manage forums. In the last column you can add single moderators. If you add a group as moderator to a forum you see there that the forum has 0 moderators.
There should be the moderatorgroup listed.

3. I wanted to add a group + a single user to a forum. I added the group and then the single user and on the forumhome I can see that the group is gone.
There should be group+user or?

4. If you click on the moderator group on the forumhome page the link points to the show forum leaders page.

5. Admincp - Moderator Usergroup Manager
I am using a group that is not displayed there.
In such cases it would be nice if all users are shown by hovering the moderator group link on the forumhome page

5. See point 1. All forums including the subforums should be listed there.

Kind regards
jluerken

Andreas 10-17-2005 10:48 AM

1) This is standard vBulletin behaviour for Moderators and can't be changed without file edits

2) For me it shows all users of the usergroun then ...

3) For me it shows the single mod and the usergroup

4) This is intended behaviour. Where else should it link to?

5) I don't understand that

jluerken 10-17-2005 12:56 PM

Quote:

Originally Posted by KirbyDE
1) This is standard vBulletin behaviour for Moderators and can't be changed without file edits

Maybe you can tell how this will work as optional step? :D

Quote:

Originally Posted by KirbyDE
2) For me it shows all users of the usergroun then ...

For me it shows 0 Moderators

Quote:

Originally Posted by KirbyDE
3) For me it shows the single mod and the usergroup

Only the last that I entered. Mod OR Modgroup

Quote:

Originally Posted by KirbyDE
4) This is intended behaviour. Where else should it link to?

Its currently linking to showgroups.php (Forum Leaders).
If the moderator group is not listed on the forum leaders page this link makes no sense.
Maybe hovering the link can show the mod names?

Quote:

Originally Posted by KirbyDE
5) I don't understand that

You could not. I was typing much to fast and missed a part :D
I was talking about the moderator group page itself.
If you add a moderator group to a forum again only the top forum is displayed.
Like you told us in point 1 I think this could also be only fixed with file edit or?

Andreas 10-17-2005 01:04 PM

Quote:

Originally Posted by jluerken
Maybe you can tell how this will work as optional step? :)

I won't do that, sorry.

Quote:

For me it shows 0 Moderators
Then you must have done smth. wrong.

Quote:

Only the last that I entered. Mod OR Modgroup
Then you must have done smth. wrong.
http://kirbydemos.ath.cx/forum
http://kirbydemos.ath.cx/forum/forumdisplay.php?f=7


Quote:

Its currently linking to showgroups.php (Forum Leaders).
If the moderator group is not listed on the forum leaders page this link makes no sense.
Maybe hovering the link can show the mod names?
Why should the group not be listed?
Doesn't make sense to me, as the users must know who are moderators.
Anyway, it is possible to make the usernames a title attribute, but that would require another query.

jluerken 10-17-2005 01:11 PM

Quote:

Originally Posted by KirbyDE

Uploaded the files, imported the Produkt, made the 2 Template Changes.
I cannot see what I should have done wrong :D

Quote:

Originally Posted by KirbyDE
Why should the group not be listed?
Doesn't make sense to me, as the users must know who are moderators.
Anyway, it is possible to make the usernames a title attribute, but that would require another query.

I have internal clan forums where the clans can organize themself but I don't want to show them on the forum leader page cause they are no forum leaders.
They can manage their forum but they're not belonging to my official staff.
Therefore I turned off the option to show those groups on the forum leader page.
Members who want to know who can moderate the board can still see this if they have access.

Andreas 10-17-2005 01:14 PM

Quote:

Originally Posted by jluerken
Uploaded the files, imported the Produkt, made the 2 Template Changes.
I cannot see what I should have done wrong :D

I don't know either :)
Only thing I can say is that it works just fine on my system.

moonclamp 10-23-2005 12:52 PM

Would there be anyway to have secret moderator group that doesn't show up in the list?

There have been so many accusations of favouritism on my forum that I don't really want my members to know who the moderators are.

Abe1 10-23-2005 03:09 PM

Quote:

Originally Posted by jluerken
Uploaded the files, imported the Produkt, made the 2 Template Changes.
I cannot see what I should have done wrong :D



I have internal clan forums where the clans can organize themself but I don't want to show them on the forum leader page cause they are no forum leaders.
They can manage their forum but they're not belonging to my official staff.
Therefore I turned off the option to show those groups on the forum leader page.
Members who want to know who can moderate the board can still see this if they have access.

I had the same problem. I total removed the hack and moderators from the groups. I then installed the updated hack and it works now.

BlackxRam 10-27-2005 12:24 PM

So is this pretty Stable now with 3.5 Gold?

thalamus 10-30-2005 01:05 PM

Works perfectly for me :) Thanks for this, saves a lot of time ;) *installs*

Stephen3 12-07-2005 07:14 PM

will effect when upgrade to 3.5.2 or higher?

edbri871 12-07-2005 09:51 PM

I was looking for hack to allow a usergroup to be able to delete and merge thier own posts only within a certain section. The delete part was simple but not the merge. An alternative to have forum moderators so that they have the ability to mod only a paticular forum although the prior would be preffered.

I was linked to this thread and Im not sure if its what Im looking for though I could be mistaken. If this can do what I need maybe someone could let me know and if not could anyone figure how I can do what Im looking for...

Thanks.

edbri871 12-08-2005 05:27 PM

The above post can be ignored since Ive figured how to do what I wanted now...

SmEdD 12-12-2005 05:54 AM

Under "Show All Moderators" if I have them in a usergroup which is a group for Moderating a forum and I click " [Remove this Moderator from All Forums]" it prompts me to download moderator.php . . .

redlabour 12-15-2005 04:09 PM

Updated to 1.0.9 today - my Group "Moderators" is still not shown. Of course i tryed to deinstall and reinstall.

Frist thing i see - it is still in german but it have taken this english Version here now. What?s going wrong there ? :ermm:

Admin and Supermoderators works fine in the same Category.

Quote:

Fixed a Bug which caused Moderator Usergroups not being displayed properly in subforums.
So this is not working in my Eyes .... and of course i have uploaded the new Files and edited the Templates.

Update : After the Update my Moderators where "registered Users" after a manually Change for each one to Moderators again it works.

exegete 01-12-2006 12:34 PM

Am experiencing errors.

They occur when I attempt to use the "Remove this Moderator from All Forums" function (ACP -> Forums & Mods -> Show All Mods), and the moderator I am attempting to de-mod is a member of one or more moderator usergroups added with this extension.

The action appears to be performed successfully, so everything continues to operate correctly, but the errors appear on the redirection page nonetheless.

MySQL 4.0.25
vB 3.5.3

Code:

Warning: mysql_query(): 5 is not a valid MySQL-Link resource in /includes/class_core.php on line 404

Warning: mysql_error(): 5 is not a valid MySQL-Link resource in /includes/class_core.php on line 846

Warning: mysql_errno(): 5 is not a valid MySQL-Link resource in /includes/class_core.php on line 864

...

Database error in vBulletin 3.5.3:

Invalid SQL:

                                INSERT INTO moderator (userid, forumid, permissions, moderatorusergroupid, modusergroupid)
                                SELECT 4288 AS userid, moderatorusergroup.forumid, moderatorusergroup.permissions, moderatorusergroup.moderatorusergroupid, moderatorusergroup.usergroupid
                                FROM moderatorusergroup AS moderatorusergroup
                                LEFT JOIN moderator AS moderator ON (moderator.userid = 4288 AND moderator.forumid=moderatorusergroup.forumid AND moderator.moderatorusergroupid=moderatorusergroup.moderatorusergroupid)
                                WHERE moderatorusergroup.usergroupid IN (5)
                                        AND ISNULL(moderator.moderatorid);

MySQL Error  :
Error Number :
Date        : Friday, January 13th 2006 @ 01:21:45 AM
Script      : http://community.boredofstudies.org/admincp/moderator.php
Referrer    : http://community.boredofstudies.org/admincp/moderator.php?do=removeall&u=4288
IP Address  : 203.214.152.105
Username    : Lazarus
Classname    : vb_database

It is otherwise a very nice extension. :) Thank you.


All times are GMT. The time now is 02:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01650 seconds
  • Memory Usage 1,852KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete