![]() |
Ad posts control
//////////
//Ad Control v1.1 ////////// //by mx3 ////////// //credits to storm for help with some errors ////////// //requested here: https://vborg.vbsupport.ru/showthrea...917#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
|
Nice hack :). Good work!
|
Thank you! finally, i feel like i'm giving back to the community...:D
|
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) |
Good idea :)
- miSt |
thank you :D
|
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 |
if (($forumid==XX OR $forumid==YY) && $bbuserinfo[userid]!=0 AND ($bbuserinfo[posts]<X) AND (time()-$bbuserinfo[lastpost])<=604900 AND !ismoderator($foruminfo[forumid])) {
Try that :) |
Thanks Mist, I'll give it a go. I was guessing here: https://vborg.vbsupport.ru/showthrea...253#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 |
Can we said change it to maybe 5 days per forum
|
i installed at http://www.sgwebhostingtalk.com/foru...?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 ^_^ |
All times are GMT. The time now is 04:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|