Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Easy Add Forum Moderator Details »»
Easy Add Forum Moderator
Version: 1.1, by Revan Revan is offline
Developer Last Online: Jun 2014 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 07-16-2005 Last Update: 07-29-2005 Installs: 9
DB Changes
Code Changes Additional Files  
No support by the author.

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.



All Your Money Are Belong To Me

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-17-2005, 12:12 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very cool- the old way was kind of tedious. good work.
Reply With Quote
  #3  
Old 07-17-2005, 02:47 PM
Milchi Milchi is offline
 
Join Date: Jun 2005
Location: Nueremberg
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, Thx!
Reply With Quote
  #4  
Old 07-17-2005, 05:15 PM
bigcurt's Avatar
bigcurt bigcurt is offline
 
Join Date: Nov 2004
Location: KierDarby.php
Posts: 1,009
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot for doing this Revan
Reply With Quote
  #5  
Old 07-18-2005, 04:16 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #6  
Old 07-18-2005, 04:50 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 07-20-2005, 07:31 AM
csidlernet csidlernet is offline
 
Join Date: Apr 2003
Location: sydney
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
very cool- the old way was kind of tedious. good work.
you couldnt have put it better
Reply With Quote
  #8  
Old 07-22-2005, 11:21 AM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I will click uninstall and check in on this when more people are trying it out I guess.
Reply With Quote
  #9  
Old 07-22-2005, 12:08 PM
Neutral Singh's Avatar
Neutral Singh Neutral Singh is offline
 
Join Date: Sep 2004
Location: Sikh Philosophy Network
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 !!
Reply With Quote
  #10  
Old 07-23-2005, 11:26 AM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04480 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete