vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Only 10 post max per hour (https://vborg.vbsupport.ru/showthread.php?t=45581)

BigJohnson 11-10-2002 01:38 PM

Only 10 post max per hour
 
I was wondering if someone can help me out. I was wondering if someone can post the code that only 10 people can post replies MAX per hour to only these forum IDS 13, 17, 19, 20, 26, 27, 33, 34, 44, 45, 51, 52, 58, 59

I was wondering if this could be done without having a crap load of queries. PLease help me out. Thanks.

So when you click the REPLY button a message will come up saying there is a 10 person max per hour feature. Well anyway it can point to a template and I can change what it says.

10 post reply per hour. Thanks.

Xenon 11-10-2002 01:47 PM

well, you can try this, but i didn't test it, so don't know if it works...

open newreply.php

find this:
PHP Code:

$threadid=verifyid("thread",$threadid);

$threadinfo=getthreadinfo($threadid); 

below add:
PHP Code:

if(in_array($threadinfo[forumid],array(13171920262733344445515258,  59 ))) {
$posts=$DB_site->query_first("SELECT COUNT(*) AS replies FROM post LEFT JOIN thread USING (threadid) WHERE post.userid=$bbuserinfo[userid] AND thread.forumid IN (13, 17, 19, 20, 26, 27, 33, 34, 44, 45, 51, 52, 58,  59 ) AND post.dateline > ".(time()-3600));
if(
$posts[replies]>=10show_nopermission();





BigJohnson 11-10-2002 07:04 PM

Will test it out and post back to see if it works. Thanks for helping out so much Xenon. Your the greatest.

I have so many little ideas that I would love to impliment into my site and your just omn a role helping me out Xenon.

BigJohnson 11-12-2002 09:24 AM

It worked buetifully. Thanks.

Xenon 11-12-2002 04:01 PM

you're welcome :)


All times are GMT. The time now is 10:27 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
  • Page Generation 0.01013 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete