vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Prevent Bump on Forum Threads Before X Time (https://vborg.vbsupport.ru/showthread.php?t=214916)

vithorius 06-24-2009 12:34 PM

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... :confused: :(

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.

IdanB 06-24-2009 05:04 PM

have you uninstalled first and only after installed or tried to install over existing ?

vithorius 06-24-2009 06:29 PM

Quote:

Originally Posted by IdanB (Post 1836521)
have you uninstalled first and only after installed or tried to install over existing ?

Glup...! :o :D Lame me...! :eek:

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...?

jaymanfromTFX 06-25-2009 04:48 PM

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.

IdanB 06-25-2009 05:02 PM

Quote:

Originally Posted by vithorius (Post 1836590)
Glup...! :o :D Lame me...! :eek:

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 :)

spankaveli 06-29-2009 02:15 PM

can this be setup to affect only certain subforums?

vithorius 06-29-2009 02:36 PM

Quote:

Originally Posted by spankaveli (Post 1839591)
can this be setup to affect only certain subforums?

Yes! :up:

ageurtse 07-05-2009 02:29 PM

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

IdanB 07-05-2009 05:46 PM

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.

phonexpo 07-05-2009 06:07 PM

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


All times are GMT. The time now is 04:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01134 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete