vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   limited forum access by post counts (https://vborg.vbsupport.ru/showthread.php?t=39738)

scsa20 06-11-2002 11:38 PM

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.

Dark_Wizard 06-11-2002 11:50 PM

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

scsa20 06-11-2002 11:56 PM

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

cdcopyworld 06-12-2002 09:26 AM

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

cheers

scsa20 06-13-2002 06:57 AM

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

[high]* scsa20 bump this because me want this :rolleyes:[/high]

afterlab 06-13-2002 08:37 AM

I can make it, but would you want it usergroup based.. Or individual user based?

scsa20 06-13-2002 01:34 PM

usergroup base

thank you

Kilroy 06-13-2002 06:49 PM

also looking for this one

Logician 06-14-2002 09:56 AM

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

scsa20 06-14-2002 05:31 PM

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


All times are GMT. The time now is 01:34 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.01127 seconds
  • Memory Usage 1,723KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete