Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-13-2007, 10:43 AM
elsonar elsonar is offline
 
Join Date: Aug 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Minimum post need to make a thread in a certain forum

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
Reply With Quote
  #2  
Old 01-13-2007, 05:47 PM
Nathanial Horn Nathanial Horn is offline
 
Join Date: Jan 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #3  
Old 01-13-2007, 06:52 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or use the User Promotions system, to avoid hacking your vBulletin, lol.
Reply With Quote
  #4  
Old 01-13-2007, 06:54 PM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Promotions make a lot more sense if you ask me.
Reply With Quote
  #5  
Old 01-13-2007, 07:04 PM
Nathanial Horn Nathanial Horn is offline
 
Join Date: Jan 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-13-2007, 07:06 PM
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
Location: Tallahassee, Florida
Posts: 2,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Some would consider keeping your vBulletin free of custom code worth it.
Reply With Quote
  #7  
Old 01-14-2007, 07:29 AM
josh_B josh_B is offline
 
Join Date: Jan 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Promotions dont take that much up, and if you decide you dont want that anymore, is far easier to return to the original setup..
Reply With Quote
  #8  
Old 01-14-2007, 07:36 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nathanial Horn View Post
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.
Because it's more logical than hacking your vBulletin core files. vBulletin DOES have a plugin system, you know (if you don't want promotions).
Reply With Quote
  #9  
Old 01-14-2007, 09:20 AM
NeoToxic's Avatar
NeoToxic NeoToxic is offline
 
Join Date: Mar 2006
Location: Uk, Leeds
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am looking for this too. Is the a product for this if not WHY! not.
Reply With Quote
  #10  
Old 01-14-2007, 03:29 PM
elsonar elsonar is offline
 
Join Date: Aug 2005
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah a product would be great.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:23 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.05044 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete