PDA

View Full Version : Ad posts control


mx3
03-07-2003, 10:00 PM
//////////
//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

mx3
03-08-2003, 08:39 PM
screenshot of error message

N9ne
03-08-2003, 08:44 PM
Nice hack :). Good work!

mx3
03-08-2003, 08:46 PM
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?

mx3
03-08-2003, 09:15 PM
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

mx3
03-10-2003, 12:14 AM
thank you :D

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

mx3
04-23-2003, 01:35 AM
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...

mx3
10-16-2003, 03:16 AM
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 ^_^