vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Restrict Access to Forum base on Post Count (https://vborg.vbsupport.ru/showthread.php?t=65658)

VanHost 05-30-2004 06:47 PM

Restrict Access to Forum base on Post Count
 
I am wondering if there is a MOD that exists for any version of vB that allows you to restrict the viewing a forum to registered users with say 10 or more posts.

Ie.

I don't want people to just sign up so they can view a certain forum with 0 posts.

Zachery 05-30-2004 07:03 PM

if your running vB2 then im sure there is, with vB3 its possible to setup a system that does this by defualt.

Sylvus 05-31-2004 05:35 PM

Open up showthread.php

Find:

if ((!isset($pagenumber) or $pagenumber==0) and $pagenumber!="lastpage") {
$pagenumber=1;
}

Beneath it add:

// USER SPECIFIC CODE VIEW

if ($bbuserinfo[posts] <= "10")
{
eval("standarderror(\"".gettemplate("error_noposts dawg")."\");");
}

// END

Create a template called:

error_nopostsdawg

Put in the following message:

Yo dawg! You ain't be bustin' out enough posts in the hood for us to let you view our sugar smacks. You know what I'm sayin'? WHUT?!

Members with 10 posts or less will still be able to enter each forum and display each thread but they will receive the above error message if they attempt to view a thread.

Syl...

n_only 06-04-2004 11:35 AM

Sylvus

what if I would like to restrict new post only ?

let's say user with 10 posts can send a new post in ( Hack Requests forum).

Sylvus 06-04-2004 03:44 PM

Huh? You only want a member to be able to post in Hack Requests forum if they have 10 or more posts?

Syl...


All times are GMT. The time now is 05:59 AM.

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.01037 seconds
  • Memory Usage 1,708KB
  • 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
  • (5)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