vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Restrict New Threads Per Day (https://vborg.vbsupport.ru/showthread.php?t=35765)

Nam 03-07-2002 05:42 PM

I did say "great job", now you want me to say just "nice job"? :D

Hey, I have a question, is it possible to restrict create new thread in particularly forum? like 5 in Computer Forum and 10 in Suggestion forum.

If it takes more time, then just restrict 5 in every forum, so people can create 25 new threads if I have 5 forums instead of only 10.

Just wondering, please tell me if you can do it.

Kinght 03-07-2002 09:43 PM

not bad, pritty simple : ) great job!

Neo 03-08-2002 12:03 PM

Nam: Of course. It would take some editing, and some datebase stuff but its generally easy. I will make the addon to this when I get back from visiting my Dad.

Kinght: Thanks :D

Mike 03-15-2002 01:27 PM

Can this be modified so that it only applies to a specific user group? I like the idea very much but would only want to apply it to some selected members and not everyone.

Neo 03-15-2002 01:51 PM

if ($bbuserunfo[tpd]!=10 || $bbuserunfo[tpd]<=10) {
##replace with##
if ($bbuserunfo[tpd]!=10 || $bbuserunfo[tpd]<=10 && #bbuserinfo[usergroupid=XX) {

if ($bbuserinfo[tpd]>=10) {
##replace with##
if ($bbuserinfo[tpd]>=10 && $bbuserinfo[usergroupid]==XX) {

make the xx into the user group thats has this put on them.

mas404 03-16-2002 10:10 AM

thise hack .after the 10th thread it will stop the user for 24hour.

it mean if the user post 9 thread today and after week he post one thread it will stop him!! for 24hour ?

but what we need is to stop him in the same day ,
if hi post two thread and after one day it will be zero and the counter will start agine .

please inform me if I understand wrong !!

Neo 03-17-2002 12:30 AM

Hmmm.... not to sure. I might have to make a edit to it.... errr.... good eye.

Neo 03-17-2002 12:33 AM

ok, it works like once you make a thread a time in input into the db... once the time put in the db and the time allowed to make threads has gone over.. it will be set back to 0.... so if you make 7 in 24 hours.... in will be set back to zero after that is over.

Remi 03-17-2002 12:52 AM

I don't understand :nervous:

I have instaled this hack when it was released, Do I need to to change any thing now :bored:

also one thing please:

Don't you think this:
query("UPDATE user SET modtpd=tpd+10,

sould be :
query("UPDATE user SET modtpd=tpd+1,

:laugh:

Thanks

Neo 03-17-2002 04:13 AM

I changed that already


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