Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #12  
Old 07-29-2005, 10:46 PM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I have been away because of computer problems.
Ill investigate this tomorrow, as its now 2 AM.
Reply With Quote
  #13  
Old 07-30-2005, 10:54 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iguanairs
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!
Fixed the installer problem.
The Check All function is currently not possible, because a Check All box would also check ALL usergroups in the "Make Moderator member of". I will work on this later though, I might yet be able to do it.

Quote:
Originally Posted by iguanairs
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.
Must be some hardcoded stuff from my testing, I fixed this now.

Also, I tried to make multiple moderator adding possible, like I did with the 3.5 version. This has failed, and cannot be added to the 3.0.x version.
Reply With Quote
  #14  
Old 08-20-2005, 06:19 AM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot.
Reply With Quote
  #15  
Old 09-18-2005, 07:04 AM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Little bump; could you upgrade this mod for vB3.5 aswell?
Reply With Quote
  #16  
Old 09-19-2005, 08:57 AM
Revan's Avatar
Revan Revan is offline
 
Join Date: Jan 2004
Location: Norway
Posts: 1,671
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a backport from my 3.5.0 version, check my profile.
Reply With Quote
Reply

Thread Tools

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 02:14 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.04481 seconds
  • Memory Usage 2,259KB
  • Queries Executed 20 (?)
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
  • (2)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
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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