The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Per User Thread Limit (Per Forum)
I've searched and found a few explanations that came close, but not quite what I am looking for.
How could I go about restricting a member to posting a single thread in a certain forum? The system would have to check to see if they have posted a thread in that same forum, and prevent them from creating another one. It's probably more complicated than I would expect, but I figured I'd ask. I was hoping to find a MOD that would handle this, but the ones I found only limited the number of threads in a forum per usergroup instead of per user. -Thank you |
#2
|
||||
|
||||
Quote:
|
#3
|
|||
|
|||
You could just do something like this in a plugin using hook newthread_start:
Code:
if ($vbulletin->db->query_first("SELECT threadid FROM " . TABLE_PREFIX . "thread WHERE postuserid = " . $vbulletin->userinfo['userid'] . " AND forumid = " . $foruminfo['forumid'] . " AND visible = 1 LIMIT 1")) { eval(standard_error("Forum Rules allow one thread per user")); } or if you'd rather create a phrase for the error message: Code:
eval(standard_error(fetch_error(phrase_name))); BTW, in general borbole's right, in many cases a mod wouldn't be this small so you wouldn't be likely to get an answer here unless someone knew of an existing mod. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|