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 tubedogg tubedogg is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 2.0.x Rating:
Released: 03-28-2001 Last Update: Never Installs: 41
 
No support by the author.

This hack allows your moderators to bump a thread without posting in it. This is different from making a thread sticky in two ways: First, this will not append the thread title with "Sticky", and second, the thread will only be at the top of the thread list until another post is made, at which point it becomes second, so this is somewhat temporary (moreso on larger boards ).

If you wish, there is also a version in which you can allow any registered user, and/or the first, last, or any poster of any given thread to bump it. That is located here.

There is no demo or screenshot, but trust me, it works and looks lovely.

For version: v2 beta 3 (may also work on beta 1 and beta 2, but it is untested on those versions).

Files needed: postingsadd.txt, redirect_bump_template.txt (see attached zip file).

Files to edit: postingsadd.txt, postings.php, showthread.php (see instructions below).

Templates to edit/create: showthread, redirect_bump (see instructions below).

Instructions
1] Unzip the file posttingsadd.txt and redirect_bump_template.txt to your hard drive.
2] Open postings.php in an ASCII text editor, such as Notepad (Windows), SimpleText (Mac), EditPlus, UltraEdit, TextPad, etc. (DO NOT use WYSIWYG HTML editors such as FrontPage, HotDog, DreamWeaver, etc. They will in all likelyhood screw up the file! I will not be able to support you if you edit the file in one of these programs.)
3] Right below
PHP Code:
require("./global.php"); 
insert the contents of posttingsadd.txt.
4] Create a new template called redirect_bump and add the contents of redirect_bump_template.txt.
5] In the showthread template, find
Code:
Stick / Unstick</a></smallfont>
and replace it with
Code:
Stick / Unstick</a><br>
<a href="postings.php?s=$session[sessionhash]&action=bump&threadid=$threadid">Bump</a></smallfont>
That's it.

Instructions are also included in the zip file (bump.txt).

FEEDBACK WANTED! Likes/dislikes/modification requests all gladly accepted.

Show Your Support

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

Comments
  #12  
Old 07-28-2001, 10:26 AM
markrt
Guest
 
Posts: n/a
Default

Thanks works wel now.

Great little hack.

mark
Reply With Quote
  #13  
Old 07-28-2001, 02:40 PM
GB
Guest
 
Posts: n/a
Default

thanks ThomasP....works like a charm now
Reply With Quote
  #14  
Old 08-06-2001, 09:38 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Superb! Perfect hack!
Reply With Quote
  #15  
Old 09-02-2001, 06:26 PM
dxb's Avatar
dxb dxb is offline
 
Join Date: Oct 2001
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dose this work with 2.0.3 i didnt try but i want to know if somebody tried it
Reply With Quote
  #16  
Old 09-03-2001, 08:05 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 dxb
dose this work with 2.0.3 i didnt try but i want to know if somebody tried it
I installed in on 2.0.3 a few days ago. Works great!
Reply With Quote
  #17  
Old 11-02-2001, 05:49 PM
dahamsta dahamsta is offline
 
Join Date: Oct 2001
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 2.2, seems to be working ok.

adam
Reply With Quote
  #18  
Old 12-05-2001, 06:40 PM
Dark Blaze's Avatar
Dark Blaze Dark Blaze is offline
 
Join Date: Nov 2001
Location: World Wide Web
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack tubbedog, well done

I can't wait to install it as soon as I can. Is it available for 2.2.1 forum version?

Thanks for reading,
Reply With Quote
  #19  
Old 01-03-2002, 12:25 PM
Arie Arie is offline
 
Join Date: Dec 2001
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! I changed 1 thing however:

in postings.php:

PHP Code:
eval("standardredirect(\"".gettemplate("redirect_bump")."\",\"showthread.php?s=$session[sessionhash]&threadid=$threadid\");"); 
TO:

PHP Code:
eval("standardredirect(\"".gettemplate("redirect_bump")."\",\"forumdisplay.php?s=$session[sessionhash]&forumid=$threadinfo[forumid]\");"); 
Because I see no reason why you would want to redirect to the thread when you obviously don't want to post in it!

You should also change the text from the new redirect_bump template to:

Thank you for bumping the thread. You will now be returned to the index of the current forum.
Reply With Quote
  #20  
Old 01-11-2002, 01:55 AM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great in 2.2.1 - just be sure to do the showthread_adminoptions template edit that ThomasP outlined on page one
Reply With Quote
  #21  
Old 01-22-2002, 05:16 AM
Joshua Clinard Joshua Clinard is offline
 
Join Date: Nov 2001
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work on 2.2.1?
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:45 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.08912 seconds
  • Memory Usage 2,308KB
  • 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
  • (3)bbcode_php
  • (1)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
  • (3)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
  • (9)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