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

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
  #2  
Old 06-17-2001, 12:42 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

woah power users GO!
Reply With Quote
  #3  
Old 06-17-2001, 01:43 PM
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
Posts: 434
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent Job! This hack is awsome!
Reply With Quote
  #4  
Old 06-17-2001, 03:19 PM
MHR MHR is offline
 
Join Date: Oct 2001
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

awesome!
Reply With Quote
  #5  
Old 06-17-2001, 03:29 PM
Prezident's Avatar
Prezident Prezident is offline
 
Join Date: Nov 2001
Location: Denver, CO. USA
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, that is one of the easiest hacks I have ever installed.

Thanks.
Reply With Quote
  #6  
Old 06-17-2001, 03:44 PM
the_sisko's Avatar
the_sisko the_sisko is offline
 
Join Date: Oct 2001
Location: Hamburg,Germany
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one, works perfect!
I've uploaded it to admin root and change the redirect to it. To get it work, you need to copy the:
// ###################### Start makemodchoosercode #######################

of your mod/global.php to your admin/global.php

Thx a lot!
Reply With Quote
  #7  
Old 06-17-2001, 04:12 PM
h4p3 h4p3 is offline
 
Join Date: Oct 2001
Location: Vienna
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, nice addon Mas*Mind!
Reply With Quote
  #8  
Old 06-17-2001, 06:46 PM
dicetomato dicetomato is offline
 
Join Date: Nov 2001
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow, nice hack!
Reply With Quote
  #9  
Old 06-18-2001, 04:04 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great! Just one minor suggestion - make "do nothing" the default selected if it isn't (I haven't tried it yet, sorry ).
Reply With Quote
  #10  
Old 06-18-2001, 08:00 AM
Mas*Mind's Avatar
Mas*Mind Mas*Mind is offline
 
Join Date: Oct 2001
Location: Amsterdam, The Netherlands, currently living in Cape Town, South Africa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by tubedogg
Looks great! Just one minor suggestion - make "do nothing" the default selected if it isn't (I haven't tried it yet, sorry ).
it is
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 03:54 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.09710 seconds
  • Memory Usage 2,307KB
  • 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
  • (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
  • (2)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