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
  #42  
Old 10-12-2007, 06:59 AM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It might be a conflict with vbSEO alright.
The bit that error refers to looks for a threadid when the thread is bumped.

Can you post your URL format (an example like "forum-category/867-thread-title.html#post4029") and I will see if I can provide you with a workaround for this that works.
Reply With Quote
  #43  
Old 10-12-2007, 09:23 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm - I was thinking it could have something to do with vBSEO
At anyrate - the JPiC rewrite rule is [forum_title]/[thread_title]-[thread_id].html

Thanx AND Thanx for the email as well

Jacquii.
Reply With Quote
  #44  
Old 10-31-2007, 04:29 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Geat MOD, installed and loving it. - thx
Reply With Quote
  #45  
Old 11-06-2007, 03:53 AM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ringleader View Post
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.
I'm looking for moderator-only mass debumping of threads (using the check boxes). Could you please post the mods you made in that thread? Andreas only does it within the thread.

Thank You
-vissa
Reply With Quote
  #46  
Old 11-06-2007, 05:38 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey RINGLEADER - still waiting - is there a chance you've found a workaround for vBSEO?
Thanx,

Jacquii.
Reply With Quote
  #47  
Old 11-08-2007, 12:56 PM
ringleader's Avatar
ringleader ringleader is offline
 
Join Date: Dec 2006
Location: Dublin, Ireland
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PoetJA-1975 View Post
Hey RINGLEADER - still waiting - is there a chance you've found a workaround for vBSEO?
Oh sorry, I was out of the country there for a while

Try adding this plugin as a bit of a workaround instead:

Product: Bump or de-bump Threads

Hook Location: showthread_start

Title: Bump or Debump: Display Option

Execution Order:
5

Contents:
Code:
$vbulletin->templatecache['SHOWTHREAD'] = str_replace(
	array(
		'$vbphrase[remove_redirects]</option>',
		'$vbphrase[remove_redirects]</label></div>'
	),
	array('
		$vbphrase[remove_redirects]</option><option value=\"bump\">$vbphrase[bump]</option><option value=\"debump\">$vbphrase[debump]</option>',
		'$vbphrase[remove_redirects]</label></div><div><label for=\"ao_bump\"><input type=\"radio\" name=\"do\" id=\"ao_bump\" value=\"bump\" />$vbphrase[bump]</label></div><div><label for=\"ao_debump\"><input type=\"radio\" name=\"do\" id=\"ao_debump\" value=\"debump\" />$vbphrase[debump]</label></div>'
	),
	$vbulletin->templatecache['SHOWTHREAD']
);
...and undo the template edit for SHOWTHREAD template.

Quote:
Originally Posted by JohnBee View Post
Geat MOD, installed and loving it. - thx
Cheers, glad you like it!
Reply With Quote
  #48  
Old 11-10-2007, 04:28 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx for your help - I just couldn't get it installed correctly - could be because of a mod I'd 1st had installed on vB 3.5.4 (https://vborg.vbsupport.ru/showthrea...hlight=de-bump) --- Incredibly it still works correctly on 3.6.8 PL 2 ---- Just one idiosyncrasy - there's apparently a missing phrase for inline_bump/debump or some such - but it works fine even with vBSEO installed.

You may wanna take a look at the code - Anyway - I appreciate you taking the time to find a resolution Much appreciate and thanx again for the inline modification - Works like a gem

Jacquii.
Reply With Quote
  #49  
Old 11-17-2007, 01:24 AM
TazeredBlackMan TazeredBlackMan is offline
 
Join Date: Jun 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey I installed and then uninstalled this product. Now when I go to make a new usergroup I get a SQL error saying Unknown column 'bumpthreadspermissions' in 'field list'

Any idea?
Reply With Quote
  #50  
Old 11-18-2007, 11:15 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 TazeredBlackMan View Post
Hey I installed and then uninstalled this product. Now when I go to make a new usergroup I get a SQL error saying Unknown column 'bumpthreadspermissions' in 'field list'
Run this SQL query and it will fix it:

Code:
ALTER TABLE usergroup DROP bumpthreadspermissions
Obviously, if you have any table prefixes, use it before 'usergroup'.
Reply With Quote
  #51  
Old 11-18-2007, 04:53 PM
nyunyu nyunyu is offline
 
Join Date: Dec 2004
Location: Malaysia
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a very useful hack. However what i had in mind was, if people wanted to bump, they had a button to bump the thread, but then the moderators will have to click ok to approve the thread bump so that way it wouldn't get abused. Anyway this can be done?

Thanks. Reserved until replied.
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:58 AM.


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.10319 seconds
  • Memory Usage 2,321KB
  • 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
  • (4)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