View Full Version : Ad posts control
//////////
//Ad Control v1.1
//////////
//by mx3
//////////
//credits to storm for help with some errors
//////////
//requested here: https://vborg.vbsupport.ru/showthread.php?s=&postid=362917#post362917
//////////
//What this hack does is make it so that a member can post a new thread only once per
//week in any forum you choose. Also the user must have at least X posts. Recommended for an Advertising Forum.
//////////
Please click install if you use. :D
screenshot of error message
Thank you! finally, i feel like i'm giving back to the community...:D
Xyphen
03-08-2003, 09:01 PM
Is it possible to make it Once only? Like, once in a life time?
i guess, but then what if the member makes a new site and needs a new thread for it? :D i made it so that 604900 was the length of time you have to wait, in seconds. i don't know if i'd have to try to make that with 27 more zeros, or just find another code that makes it once...i'll look into it and include some way to do that in v2 :D
heres version 1.1, now the member must have at least X posts to make a thread in the forum at all! (attached file is the upgrade file, install file in 1st post updated)
Dean C
03-09-2003, 01:20 PM
Good idea :)
- miSt
Pollo
04-22-2003, 06:18 AM
For the php challenged, what would be the code to have this work for more than one forum (5 to be exact)?
if ($forumid==XX && $bbuserinfo[userid]!=0 AND ($bbuserinfo[posts]<X) AND (time()-$bbuserinfo[lastpost])<=604900 AND !ismoderator($foruminfo[forumid])) {
I know you'd change the above line, but I'm not sure how to add forums instead of just one: $forumid==XX
vBulletin v2.2.9
Dean C
04-22-2003, 09:06 AM
if (($forumid==XX OR $forumid==YY) && $bbuserinfo[userid]!=0 AND ($bbuserinfo[posts]<X) AND (time()-$bbuserinfo[lastpost])<=604900 AND !ismoderator($foruminfo[forumid])) {
Try that :)
Pollo
04-22-2003, 01:30 PM
Thanks Mist, I'll give it a go. I was guessing here: https://vborg.vbsupport.ru/showthread.php?s=&postid=384253#post384253
Similar hack, and I had a couple of guesses, but haven't tried any of them yet until someone with more knowledge looked at it and said, "Maybe" or "Uhhhh nope!" :D
I'm back...sorry i haven't been around awhile but i can provide support again
Thx mist for helping pollo
freehtml
08-09-2003, 01:35 PM
Can we said change it to maybe 5 days per forum
freehtml
08-09-2003, 01:46 PM
i installed at http://www.sgwebhostingtalk.com/forum/forumdisplay.php?s=&forumid=13
and it doesn't seems to work.. strange...
I'm back once again to this thread, and I'll be able to help again soon...again....
I now know php/sql a lot better now so this hack should work perfectly in a few days once I get around to making version 2 ^_^
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.