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
  #32  
Old 06-26-2002, 06:47 AM
Keta Keta is offline
 
Join Date: Nov 2001
Location: michigan
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work for 2.2.6?
Reply With Quote
  #33  
Old 06-26-2002, 08:54 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dunno...

Im testing it in a second or two!

BTW : Great Hack!

Satan
Reply With Quote
  #34  
Old 06-26-2002, 09:31 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 2 screenshots to share...

The Good news : The screenshot below proves it works

The Bad news : It will only appear in the CP, as for some strange reason, it doesnt in the "admin options"...

Satan
Reply With Quote
  #35  
Old 06-26-2002, 09:33 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Satan
Reply With Quote
  #36  
Old 06-27-2002, 06:04 AM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
The Bad news : It will only appear in the CP, as for some strange reason, it doesnt in the "admin options"...
Did you add the necessary code to forumdisplay_adminoptions? It works on my 2.2.6 board.
Reply With Quote
  #37  
Old 08-02-2002, 07:28 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did this but after I have moved a forum, and click on the link of the forum in the spin threads box that verifies that, it gives me a page not found error. Any ideas on this one?

EDIT: Attached is a picture of what I am talking about. Look in the lower left habd corner at the Status Bar. That is what shows up when I hightlight the forum name that the thread was moved to (Graphics design). It shows the forum/mod dir instead of just the forum dir.

And is there any way to have this just for the Admin and not mods if I want it there?

Quote:
Originally posted by scsa20


hmm...might be a little late for this, but I just like to add something to that....if you are going to use that in the admin cp, all you have to do is put in the following instead of the above:

Code:
makenavoption("Spin Threads","../mod/spinner.php?action=spinthreads");
put that somewhere in your admin/index.php file (along with the other links), and it'll just go into the mod folder to get the file (along with any other thing it needs).....if you want to know a good place (well..I didn't really put it in a good place, but it's a good place)...here's what you do:

In admin/index.php, search for:

PHP Code:
makenavoption("Who Voted?","thread.php?action=votes"); 
and replace it with:

PHP Code:
makenavoption("Who Voted?","thread.php?action=votes","<br>");
makenavoption("Spin Threads","../mod/spinner.php?action=spinthreads"); 
well...that's were I put mine...good luck for whoever needed this type of info
Reply With Quote
  #38  
Old 08-02-2002, 04:25 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could probably fix that..... hold on. (I want to insdtall it too!)
Reply With Quote
  #39  
Old 08-02-2002, 04:32 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hellsatan: it only apears in the FORUM dropdown, not the thread dropdown.

Boofo: open up spinner.php.

change both instances of:
Code:
a href='forumid=$moveTo[$threadID]' target='_blank'
to
Code:
a href='../forumdisplay.php?forumid=$moveTo[$threadID]' target='_blank'
Not tested, but it should work
Reply With Quote
  #40  
Old 08-05-2002, 12:03 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That fixed it. Thanks!
Reply With Quote
  #41  
Old 09-19-2002, 10:42 AM
JohnWoo's Avatar
JohnWoo JohnWoo is offline
 
Join Date: Jan 2002
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great huck.... You safe me...
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 01:54 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.07825 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
  • (3)bbcode_code
  • (4)bbcode_php
  • (3)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
  • (4)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