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

Reply
 
Thread Tools
Prevent Bump on Forum Threads Before X Time Details »»
Prevent Bump on Forum Threads Before X Time
Version: 1.0.1, by IdanB IdanB is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 05-29-2009 Last Update: 06-19-2009 Installs: 71
DB Changes Uses Plugins
 
No support by the author.


Prevent Bump on Forum Threads Before X Time
By: Idan B.

Note:
This modification was coded to answer request given by vithorius @ https://vborg.vbsupport.ru/showthread.php?t=212173
As with other modifications i've take upon coding from requests section, this sounded like useful modification to entire community, so i believe the time i've spent to code it was worth it.

1. Description & Usage:
This hack will allow any forum admin to configure certain forum in a way that will prevent any users to bump his thread before certain time has passed from the time thread has been created. Any attempt by user to reply before time has passed will show user with error message & showing him the remaining time he has to wait before allowed to reply.

2. Installation:
Please click Mark as Installed.
Installation is pretty easy - just download & install:
  • Goto: AdminCP->Plugin System->Manage Products : Choose "Add/Import Product" and import this product xml (product-prevent_bump.xml)
3. Upgrade From Older Version:
1. Uninstall previous version
2. Download new version xml & install as instructed in previous section.

4. Configuration:
Once installed, the "Forum Manger" under admincp will have extra section for each forum:
Section name: "Prevent Threads Bump"
  • Enabled ? - Yes/No
  • Minimum time before thread bump (#d #h #m #s) - Text
5. Known Bugs:
- None at the moment - please report any found !

6. TO-DO's LIST (Next Versions):
- [S]2nd attempt to reply again after already replied will require to meet with x time rule again[/S] - fixed in v1.0.1.
- Bypass to certain usergroups

7. Extra Notes:
The text used in this modification is fully configured via phrase manager in admincp.
- Error messages is made from 3 phrases:
reply_access_denied_wait_x_time_please
prevent_bump_please_wait_1
prevent_bump_please_wait_2

Enjoy hack & dont forget to click Mark as Installed

Download Now

File Type: xml product-prevent_bump.xml (9.7 KB, 310 views)

Screenshots

File Type: jpg admin_options.jpg (17.6 KB, 0 views)
File Type: jpg redirect_error.jpg (36.8 KB, 0 views)

Show Your Support

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

Comments
  #32  
Old 06-24-2009, 12:34 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear IdanB,

I forgot to mention that my board is using vBulletin v 3.6.11.

What happens is that when I try to upgrade your hack to this new version, I get an SQL error and the upgrade fails...

Quote:
Originally Posted by SQL Error
3.6.11: Invalid SQL:
ALTER TABLE `forum` ADD `prevent_bump_enabled` TINYINT( 1 ) NOT NULL DEFAULT '0',
ADD `prevent_bump_min_time` VARCHAR( 10 ) NOT NULL DEFAULT '14d';

MySQL Error: ->error

Error Number : ->errno

Date : Wednesday, June 24th 2009 @ 01:37:10 PM

Script : http://www.****.net/admincp/plugin.php?do=productimport

Referrer : http://www.****.net/admincp/plugin.php?do=productadd

IP address: ***.***.***.***>

Username : *****

Classname : vB_Database
Note: The asterisks (*) were added by me.
Reply With Quote
  #33  
Old 06-24-2009, 05:04 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have you uninstalled first and only after installed or tried to install over existing ?
Reply With Quote
  #34  
Old 06-24-2009, 06:29 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IdanB View Post
have you uninstalled first and only after installed or tried to install over existing ?
Glup...! Lame me...!

I was trying to install over the existing one...


Another question: The hack prevents the first and the second attempt to bump the thread... How about the 'next' times, if the user tries to invalid-bump a third, a fourth, a fifth time, etc...?
Reply With Quote
  #35  
Old 06-25-2009, 04:48 PM
jaymanfromTFX jaymanfromTFX is offline
 
Join Date: Jan 2009
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is working fine for me for every time, not just the 2nd. I have been testing it for about 4 days and it has worked every time.
Reply With Quote
  #36  
Old 06-25-2009, 05:02 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vithorius View Post
Glup...! Lame me...!

I was trying to install over the existing one...


Another question: The hack prevents the first and the second attempt to bump the thread... How about the 'next' times, if the user tries to invalid-bump a third, a fourth, a fifth time, etc...?
Yes, it will prevent any "double posting" from author of thread, regardless of number of posts, meaning the author of thread cannot do 2 replies to his own thread one after another, he needs some1 else to reply to be able to reply to himself again
Reply With Quote
  #37  
Old 06-29-2009, 02:15 PM
spankaveli spankaveli is offline
 
Join Date: Mar 2002
Location: Geismar, LA
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can this be setup to affect only certain subforums?
Reply With Quote
  #38  
Old 06-29-2009, 02:36 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by spankaveli View Post
can this be setup to affect only certain subforums?
Yes! :up:
Reply With Quote
  #39  
Old 07-05-2009, 02:29 PM
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Location: almelo
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When i translate this very nice peace of a hack, all is translated but Days, Hours Minutes and seconds

how do i translate these, when i search my board these words are translated to dutch (dag(en) etc.)

where do i change these words



Code:
U mag niet binnen de vastgestelde tijd uw eigen aanbieding omhoog sturen. Wacht 2 Day(s), 22 Hour(s), 43 Minute(s), 10 Second(s) voordat u uw advertentie opnieuw kunt opwaarderen
Reply With Quote
  #40  
Old 07-05-2009, 05:46 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That text currently inside the core code:

PHP Code:
if ( $days_diff $time_remains "$days_diff Day(s)";
if ( 
$hours_diff $time_remains .= ", $hours_diff Hour(s)";
if ( 
$mins_diff $time_remains .= ", $mins_diff Minute(s)";
if ( 
$secs_diff $time_remains .= ", $secs_diff Second(s)"
For next revision i'll take this "outside" of hack into phrase(s).
regards.
Reply With Quote
  #41  
Old 07-05-2009, 06:07 PM
phonexpo phonexpo is offline
 
Join Date: Sep 2005
Location: Dublin
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed. + I changed the phrase so it reads "You are not allowed to reply to your own thread before the minimum allowed time has passed. You may try edit your last post. Please wait , 21 Hour(s), 6 Minute(s), 10 Second(s) before attempting to reply to your own thread.", to stop spammers.



Thanks
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:21 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.04886 seconds
  • Memory Usage 2,349KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (3)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete