![]() |
Bump or de-bump thread w/ usergroup permissions
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. |
*First post reserved*
Because, eh, everyone else does it. |
second :D
|
Woot!
Fast response/installation! Hope it doesn't unintentionally kill your board or anything (though it shouldn't be able to, there's always the nervousness). Feedback/suggestions welcomed and appreciated, btw. |
This is great will instal when i get home
|
Doesnt let me set user groups im getting a Database error anyone else?
Can some help me figure it out please. |
One feature I would die for is inline moderation of bumping debumping as that would allow me to bump several threads at once!
|
Quote:
What error are you getting exactly? When are you getting the error/What are you trying to do when you get it? |
Quote:
|
Quote:
|
Here you go then.
I had updated Andreas' mod for my own boards to include inline (mass-)moderation along with individual thread moderation. I will release it pending Andreas's permission. It's all automatically installed with a product. PM me your email address and I'll give it to you (can't attach to PM's). I've attached screenshots of the two functions it adds, so you're sure it's what you're looking for. |
So do both the same thing? Bumping/Debumping can be done via the thread options drop down and the inline moderation?
|
Quote:
I didn't realise that screenshot was so misleading! :o The moderator can bump/debump on showthread (i.e. bump just that thread) or The moderator/admin can mass bump/debump threads on forumdisplay using inline moderation. The inline moderation on showthread is for moving/deleting posts, not threads, so it isn't used. |
Im trying to set the Usegroup Permissions.
I attached Photos. Thanks for your assistance. |
Hmm, wrong phrase name there.
I re-uploaded the bitfield_bumpthreads.xml file. Grab the new one and overwrite the one in your ./includes/xml/ directory. Let me know if that solves your issue. |
It lets me set the User permissions but its inop in the thread tools just shows two people images but no text and when i click one it says invalid function.
One other thing if you set the limit to 0 is that unlimited? |
Quote:
|
Quote:
thanks. |
i get an image with "REP" on instead!!
|
Quote:
|
Quote:
I have TMS. |
Quote:
The phrases are not installing, it seems. Go to 'Languages and Phrases', 'Add New Phrase'. Type -> Global Product -> bump or de-bump threads varname -> bump Text -> Bump Thread And add another phrase with the varname 'debump'. |
*update: the SQL queries in the original product were not installing phrases and table columns correctly, thereby causing the problems some people experienced. Please re-download and install again if you are experiencing problems.
Apologies to all those who were caused hassle. |
I've reinstalled it and I've added those phrases but when i click on the link it gives me "invalid function".
|
Do you know how to add a plugin?
There's one missing from yours. Go to Plugins and Products System -> Add Plugin Product: bump or de-bump threads Hook Location: threadmanage_action_switch Title: Action Switch Plugin Php Code: Code:
if ($_REQUEST['do'] == 'bump' OR $_REQUEST['do'] == 'debump') ...and thanks for even bothering to troubleshoot this. |
I think its working now thanks for your help but i wont be sure until my site goes live ill let you know.
|
Is it possible to debump more than 1 day at a time? Like 10 days? Thanks for the hack!
|
Quote:
Any bit that says 86400 means one day (in seconds). So if you set it to 864000 that would de-bump by ten days. But then that would mean you would always be de-bumping by that many days. |
Just wondering, but is this accurate:
Quote:
|
Quote:
|
Nice update of this hack, I made some buttons to go with it, hope you like them:
|
They're gorgeous! Wish I had the talent to make stuff like that.
|
Installed.
|
Quote:
|
I updated this mod to include everything to date in one zip folder.
Installation instructions are better defined, too. LCN2007: In the template edits, replace reputation.gif with bump.gif and debump.gif to use the above buttons (only needed if you have already installed this product). |
thanks ill try that
|
In vB 3.6.8 when bumping or debumping threads I get
Quote:
Thanx Jacquii. ps - GARS, vBSEO, vBAdvance installed... |
The bump/de-bump limit for this thread has already been reached. No more are allowed
on my very 1st bump as well |
Quote:
Quote:
Quote:
To change the number of bumps OR debumps allowed for a thread, scroll down in the usergroup settings and change it there. |
Quote:
I'm not sure what exactly to do with this... Could it possibly have a conflict with vBSEO or GARS? Anyway - perhaps you have another suggestion? Thanx, JAcquii. btw - sent you a PM about the inline moderation hack ;) |
All times are GMT. The time now is 07:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|