The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Bump or de-bump thread w/ usergroup permissions Details »» | |||||||||||||||||||||||||||
Bump or de-bump thread w/ usergroup permissions
Developer Last Online: Dec 2011
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
|
Comments |
#62
|
|||
|
|||
How to set for unlimited bumps?
|
#63
|
||||
|
||||
Actually, I never thought of that.
But it could be a vulnerability (somehow). Just set it to a ridiculous number and that will work |
#64
|
|||
|
|||
Is this compatible with 3.7?
|
#65
|
||||
|
||||
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. |
#66
|
||||
|
||||
Any chance this works for VB 3.5.x ?
Thanks |
#67
|
||||
|
||||
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. |
#68
|
||||
|
||||
Has anyone tried this in a 3.5 version yet. Id rather not test on a production site...
|
#69
|
|||
|
|||
Very cool! I'm glad you added the usergroup permissions into this hack
*installed* |
#70
|
|||
|
|||
Bonjour,
Voici une petite modification : Search in SHOWTREAD : Code:
<a href="$firstunread"><strong>$vbphrase[view_first_unread]</strong></a> </if> </div> </td> 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&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&t=$threadid" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/debump.gif" border="0" alt="$vbphrase[debump]" /></a> </div> </td> </if> |
#71
|
||||
|
||||
Merci apdcanari, that's quite a nice idea!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|