vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Easy Add Forum Moderator (https://vborg.vbsupport.ru/showthread.php?t=92370)

Revan 07-16-2005 09:00 PM

Easy Add Forum Moderator
 
Easy Add Forum Moderator v1.1

This hack was inspired by this thread, and is a port of this Extension. I found this to be a rather useful feature, so I decided to add it.

What this mod does:
It enables you to add a single user to multiple forums at once.
The new moderator will have the same permissions everywhere, so fine-tuned permissions still need to be done individually.

Features:
  • Detecting of Category or parent-less forums
  • Add the moderator to any combination of your forum list
  • Same detailed configuration options as if you were adding the Moderator manually
  • Username existance check to prevent nonexistant users from being moderators
  • Fully phrased


Screenshot attached.

Install instructions:
  1. Click install (you want your precious support, don't you?).
  2. Upload the files.
  3. Run /admincp/forummod_install.php.
  4. Delete above file.
  5. Perform the file edit as detailed in install.txt.
  6. Enjoy.


https://vborg.vbsupport.ru/
All Your Money Are Belong To Me :)

yoyoyoyo 07-17-2005 11:12 AM

very cool- the old way was kind of tedious. good work.

Milchi 07-17-2005 01:47 PM

Installed, Thx!

bigcurt 07-17-2005 04:15 PM

Thanks alot for doing this Revan

Rich 07-18-2005 03:16 PM

Hello,

Great idea. I found some problems though. :disappointed:


Change line 39 of forummod_install.php to read:

PHP Code:

    print_description_row('<center><a href="forummod_install.php?do=install">Install</a> | <a href="forummod_install.php?do=uninstall">Uninstall</a></center>'); 

The link you have there is not correct and the uninstall feature doesn't work currently.

The second problem is that it didn't work on my site. I ran the installer, made the edit, and everything appeared. When I added a mod to all of the forums, it added one of my admins, user ID=2 instead of the user I added. I figured what the hell, and tried another user. It didn't even add that user. It gives the "ok", but didn't add the user. (I haven't looked at the code yet, but will do so following this post.

If I may suggest an improvement in functionality, could we add a "Select All Forums" at the top of the list? This would autopopulate each box as being checked for those of us with 100+ forums that we are adding each mod too. I think that would be a great feature and a MASSIVE time saver.

I look forward to the upgrade for this. I really would like to use it. I have a ton of hand adding to do as I upgrade, and this would make life so much easier!

Rich 07-18-2005 03:50 PM

Hello,

I have isolated the problem to be line 181 of forummod.php. Currently, the line dictates values. I am fairly new to this, so I am playing with the code to see if it works the way I have it written.

The first number after values is specifying the user ID that is being assigned to the forums. In my case, that was user ID=2. I have changed that to read: $userid

The second value is correct and the third value reads: 1279. I am testing it with that value to see if it works. If it doesn't, I was thinking $perms, but I don't know if that is accurate. Anyone know?

Here is the string:

PHP Code:

        $DB_site->query("INSERT INTO " TABLE_PREFIX "moderator (userid, forumid, permissions) VALUES ('$userid', '$forumid', '1279')"); 


I played for a bit and tried to get it sorted by I couldn't. I need someone with more experience to resolve this. Sorry.

csidlernet 07-20-2005 06:31 AM

Quote:

Originally Posted by yoyoyoyo
very cool- the old way was kind of tedious. good work.

you couldnt have put it better

Rich 07-22-2005 10:21 AM

Hello,

I will click uninstall and check in on this when more people are trying it out I guess.

Neutral Singh 07-22-2005 11:08 AM

gr8!! looking for this hack since ages... as i am upgrading to vB3.5.0, i will love to see this hack in vB 3.5.0!! Please !! :)

Rich 07-23-2005 10:26 AM

Hello,

Just bumping this so it doesn't get lost in the shuffle. Anyone want to take a stab at repairing this?


All times are GMT. The time now is 01:49 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.01970 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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