vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Can't view X Forum before Y Posts (https://vborg.vbsupport.ru/showthread.php?t=127304)

vietkieu_cz 09-22-2006 10:18 PM

Can't view X Forum before Y Posts
 
I've changed this hack default by tnguy3n - Can't post Thread on X Forum before Y Posts

[xml]<hookname>forumdisplay_start</hookname>[/xml]

PHP Code:

// min post required to create thread
$minpost 5;

// special groups which isn't restricted by this hack
$specialgroups = array(5,6,7);

// forums where this rule effects, use commas to seperate multiple forums
$forumid_req_minpost = array(2);

if (!
in_array($vbulletin->userinfo['usergroupid'], $specialgroups) AND ($vbulletin->userinfo[posts]< $minpost) AND in_array($foruminfo['forumid'], $forumid_req_minpost))
{
    
standard_error(fetch_error('cant_create_thread_without_x_posts'));
}
// end mim post to create new thread 

this script works fine but still show the forum which user has less than Y posts, I don't know how to add script to Hide the X Forums

Please can someone help me? - I know that code can't make corders problem
Thank you :( and sorry for my bad English

tazB.ca 09-23-2006 12:07 AM

If U Wanna Hide Them,mite Aswell Just Make A New Users Group Hide Tha Forums U Want Hide From The, And Make A Promotion To Members After Thy Get Y Posts

Ntfu2 09-23-2006 03:15 AM

look for the Cyb - Advanced forum permissions

vietkieu_cz 09-23-2006 08:26 PM

Thank you Ntfu2, but this hack is only hide forums Link, not hide forums :(
this is not I need :((


All times are GMT. The time now is 07:11 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.00972 seconds
  • Memory Usage 1,715KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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