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
  #22  
Old 07-31-2001, 04:37 PM
Axel Foley's Avatar
Axel Foley Axel Foley is offline
 
Join Date: Nov 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I take some actions using this awesome script, the ModLogActivities hack won't log them. If I use the standard procedure (using vB standard actions) to delete, close threads actions DO get logged by ModLog hack.

I haven't had the chance to take a look at the code Mas*Mind, and I wondered if you simply call vB functions or does the hack actually make the modifications itself (that would explain why ModLog hack doesn't "trap" the actions).

Thanks for you're work Mas*Mind, you made a great hack!


...Axel
Reply With Quote
  #23  
Old 01-26-2002, 01:54 AM
WhiteKnight WhiteKnight is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Long time passed, but it's still a great hack.

I installed it on 2.2.1 and it works fine for admins and supermods. But it gives me some problems with moderators, because they cannot access the spinner via Admin Options. I guess it's in the permissions, rather than the hack, but I haven't had the time yet to test it thoroughly. Maybe someone could point me to the right direction.

One more thing: how can I add a link to the spinner in the admin/mod cp?
Reply With Quote
  #24  
Old 01-26-2002, 02:13 AM
DelusionalMind's Avatar
DelusionalMind DelusionalMind is offline
 
Join Date: Dec 2001
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice

just installed it. hehe
Reply With Quote
  #25  
Old 02-15-2002, 02:33 PM
mister mister is offline
 
Join Date: Oct 2001
Location: Detroit, MI
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

real nice hack.... cant wait to use it
Reply With Quote
  #26  
Old 02-17-2002, 03:57 PM
Arathorn Arathorn is offline
 
Join Date: Nov 2001
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by WhiteKnight
How can I add a link to the spinner in the admin/mod cp?
makenavoption("Spin Threads","spinner.php?action=spinthreads");
Reply With Quote
  #27  
Old 02-27-2002, 02:14 PM
Tarion's Avatar
Tarion Tarion is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by WhiteKnight
Long time passed, but it's still a great hack.

I installed it on 2.2.1 and it works fine for admins and supermods. But it gives me some problems with moderators, because they cannot access the spinner via Admin Options. I guess it's in the permissions, rather than the hack, but I haven't had the time yet to test it thoroughly. Maybe someone could point me to the right direction.

One more thing: how can I add a link to the spinner in the admin/mod cp?
i got it work for my mods in 2.2.1 with this modification:

in root/moderator.php search for:

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

 
$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();
  }


and replace it with this code:

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

  
$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=spinner.php?s=$session[sessionhash]%26parentid=$forumid");
  } else {
    
show_nopermission();
  }


It worked for my mods smoothly. I hope this helps you
Reply With Quote
  #28  
Old 03-07-2002, 04:07 PM
WhiteKnight WhiteKnight is offline
 
Join Date: Jan 2002
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it does...thank you
Reply With Quote
  #29  
Old 04-14-2002, 01:19 PM
v0nreagan's Avatar
v0nreagan v0nreagan is offline
 
Join Date: Nov 2001
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be possible to add search to the spinner? Basicaly you would search for a pattern in subjest and spin only those posts?
Reply With Quote
  #30  
Old 04-21-2002, 08:31 AM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Arathorn


makenavoption("Spin Threads","spinner.php?action=spinthreads");
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
  #31  
Old 04-27-2002, 08:05 AM
BenH BenH is offline
 
Join Date: Apr 2002
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack !
just the one im looking for , but will it work on 2.2.5 ?
i dont know to do any changes

thank you
ben
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 11:42 AM.


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.04757 seconds
  • Memory Usage 2,336KB
  • 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
  • (1)bbcode_code
  • (6)bbcode_php
  • (4)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