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: 16
 
No support by the author.

LAST UPDATED 3.31.01 12:45 AM Eastern

Updated to version 0.0.2
New features in 0.0.2: Floodcheck. You can set it so that your users cannot bump any particular thread more than once every X hours. It records the time it was last bumped in a new field in the Thread table.

This hack allows your users 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).

This version will allow any authorized user to bump a thread. You can authorize in four different ways: First, any user who posted in a thread. Second, the poster of the first post in a thread. Third, the poster of the last post in a thread. And fourth, any registered (and logged in) user. You can set this in the options, as detailed below in the instructions.

This hack is based on the canedit permission and requires that you allow your users to edit their own messages. If you don't, this hack *will not* work. If you are looking for a bump hack for just your moderators, I have released a separate version here that does just that.

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

This hack includes a button in GIF format that says "Bump" that is made to blend with the rest of the standard purple buttons. It can be edited in any photo- or graphics-editing program to be made a different color, or you can substitute your own file for it.

Hack Version: 0.0.2

New features since last version: See above.

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

Files needed: postingsadd.txt, redirect_bump_notfirst_template.txt, redirect_bump_notlast_template.txt, redirect_bump_template.txt, redirect_bump_floodcheck.txt, showthread_bump_template.txt (see attached zip file).

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

Templates to edit/create: showthread, showthread_bump, redirect_bump_notfirst, redirect_bump_notlast, redirect_bump, redirect_bump_floodcheck (see instructions below).

Instructions
1] Unzip the files bumpbig.gif, posttingsadd.txt, showthread_bump_template.txt, redirect_bump_template, redirect_bump_floodcheck, and redirect_bump_notfirst_template to your hard drive.
2] Open the file postingsadd.txt 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] If you want anyone to be able to bump a thread, set $postersonly to 0 (on the third line). Otherwise set it to 1. If you have $postersonly set to 1, and you want only the last poster in a thread to be able to bump it, set $lastposter to 1, otherwise set it to 0. If you have $postersonly and $lastposter both set to 0 and would like only the first poster (aka thread starter) to be able to bump the thread, set $firstonly to 1, otherwise set it to 0. If you set all three options to 0, anyone (who is logged in) will be able to bump the thread.
If you want to limit the bumping of all threads to once every X hours, set $hours to the number you want. It must be a whole number and more than -1 (e.g. 2, 5, 8, 12). If you don't want to use this, set $hours to 0.
4] Save postingsadd.txt and then open postings.php. Add the contents of postingsadd.txt to postings.php right below
PHP Code:
require("./global.php"); 
5] Save postings.php. Open showthread.php. Find
PHP Code:
// REMOVED FROM PRECACHING: error_invalidid,error_nopermission, 
and right *above* it, add
PHP Code:
$templatesused .= ",showthread_bump"
Then find
Code:
 eval("\$forumrules = \"".gettemplate("forumrules")."\";");
and right above that, add
Code:
 eval("\$bump = \"".gettemplate("showthread_bump")."\";");
6] Save showthread.php. Upload postings.php and showthread.php to your main forums directory, and upload bumpbig.gif to your /images directory inside the main forums directory.
7] Go to your admin control panel. Add a new template called showthread_bump and fill it with the contents of showthread_bump_template.txt. Add another new template called redirect_bump and fill it with the contents of the redirect_bump_template.txt file. Add another new template called redirect_bump_notfirst and fill it with the contents of the redirect_bump_notfirst_template.txt file. Add another new template called redirect_bump_notlast and fill it with the contents of redirect_bump_notlast_template.txt.
8] Edit the showthread template as follows. Find
Code:
<td valign="middle"><A HREF="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]">
and replace it with
Code:
<td valign="middle">$bump<A HREF="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$forum[forumid]">
There are two instances of this in the showthread template. Change both.
9] Test it out!

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
  #2  
Old 03-29-2001, 11:17 AM
Guest
 
Posts: n/a
Default

Hello,

First off thanks for all your work you've done.

Second..I'm very tempted to use this hack but I'm a little weary of the outcome. Will users take advantage of this feature?

I think it should have its own floodcheck...then I would defnitely use it. BAsically only allowing a user to "BUMP" the thread maybe twice a day or once a day.

Do you think oyu could code that into it. The current floodcheck of 30 seconds is WAY too little for this feature. I have a Forsale Forum where the first post on that page is on page 2 in less than an hour. So many users would take too much advantage of this feature without a longer floodcheck.

Let me know what you think.
Reply With Quote
  #3  
Old 03-30-2001, 03:34 AM
Guest
 
Posts: n/a
Default

possibly build a "limit" array, so you can choose which boards do not allow the bump feature?

Then you could stop people using it on a "for sale" forum quite easily.
Reply With Quote
  #4  
Old 03-31-2001, 03:55 AM
Guest
 
Posts: n/a
Default

I have released a new version of this hack, with a floodcheck function. You can set the floodcheck to any number of hours you wish, from 1 to infinite. It is a board-wide setting.

Enjoy!
Reply With Quote
  #5  
Old 07-31-2001, 08:04 PM
VirtueTech VirtueTech is offline
 
Join Date: Oct 2001
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tubedogg....is there any way to set it up for the following:
http://www.vbulletin.com/forum/showt...threadid=24141
Reply With Quote
  #6  
Old 08-26-2001, 04:23 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I get this hack to work with 2.0.3?
Reply With Quote
  #7  
Old 08-26-2001, 05:55 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having trouble with this one, I'm on 2.0.3

Save postings.php. Open showthread.php. Find

PHP:--------------------------------------------------------------------------------
// REMOVED FROM PRECACHING: error_invalidid,error_nopermission,--------------------------------------------------------------------------------

and right *above* it, add

PHP:--------------------------------------------------------------------------------
$templatesused .= ",showthread_bump";
Reply With Quote
  #8  
Old 08-26-2001, 10:53 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm in the middle of the install if anyone could please help me.
Reply With Quote
  #9  
Old 08-27-2001, 12:04 PM
LuBi LuBi is offline
 
Join Date: Oct 2001
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone please, I need to get back to editing and customizing. I'm in the middle of this install and now that I'm stuck I can't move on to any other hacks or operate my forum.
Reply With Quote
  #10  
Old 08-27-2001, 01:04 PM
BradC
Guest
 
Posts: n/a
Default

what are you having problems with?

$templatesused .= ",showthread_bump";

take that

and take at the ","..

$templatesused .= "showthread_bump";
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 07: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.05198 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (3)bbcode_php
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (6)postbit_onlinestatus
  • (10)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