vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Ad posts control (https://vborg.vbsupport.ru/showthread.php?t=49825)

mx3 03-07-2003 10:00 PM

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

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/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

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/foru...?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 ^_^


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
  • Page Generation 0.01068 seconds
  • Memory Usage 1,736KB
  • 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
  • (15)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