vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Limited replies in a forum (https://vborg.vbsupport.ru/showthread.php?t=53591)

BigJohnson 05-30-2003 11:14 PM

Limited replies in a forum
 
How do I make a feature such as a certain usergroup only a total of 5 replies in certain forums? There is more than one forum.

The forum ids that I want there to be on 5 replies max in are

23, 24, 25, 26, 27, 28, 29, 30, 31, 55

Only 5 replies max TOTAL in any of these forums is the limit for usergroup 2.

How would I go about doing such a thing?

And also once the 5 replies are made the user will be given an custum error saying that there limit is up.

PLease help me I am really trying to get someone to create something like this for me.

The other thing to this hack is 5 replies in different threads i mean. So if there is one thread and the user makes 3 replies in one thread in the certain forum then it only really counts as 1 reply counted towards the user.

It only will cont for another reply if the user replied in another forum. So it has to be 5 replies in 5 separate threads.

If you don't understand this please tell me. I will give a better explanation. I hope someone can help me out. Thank you all so much.

BigJohnson 05-31-2003 08:38 PM

PLease help me out thank you.

BigJohnson 06-01-2003 05:50 PM

Bump please help

BigJohnson 06-02-2003 08:02 PM

bump

BigJohnson 06-11-2003 10:04 PM

SOMEONE PLEASE HELP.

Andrew111888 06-11-2003 10:12 PM

I have a hack downloaded onto my computer that does this. It's by Logician but I have no idea where it's located because it doesn't appear to be in his released hacks.

Chris M 06-11-2003 10:16 PM

I don't have time to code it, but I can help you by saying something like:

DO NOT USE THIS CODE IN YOUR FILES - IT IS AN EXAMPLE

In newreply.php:
Code:

if ($thread[forumid]=="x") {
$DB_site->query("UPDATE user SET replyforum=replyforum+1, threadid='$thread[threadid]' WHERE userid='$bbuserinfo[userid]' AND forumid='$thread[forumid]'");
}

Something like that would work:)

Satan

BigJohnson 06-15-2003 08:58 PM

HHmm. As I am not such a great coder. I can code but I am not getting enough info from this line. It is not comin to me hehe.

Maybe you could explain it a little. Thanks for the try. I will look at it some more and see if i can think of anything.

BigJohnson 06-17-2003 08:35 AM

bump

BigJohnson 06-18-2003 04:43 PM

bump again please help


All times are GMT. The time now is 12:34 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.01308 seconds
  • Memory Usage 1,722KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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