vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Per Forum, Per Usergroup Post Limit (https://vborg.vbsupport.ru/showthread.php?t=193231)

NathanLedet 10-10-2008 02:50 AM

Per Forum, Per Usergroup Post Limit
 
I have this idea for this Mod, and I want to program it rather than make it a mod request. I'm up for a challenge, but haven't been doing much vB programming. I would appreciate some assistance so I can get my first mod out of the way :)

So the general idea is to put a limit on the # of posts you can post in a specific forum for a set amount of time.

Example:
Usergroup 2 (Registered Users) can post in Forum x (we'll say 23 - a classifieds forum) 20 times in a one year time span.

So, is it better to adjust the mod's settings per usergroup? or per forum?

Lets say I click on Usergroups > Registered Users > Edit
Scroll all the way down til you see the settings for this mod
Enable mod for this usergroup? Yes/No
Forum ID's: 23
Max # posts: 20
Per: Day/Month/Year

What if I want to add multiple Forum ID's?
Forum ID's: 23, 25, 28
Max # of Posts: 20, 40, 15

(This would result in 20 max posts for forum 23, 40 max posts for forum 25, and 15 max posts for forum 28)
This seems logical - unless I want to add 20 max posts per week in forum 23 and 40 max posts per year in forum 25



Option 2 - Per Forum settings
Forum Manager > Example Forum > Edit
Scroll all the way down til you see the settings for this mod
Enable mod on this forum? Yes/No
Usergroup ID's: 2
Max # posts: 20
Per: Day/Month/Year

Same issue as above....what if I want to mix and match.

Well, I think either option will get me where I need to go...they both do the same thing.

I just need a kick start in the right direction now.

Should I start with the XML document that I import that displays all of the Admin settings?
How do I determine if someone has posted x amount of times per day/month/year in forum x ?

I appreciate the help!!


All times are GMT. The time now is 12:02 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.01169 seconds
  • Memory Usage 1,705KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (1)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