The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hey guys,
I am running 3.6.2 and was wondering if they is a mod that would allow me to say specify that 10 posts were neded to post in an advertising forum? Any help would be great Jay |
#2
|
|||
|
|||
![]()
1. Back-up newthread.php and newreply.php (only do newreply if you do not want them to make replies either)
2. in newthread.php find: if (!$foruminfo['allowposting'] OR $foruminfo['link'] OR !$foruminfo['cancontainthreads']) { eval(standard_error(fetch_error('forumclosed'))); } 3. After add: // check to see if they have enough posts if ((($vbulletin->userinfo['posts'] < '10') AND ($foruminfo[forumid] == 'xx')) AND (($vbulletin->userinfo['usergroupid'] < '5') OR ($vbulletin->userinfo['usergroupid'] > '6'))) { eval(standard_error(fetch_error('notenoughposts')) ); } 4. Change xx to the forumid you do not want the posts to be made. Note: admins/gm's excluded from restriction. If you allow guests to posts, they will not be able to as well in the forum you specify. 5. Save. 6. open newreply.php (if you want to stop members with <10 from replying as well) 7. Find: if (!$threadinfo['open']) { if (!can_moderate($threadinfo['forumid'], 'canopenclose')) { $vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "t=$threadid"; eval(standard_error(fetch_error('threadclosed'))); } } 8. After, add code from step 3, and save. 9. Create a new error phrase called notenoughposts 10. Add at own risk, ![]() |
#3
|
||||
|
||||
![]()
Or use the User Promotions system, to avoid hacking your vBulletin, lol.
|
#4
|
|||
|
|||
![]()
Promotions make a lot more sense if you ask me.
|
#5
|
|||
|
|||
![]()
Promotions take resources that are required to execute, and also requires another group to be made and permissions set up for. The code offered above takes next to nothing execution time, no additional queries required, and requires one less group with permissions for every forum set up.
Why set up a promotion for a post count check of less than 10 in one forum? Waste of time. |
#6
|
||||
|
||||
![]()
Some would consider keeping your vBulletin free of custom code worth it.
|
#7
|
|||
|
|||
![]()
Promotions dont take that much up, and if you decide you dont want that anymore, is far easier to return to the original setup..
|
#8
|
||||
|
||||
![]() Quote:
|
#9
|
||||
|
||||
![]()
I am looking for this too. Is the a product for this if not WHY! not.
|
#10
|
|||
|
|||
![]()
yeah a product would be great.
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|