Announcement

Collapse
No announcement yet.

[release] vbThreadSpinner

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [release] vbThreadSpinner

    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:

      <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=$session[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
    Last edited by Mas*Mind; Mon 18 Jun '01, 1:40pm.

  • #2
    woah power users GO!
    :: Always Back Up Forum Database + Attachments BEFORE upgrading !
    :: Nginx SPDY SSL - World Flags Demo [video results]
    :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

    Comment


    • #3
      Excellent Job! This hack is awsome!
      - MrLister

      Comment


      • #4
        awesome!

        Comment


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

          Thanks.

          Comment


          • #6
            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!
            The Sisko
            SciFi-Forum.de

            Comment


            • #7
              Yep, nice addon Mas*Mind!

              Comment


              • #8
                wow, nice hack!
                Owner/Webmater of Chrono Shock

                http://www.chronoshock.com

                Comment


                • #9
                  Looks great! Just one minor suggestion - make "do nothing" the default selected if it isn't (I haven't tried it yet, sorry ).

                  Comment


                  • #10
                    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

                    Comment


                    • #11
                      I will definitely be installing this! Well done.

                      Comment


                      • #12
                        update (see first post)

                        only re-upload the newly attached spinner.php and you're done

                        Comment


                        • #13
                          push, push, push!!! best of the best.

                          how-to request: please show us how to make the option only available for admin?

                          Comment


                          • #14
                            I have another feature to request with this already awesome hack which would make it even more usefull.

                            Can you add an option to merge threads, maybe with a dropdown list of thread subjects that it can be merged with?

                            I don't know how hard that would be, or if it is possible, but I think it would be a great feature.

                            Let me know if you would like a more detailed explanation.

                            Thanks.

                            Comment


                            • #15
                              BUMP

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X