vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Thread creation rate-limiting hack (https://vborg.vbsupport.ru/showthread.php?t=48902)

mute 02-17-2003 11:51 AM

eww! :laugh:

mute 03-24-2003 05:54 PM

Posted a small change which would fix a stupid bug on my part, it just changes the one line.

PHP Code:

Change

$lastthreads
=$DB_site->query("SELECT dateline FROM thread WHERE dateline > UNIX_TIMESTAMP(NOW())-3600 AND postusername='$bbuserinfo[username]'");

to 
        $lastthreads
=$DB_site->query("SELECT dateline FROM thread WHERE dateline > UNIX_TIMESTAMP(NOW())-3600 AND postusername='".addslashes($bbuserinfo[username])."'"); 


Boofo 03-24-2003 06:21 PM

Excellent idea. Is there a way to add a setting that you can change in the Admin CP? ;)

mute 03-24-2003 06:27 PM

I suppose there is :)

I'll look into how everyone else did it, I took the easy way out because I didn't feel like touching the database at all (aside from adding the template), but I'll see what I can do.

Dean C 03-25-2003 03:47 PM

Here you go Boofo. To work with admin options simply go to forums/admin/setting.php then add a setting to the relevant group - it generates a qury and it allows you to work with a variable which is an option when creating the setting ;)

Then this variable with its value (e.g. 5) can be used throughout every php page which includes global.php :)

Boofo 03-25-2003 10:11 PM

Thanks, Mist. ;)

Dean C 03-26-2003 03:37 PM

Your Welcome Boofo ;)

_ miSt

Mathiau 04-03-2003 07:23 AM

Can this hack be made some people can only post some many times ina CERTAIN forum? as opposed to the entire forum? and have the time extened to say a person can only post twice in 24 hours (from their first post) in Forum A - but can post all they want as often as they want in Forum B?

mute 06-21-2003 07:49 PM

This hack is now obsolete, please check out the new improved version of this hack @ https://vborg.vbsupport.ru/showthrea...threadid=54596

-Kyle


All times are GMT. The time now is 08:41 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.01161 seconds
  • Memory Usage 1,728KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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