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)
-   -   Restrict Supermod Permissions (https://vborg.vbsupport.ru/showthread.php?t=91121)

Andreas 06-25-2005 10:00 PM

Restrict Supermod Permissions
 
Restrict Supermod Permissions
This Hack allows you to restrict the Permissions of Supermods just as you can with normal Moderators.

Details
1 Bitfield XML File
1 Query
1 File Edit (only for Versions < 3.5 RC3)

History
1.0.0
Initial Version

1.0.1
Fixed wrong Phrases

1.0.2
Updated for RC3
This Hack is now packaged as a Product and does not require File Edits any longer

1.0.3
Moved the Permissions to their own Group (Super Moderator Permissions) in Usergroup Manager; they are now also hidden from Non-Supermod Usergroups
No functional changes.

1.0.4
Fixed two wrong phrases
Changed product assignment for bitfield XML from vbulletin to smodperms.

Important Notice
This Hack is not necessary nor compatible with vBulletin 3.6.
Do not install it on 3.6 and don't expect or ask for an update.

Please only click Install if you actually have installed/are using this Hack, and click Uninstall when you don't use it any longer!

Christine 06-26-2005 05:22 PM

THANK YOU Kirby!!

Downloaded and going to test now...

Christine 06-26-2005 05:46 PM

Loaded flawlessly and is working like a champ. No messy error messages -- the permissions are controlling what options they even see.

Have I told you lately that I love you? :p

Andreas 06-26-2005 05:50 PM

Quote:

Originally Posted by Christine
the permissions are controlling what options they even see.

Yes. They work (at least they should) exactly the same way as they do for normal Moderators.

Quote:

Have I told you lately that I love you? :p
[high]* Andreas feeling ashamed now :)[/high]

Chris M 06-27-2005 12:00 AM

I've been saying that we need a feature like this since the first Beta of vB 3.0 - Hope this makes it into 3.5 as an actual feature :D

Satan

southernlady 07-07-2005 11:46 AM

Quote:

Database error in vBulletin 3.5.0 Beta 3:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Super Moderators',
`description` = '',
`usertitle` = 'Super Moderator',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '0',
`passwordhistory` = '0',
`forumpermissions` = '917503',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '3',
`pmsendmax` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '15',
`adminpermissions` = '0',
`modpermissions` = '32',
`genericpermissions` = '204430703',
`genericoptions` = '31',
`profilepicmaxwidth` = '150',
`profilepicmaxheight` = '150',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000'
WHERE usergroupid=5;

MySQL Error : Unknown column 'modpermissions' in 'field list'
Error Number : 1054
Date : Thursday, July 7th 2005 @ 07:20:05 AM
Script forum/admincp/usergroup.php
Referrer : http/admincp/usergroup.php?do=edit&usergroupid=5
IP Address
Username
Classname
I got an error but I suspect it has more to do with MY MySQL version or my phpmyadmin and not the modification itself. I'm using (only because I have no choice), MySQL version is 4.0.24 and phpmyadmin is 2.6.2-rc1. Liz

Andreas 07-07-2005 11:50 AM

This has nothing to do with your mySQL Version (it even works with mySQL 3.23), you just did not install it correctly.
Carefully (!) check the installation instructions again, especially Step 1.

southernlady 07-07-2005 12:02 PM

Kirby, I've NEVER run a query before...HELP???? Please. Liz

Andreas 07-07-2005 12:09 PM

ACP / Maintenance / Execute SQL Query or phpMyAdmin
http://vbulletin.com/forum/showthread.php?t=18558

southernlady 07-07-2005 12:10 PM

I'm in phpmyadmin cause that's where I have to run it but I don't know how. I've never done it before. And my host isn't online yet.

Thank you for the link.. Liz

Marco van Herwaarden 07-07-2005 12:50 PM

If you are logged into phpMyAdmin and have selected a database, you will see a tab-page called 'SQL'.

On this page you can enter SQL-Commands as instructed.

southernlady 07-07-2005 01:23 PM

Apparently I wasn't allowed to run it...my host had to...it works now. Thank you for trying to teach me how tho. I did try to run it. Liz

jluerken 07-08-2005 05:55 AM

Why is this not standard in vb3.5? :tired:

Thanks to the author

Biker_GA 07-19-2005 06:43 PM

Kirby, if I ever get back over there, beer is on me. This is something I've needed for a VERY long time.

Boofo 07-26-2005 08:32 AM

Works great except that I have 2 options that are the same. Can edit Posts.

Quote:

Can Moderate All Forums (is Super Moderator)
Can Access Control Panel (is Administrator)
--> Can Edit Posts
Can Delete Posts
Can Open / Close Threads
Can Edit Threads
Can Manage Threads
Can Post Announcements
Can Moderate Posts
Can Moderate Attachments
--> Can Edit Posts
Can Mass-Move Threads
Can View IP Addresses
Any idea why this might be happening, sir? ;)

EDIT: It turns out I have that same thing going on in the Admin usergroup settings also. Is this supposed to be this way?

Andreas 07-26-2005 08:44 AM

Wrong Phrase, fixed.
To upgrade overwrite bitfield_smodperms.xml and rebuild bitfield cache.

Boofo 07-26-2005 09:11 AM

I was just coming back to tell you I found the problem. And it was the phrase. LOL

Great work, sir. ;)

Boofo 07-26-2005 09:17 AM

Should the Administrator Permissions be showing up in all of the Usergroup settings? It shows up in the Admin, SuperMod, Moderators and Regsitered users. Those are the ones I have checked so far.

Andreas 07-26-2005 09:23 AM

It does show up in every Usergroup. Although there is an option to hide Permissions from certain Usergroups (in this case it should be hidden from all except Supermods), it does not seem to work on my System at least.

Furthermore, as any Usergroup could be a Supermod Usergroup, I think it somehow does make sense to show it in all Groups.

Boofo 07-26-2005 09:31 AM

Ok, I just wanted to make sure is all. The only group it doesn't show up in is the Unregistered/Not Logged In group. It shows for Coppa, users awaiting email and the banned usergroup, too. Just thought you should know. ;)

Boofo 07-26-2005 09:35 AM

Kirby, you need to clear some PM space. My PM didn't go out to you. ;)

Christine 07-26-2005 02:47 PM

He is saving all of my PMs for posterity. *drama*

Heh.

Boofo 07-26-2005 02:54 PM

Ahhhhh, so YOU'RE the one. ;)

mOdEtWo 08-03-2005 04:22 PM

This plugin isn't updated for RC1. Does that have anything to say?

Andreas 08-03-2005 04:32 PM

This is not a Plugin but a Code Edit and should still work.

john_robot 09-01-2005 03:17 PM

Permissions of Supermods just as you can with normal Moderators. , Hi just noticed that this can restrict not only Supermods any user group. I am doing something wrong there ?? or its normal?

Andreas 09-01-2005 08:14 PM

The Permissions will show up for every Usergroup, yes.
However, they will only have an effect in Supermod Usergroups.

Andreas 09-08-2005 04:37 AM

Updated for RC3 - no more File Edits for this Hack :)

Boofo 09-08-2005 04:55 AM

Does it still show up in all the usergroup settings?

Andreas 09-08-2005 04:59 AM

Yes it does. But I think I could hide it so it will only show in Supermod Usergroups ... if that is necessary.

Boofo 09-08-2005 05:01 AM

Quote:

Originally Posted by KirbyDE
Yes it does. But I think I could hide it so it will only show in Supermod Usergroups ... if that is necessary.

Please, would you, sir? ;)

john_robot 09-12-2005 03:10 PM

I have your MOD installed when I had RC2. But recently ( I think after I upgraded to RC3) Its showing the Deleted by user notes. How to disable this?

the discussion about this you can find here

https://vborg.vbsupport.ru/showthrea...687#post771687

Andreas 09-12-2005 03:14 PM

I don't think this could be caused by my Hack as Show Deletion Notes is a Usergroup Permission and not a Moderator Permission, but you can easily check this by disabling the Hack.

john_robot 09-12-2005 05:35 PM

Hi how to desable the hack ?

Andreas 09-12-2005 05:51 PM

ACP / Plugin System / Manage Products / Disable - if you are using the RC3 Version.
For the previous Version you must undo the File Edits too.

john_robot 09-13-2005 01:59 AM

HI , I cannot find your package there.. ( But I installed it after the upgrade i think it has been despaired and changed few settings?) So now I have installed it again. ( haven’t been able to uninstall the OLD version)

will you be able to check my admin panel pls?

john_robot 09-13-2005 04:15 AM

Sorry to trouble you

It's a bug in 3.5 RC3.

See http://www.vbulletin.com/forum/bugs...view&bugid=1272

Boofo 09-13-2005 06:09 AM

You're link in that post is bad. It doesn't work.

Andreas 09-13-2005 06:14 AM

<a href="http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1272" target="_blank">http://www.vbulletin.com/forum/bugs3...iew&bugid=1272</a>

Boofo 09-13-2005 07:26 AM

Kirby, did you ever get this so it doesn't show up for any usergroups but Super Mods?


All times are GMT. The time now is 04:43 PM.

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.01340 seconds
  • Memory Usage 1,808KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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