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

Reply
 
Thread Tools
Details »»

Version: , by Mas*Mind Mas*Mind is offline
Developer Last Online: Sep 2003 Show Printable Version Email this Page

Version: 2.0.x Rating:
Released: 06-16-2001 Last Update: Never Installs: 21
 
No support by the author.

UPDATE 18/7 22:23 (Dutch Time)

Changelog:

deleted some unnecesary htmlspecialchars() and htmlentities()-calls

Fixed the problem that you couldn't move to a forum in which no threads can be posted.

Only re-upload spinner.php (newly attached) and you're done


Description: This hack allows mods/admins to selectively delete/open/close/move/copy/movewredirect threads in a certain forum at once!

VBversions: tested with 2.01 but will probably work on all versions

Features: Certain features are only shown when the particular mod has the rights for it. EG: When a mod can't close threads the 'close' option won't be shown.

Screenshots:

hidden admin option:


opening screen:


threadlist:


nextpage:


are you sure? screen:


confirmation screen:


instructions:
  1. Download the attached spinner.txt
  2. Rename it to spinner.php or spinner.php3
  3. Upload it to your mod directory
  4. Backup moderator.php in your root directory
  5. Open moderator.php
  6. Insert:

    PHP Code:
    if ($action=="spinthreads") {

      
    $permissions=getpermissions();
      if (
    $permissions[ismoderator]) {
        
    header("Location: mod/index.php?s=$session[sessionhash]&loc=spinner.php?s=$session[sessionhash]%26parentid=$forumid");
      } else {
        
    show_nopermission();
      }


    after:

    PHP Code:
    if ($action=="modattach") {

      
    $permissions=getpermissions();
      if (
    $permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmoderateattachments=1")) {
        
    header("Location: mod/index.php?s=$session[sessionhash]&loc=moderate.php?s=$session[sessionhash]%26action=attachments");
      } else {
        
    show_nopermission();
      }


    Note: If you've renamed spinner.txt to spinner.php3 then you have to change

    header("Location: mod/index.php?s=$session[sessionhash]&loc=spinner.php?s=$session[sessionhash]%26parentid=$forumid");

    to

    header("Location: mod/index.php?s=$session[sessionhash]&loc=spinner.php3?s=$session[sessionhash]%26parentid=$forumid");

    in the above section
  7. Save moderator.php
  8. Edit your forumdisplay_adminoptions template (forumdisplay templates)

    and add a new option:

    <option value="spinthreads">Spin Threads</option>

    so it probably will look something like this:

    Quote:
    <table cellpadding="0" cellspacing="0" border="0">
    <form action="moderator.php" method="get"><tr><td>
    <smallfont>
    <input type="hidden" name="s" value="$session[sessionhash]">
    <input type="hidden" name="forumid" value="$forumid">
    <b>Admin Options:</b><br>
    <select name="action"
    onchange="window.location=('moderator.php?s=$sessi on[sessionhash]&forumid=$forumid&action='+this.options[this.selectedIndex].value)">
    <option value="modposts" selected>-- Forum Options --</option>
    <option value="modposts">View Posts Queue</option>
    <option value="modattach">View Attachment Queue</option>
    <option value="move">Mass Move</option>
    <option value="prune">Mass Prune</option>
    <option value="spinthreads">Spin Threads</option>
    </select>
    <input type="image" src="images/go.gif" border="0" align="absbottom">
    </smallfont>
    </td></tr></form>
    </table>

That's it! Enjoy

Show Your Support

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

Comments
  #42  
Old 01-16-2003, 07:50 AM
Jeff Williams Jeff Williams is offline
 
Join Date: Jul 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am running version 2.2.6 of vBulletin. However, when I am inside the specific forum I want to organize (I added subforums and I am just shuffling threads around), I cannot seem to find that pesky moderator options pull down. What the heck am I doing wrong?

I sure hope I can figure out how to make this work, otherwise getting this board revised is going to be a never ending project.

Also, I didn't quite follow an earlier post about accessing spinner via the Admin CP. If I could do this, it would be excellent. I see where you showed what code to add, but I am not sure to which file or template the addition should be made.

Sorry if I sound like an idiot. Generally speaking - when it comes to coding, that's exactly what I am.

http://www.northwestdiver.com/forums
Reply With Quote
  #43  
Old 01-16-2003, 06:21 PM
Jeff Williams Jeff Williams is offline
 
Join Date: Jul 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A follow-up question. Is this a hack of a hack? I mean, is there normally a "Moderator Options" pull down available at the forum level? I have contacted a couple other friends who are running vBulletin, and they are having similar issues...

They can't find the menu either!
Reply With Quote
  #44  
Old 01-31-2003, 12:01 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is not a moderator options pulldown, there is an Admin Options pulldown. Yes, that is standard to vBulletin.
Reply With Quote
  #45  
Old 02-02-2003, 02:18 AM
Jeff Williams Jeff Williams is offline
 
Join Date: Jul 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK... I am still not seeing an "admin options" pulldown.
Reply With Quote
  #46  
Old 05-20-2003, 02:49 PM
Austin Dea's Avatar
Austin Dea Austin Dea is offline
 
Join Date: Dec 2001
Location: Denver, CO, USA
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works perfectly on 2.3.0 with scsa20's and Link's modifications. I didn't use the moderator additions (which may be where the problems are), because I wanted only the admins to be able to do it =P
Reply With Quote
  #47  
Old 05-20-2003, 07:32 PM
Intex Intex is offline
 
Join Date: Apr 2002
Posts: 576
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, works great. Good job .
Reply With Quote
  #48  
Old 08-16-2003, 03:11 AM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow.. this was hidden.. glad I found it. VERY useful for dividing up forums and putting threads in new forums!
Reply With Quote
  #49  
Old 09-01-2003, 08:05 PM
subu1 subu1 is offline
 
Join Date: Sep 2002
Location: Germany
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi Friends, i have the Version 2.2.8 but i dont can find this in my Moderator.php

PHP Code:
if ($action=="modattach") { 

  
$permissions=getpermissions(); 
  if (
$permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmoderateattachments=1")) { 
    
header("Location: mod/index.php?s=$session[sessionhash]&loc=moderate.php?s=$session[sessionhash]%26action=attachments"); 
  } else { 
    
show_nopermission(); 
  } 


need help plaese
Reply With Quote
  #50  
Old 09-02-2003, 11:25 AM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this hack was made for 2.0.1 the code has most likly changes since then :\
Reply With Quote
  #51  
Old 09-02-2003, 12:10 PM
subu1 subu1 is offline
 
Join Date: Sep 2002
Location: Germany
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, but sorry where can i put it in

this code

PHP Code:
if ($action=="spinthreads") { 

  
$permissions=getpermissions(); 
  if (
$permissions[ismoderator]) { 
    
header("Location: mod/index.php?s=$session[sessionhash]&loc=spinner.php?s=$session[sessionhash]%26parentid=$forumid"); 
  } else { 
    
show_nopermission(); 
  } 


sorry for my bad english
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:09 AM.


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.04821 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (4)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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