Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 06-11-2002, 11:38 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default limited forum access by post counts

I don't know if anyone made a hack of this, but I'll post it anyways....I want a hack that you can set in the Forum Permission or in the Forum editing options (more likely that) that you can set the number of post needed to post in the forum you set it too....can anyone make this?? thanks.
Reply With Quote
  #2  
Old 06-11-2002, 11:50 PM
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Location: North Carolina
Posts: 1,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a little confused...how do you set a minimum post count to a forum to access it and yet you can't post to it because you don't meet the minimum posts required? Please explain further....
Reply With Quote
  #3  
Old 06-11-2002, 11:56 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow, I thought I explained it, I guess not......okey, here, I'll brak it down:

lets say I have a forum called "Super Helper" under the catorory of PCs
now lets say I want them to have at least 5 posts before they can start a thread in "Super Helper"
I set it up while making the forum
If the user is under 5 post, he can't start a thread, and if he trys, he gets a error message saying he needs this much posts before posting in that forum.... but he can post replys in a thread that's in that forum.
If the user's posts is over 5, then he could start a thread.

is that a bit clearer??
Reply With Quote
  #4  
Old 06-12-2002, 09:26 AM
cdcopyworld cdcopyworld is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

scsa20 i know what you mean and im also looking for a hack that does this.

cheers
Reply With Quote
  #5  
Old 06-13-2002, 06:57 AM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*"1 day bump.......next bump is 2 days from now (which is Sat.)"*

[high]* scsa20 bump this because me want this [/high]
Reply With Quote
  #6  
Old 06-13-2002, 08:37 AM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can make it, but would you want it usergroup based.. Or individual user based?
Reply With Quote
  #7  
Old 06-13-2002, 01:34 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

usergroup base

thank you
Reply With Quote
  #8  
Old 06-13-2002, 06:49 PM
Kilroy Kilroy is offline
 
Join Date: Dec 2001
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also looking for this one
Reply With Quote
  #9  
Old 06-14-2002, 09:56 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

newthread.php find:

// auto bypass queueing for admins/mods

Before that add:

if ($bbuserinfo[usergroupid]==X AND $bbuserinfo[posts]<Y)
{
show_nopermission();exit;
}

(Set X for the user group, Y for the minimum post number to post)

If you want it template driven:

Replace

show_nopermission();exit;

With

eval("standarderror (\"".gettemplate ("error_minpostnumforthreads")."\");");
exit;

And create a template named "error_minpostnumforthreads" and specify its content as you like..

I'm sure someone will ask so here its the code if you want to restrict 2 usergroups:

Replace first line as:

if (($bbuserinfo[usergroupid]==X OR $bbuserinfo[usergroupid]==Z) AND $bbuserinfo[posts]<Y)

Sorry, integrating this option to Admin CP requires a lot of editing so I only provided you with basic code. I dont know if Afterlab is still interested coding this hack but if he is, maybe he can write the code for you..By the way I recall this hack is already been released before? Are you sure it isnt? Maybe you should recheck again..

Enjoy..
Logician
Reply With Quote
  #10  
Old 06-14-2002, 05:31 PM
scsa20's Avatar
scsa20 scsa20 is offline
 
Join Date: Mar 2002
Location: Mars
Posts: 458
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to make it so only a cerent forum needs that number, like forumid 3??
Reply With Quote
Reply

Thread Tools
Display Modes

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:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06764 seconds
  • Memory Usage 2,244KB
  • Queries Executed 11 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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_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