Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Bump or de-bump thread w/ usergroup permissions Details »»
Bump or de-bump thread w/ usergroup permissions
Version: 1.00, by ringleader ringleader is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 08-29-2007 Last Update: 09-17-2007 Installs: 117
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

DESCRIPTION
This is a slightly modified version of "Bump thread and make thread older" by Kentaurus, and "Bump Threads/Make Threads older" by Andreas, who both provided the basis for this work.
It allows the administrator to set which usergroups can use this feature, and can limit the number of times it can be used on a single thread by anyone using a thread bump limit.

Be kind - it's my first attempt at making one of these, and the documentation for each version of vbulletin is confusing.

OPTIONS INCLUDED:
An option called "Bump thread" allows a user with the correct permissions set to make the last post in a thread equivalen to the current time.

An option called "make thread older" or "debump" allows a user with permissions set to make the last post in a
thread one day older.

Details
1 Product XML (1 Plugin, 12 Phrases (+admin help topics), 1 template re-write if you have Andreas' Template Modification System installed (ignored if not))

Only single Thread bumping/de-bumping is supported.
I do not intend to upgrade this product, but may do if I find the time.

INSTALLATION:
Unzip BumpThreads.zip
1. Upload bitfield_bumpthreads.xml to your ./includes/xml folder
2. Import the product-bumpthreads.xml
3. If you do not have Andreas' Template Modification System installed, you must do template edits by hand. These are found in the templateedits.txt file.
4. Upload bump.gif and debump.gif to your images/buttons folder.
5. Set Usergroup permissions for the product.

UNINSTALLATION:
1. Uninstall the product.

USAGE:
1. Set individual usergroup permissions to turn on the ability to Bump/De-bump a thread for each usergroup (default is no ability to access this function).
2. Limit the number of times a thread can be bumped/de-bumped by each usergroup (in case you want normal users to be able to bump a thread only once, but for moderators it can be many times).

Database alterations carried out:
1. Adds columns 'bump' and 'debump' to your 'thread' table to count the number of times a thread has been bumped.
2. Adds columns 'bumpthreadspermissions' and 'bumpthreadslimit' to the 'usergroup' table to track who has permission to use the feature, and how many times per thread.

Contributors:
Buttons courtesy of the excellent talents of dutchbb.

Show Your Support

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

Comments
  #62  
Old 02-09-2008, 11:01 PM
LCN2007 LCN2007 is offline
 
Join Date: Jul 2007
Posts: 323
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to set for unlimited bumps?
Reply With Quote
  #63  
Old 02-10-2008, 03:43 AM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LCN2007 View Post
How to set for unlimited bumps?
Actually, I never thought of that.
But it could be a vulnerability (somehow).

Just set it to a ridiculous number and that will work
Reply With Quote
  #64  
Old 02-14-2008, 07:55 PM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this compatible with 3.7?
Reply With Quote
  #65  
Old 02-15-2008, 06:23 AM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bubble #5 View Post
Is this compatible with 3.7?
Haven't a clue.
I don't know anything about v3.7 to know whether it would work on it.

Since hooks aren't removed, however, I would say that it does.
The placement of the code to show the 'bump/debump' bit in SHOWTHREAD template will more than likely have changed a little.
Reply With Quote
  #66  
Old 02-28-2008, 02:44 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance this works for VB 3.5.x ?

Thanks
Reply With Quote
  #67  
Old 03-03-2008, 06:52 AM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bada_bing View Post
Any chance this works for VB 3.5.x ?

Thanks
I don't think so. I think the hooks used are not available in that version.

You could check by installing it - a simple uninstall will remove it if it doesn't work for you.
Reply With Quote
  #68  
Old 03-03-2008, 11:20 AM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone tried this in a 3.5 version yet. Id rather not test on a production site...
Reply With Quote
  #69  
Old 03-03-2008, 12:13 PM
justchil justchil is offline
 
Join Date: Sep 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool! I'm glad you added the usergroup permissions into this hack

*installed*
Reply With Quote
  #70  
Old 03-09-2008, 07:27 AM
apdcanari apdcanari is offline
 
Join Date: May 2005
Location: Belgique
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bonjour,

Voici une petite modification :

Search in SHOWTREAD :

Code:
			<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a>
		</if>
		&nbsp;
		</div>
	</td>
After, add :

Code:
<if condition="$permissions['bumpthreadspermissions'] & $vbulletin->bf_ugp['bumpthreadspermissions']['canbump']">
<td class="tcat" align="$stylevar[right]">
<div class="smallfont">
<a href="postings.php?$session[sessionurl]do=bump&amp;t=$threadid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/bump.gif" border="0" alt="$vbphrase[bump]" /></a>
</div>
</td>
</if>
<if condition="$permissions['bumpthreadspermissions'] & $vbulletin->bf_ugp['bumpthreadspermissions']['candebump']">
<td class="tcat" align="$stylevar[right]">
<div class="smallfont">
<a href="postings.php?$session[sessionurl]do=debump&amp;t=$threadid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/debump.gif" border="0" alt="$vbphrase[debump]" /></a>
</div>
</td>
</if>
C?dric
Reply With Quote
  #71  
Old 03-10-2008, 07:20 AM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Merci apdcanari, that's quite a nice idea!
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 05:13 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.04652 seconds
  • Memory Usage 2,314KB
  • 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_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