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 bira bira is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-13-2001 Last Update: Never Installs: 26
 
No support by the author.

Three additional tools for administrators/moderators - one written by wluke (I hope he does not mind me bundling it with the other two I wrote).

Download the zip file attached. Each hack has its own txt file with exact instructions on how to install it.

Hacks description:
  1. Redirect Removal: Allows you to delete the "Moved" redirect to a thread.
  2. Multi Posts Editing: Allows you to conveniently edit several posts in one thread at once, in one page and with one submit button (good for occassions where a thread gets out of hand and people are overboard).
  3. Place User's Posting under Moderation: Allows you to place a user under moderation, whereby his posts and threads will be queued until an admin/moderator validates them. (written by Wluke).

Cheers,

Bira

UPDATE MAY 3rd:

* Added to the zip-file a fourth tool for mass-prune redirects ("moved:" links) older than x days (with ability to select which to delete and which to leave).

* fixed a bug in the user-under-moderation hack, which allowed threads with a poll to go unmoderated.


Download here

Show Your Support

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

Comments
  #72  
Old 05-05-2002, 05:21 PM
dkilburn's Avatar
dkilburn dkilburn is offline
 
Join Date: Nov 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:knockedout: I was looking at my local copy and not the server copy. Apparently I didn't have all the files locally. Anyway, I DO have the mod folder, and here is what is shown around line 128:

PHP Code:
          // send notification
          
if (!$notified["$thread[threadid]"]) {
            
$message $postpagetext[$key];
            
sendnotification($thread['threadid'], $thread['userid'], $key);
            
$notified["$thread[threadid]"] = 1;
          } 
Reply With Quote
  #73  
Old 05-05-2002, 06:06 PM
FWC's Avatar
FWC FWC is offline
 
Join Date: Oct 2001
Location: Ontario, CA
Posts: 821
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's weird. sendnotification is defined in admin/functions.php. I've never gotten that error.
Reply With Quote
  #74  
Old 08-19-2002, 03:12 PM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 2.2.6. and am trying to remove the redirects. This is the file I am working with now: install-massprune-redirects

In that file there is some code that I can't find.
PHP Code:
3. Open mod/index.php.

Find: 

    <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prune"> Mass Prune </a>
Is mod/index.php even the right file to find that code?

Dark Shogun
Reply With Quote
  #75  
Old 08-19-2002, 03:46 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Dark Shogun
Is mod/index.php even the right file to find that code?
Yes! The CPs have changed alot since then, the code you need to find is:

PHP Code:
makenavoption("Mass Prune","thread.php?action=prune"); 
And you need to add the code in the same format, so:

PHP Code:
makenavoption("Mass Prune Redirects","thread.php?action=prunered"); 
Reply With Quote
  #76  
Old 08-19-2002, 03:57 PM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Last question is about:

This code is what I am supposed to find in admin/index.php but as above things have change but I don't know how to convert it.

PHP Code:
<a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=move"> Move </a>
Dark Shogun
Reply With Quote
  #77  
Old 08-19-2002, 04:52 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find, and add the same as above for /mod/index.php
Reply With Quote
  #78  
Old 08-19-2002, 05:07 PM
Dark Shogun Dark Shogun is offline
 
Join Date: Aug 2002
Location: The Underworld
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I put it where it was supposed to go but I don't see the link in the admin center.

Dark Shogun
Reply With Quote
  #79  
Old 09-16-2002, 07:31 AM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I Installed the delete redirects one.. I will give the other ones a go later.. Nice work.

Thanks.
Reply With Quote
  #80  
Old 11-03-2002, 05:30 PM
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Location: US
Posts: 775
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just install the Mass Redirects Deletion Hack in vB2.7.7 (same in 2.7.8)

some changes need to be made in this hack:

Quote:
3. Open mod/index.php.
Find:
<a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prune"> Mass Prune </a>
Below it add:
<br> <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prunered"> Mass Prune Redirects</a>

change to
Quote:
3. Open mod/index.php.

Find:

makenavoption("Mass Prune","thread.php?action=prune");

Below it add:

makenavoption("Mass Prune Redirects","thread.php?action=prunered");
Change

Code:
5. Open admin/index.php.
Find:
    <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=move"> Move </a>
Below it add:
    <br> <a href="thread.php?s=<?php echo $session[sessionhash]; ?>&action=prunered"> Mass Prune Redirects</a>
to

Code:
5. Open admin/index.php.

Find:

makenavoption("Mass Move","thread.php?action=move","<br />");


Below it add:

makenavoption("Mass Prune Redirects","thread.php?action=prunered","<br />");

in thread-php-addition.txt, change

PHP Code:
// ###################### Start Prune Redirects #######################
if ($action=="prunered") {

  
$perms=getpermissions();
  if (!
$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmassprunered=1")) {
    echo 
"<p>You do not have permission to do this!</p>";
    exit;
  }

  
doformheader("thread","prunereddate");
  
maketableheader("Prune redirects by date");
  
makeinputcode("Delete redirects older than x days:","daysdelete","");
  
makemodchoosercode(-1,-1,'','All forums','In forum',0);

  
doformfooter();


to

PHP Code:
// ###################### Start Prune Redirects #######################
if ($action=="prunered") {

  
$perms=getpermissions();
  if (!
$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canmassprunered=1")) {
    echo 
"<p>You do not have permission to do this!</p>";
    exit;
  }

  
doformheader("thread","prunereddate");
  
maketableheader("Prune redirects by date");
  
makeinputcode("Delete redirects older than x days:","daysdelete","");
  
makeforumchooser("forumid",-1,-1,"","----- all -----","Forum:");
  
makeyesnocode("Include sub forums","subforums");

  
doformfooter();


Reply With Quote
  #81  
Old 04-14-2003, 06:55 AM
julius julius is offline
 
Join Date: Nov 2001
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works with 2.3.0?
Thansk
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 01:19 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.05046 seconds
  • Memory Usage 2,338KB
  • 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
  • (2)bbcode_code
  • (7)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