vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [3.0.0 GOLD] Forums access options (minimum posts to acces, create new threads, reply (https://vborg.vbsupport.ru/showthread.php?t=64607)

H2k 12-28-2004 12:55 PM

is this hack work with vb3.0.3

sandviper 02-04-2005 02:22 PM

I'm running v3.06

I'm having the same problem as everyone else it seems. The following code is keeping guests from viewing forums that I have set as 0 posts required to view.

---
if ($foruminfo[access_nb]<=$bbuserinfo[posts] || $bbuserinfo[usergroupid]==6)
eval('print_output("' . fetch_template('FORUMDISPLAY') . '");');
else print_no_permission();
---

Has anyone figured out how to allow guests to view the forums that have the post count set to 0? I wanted to restrict certain forums, but the hack is affecting all of them.

Rambo 02-06-2005 05:18 PM

Hey,

Really good mod, but i have one question... Is it possible to show no permissions page when someone gets given the link to a topic in a forum that requires a certain amount of posts that he hasn't reached? Because i put some forums with the limit of 20 posts to access, but if you get the direct link to the thread you can look at the thread...so yeah wondeering if there is something u can do.

macooper 08-21-2005 07:01 AM

Quote:

Originally Posted by sandviper
I'm running v3.06

I'm having the same problem as everyone else it seems. The following code is keeping guests from viewing forums that I have set as 0 posts required to view.

---
if ($foruminfo[access_nb]<=$bbuserinfo[posts] || $bbuserinfo[usergroupid]==6)
eval('print_output("' . fetch_template('FORUMDISPLAY') . '");');
else print_no_permission();
---

Has anyone figured out how to allow guests to view the forums that have the post count set to 0? I wanted to restrict certain forums, but the hack is affecting all of them.

I know this is a bit late, but I only just started playing with this hack. I had the same problem with guest access to the forum, and solved it by changing the forumdisplay code to this

PHP Code:

if ($foruminfo[access_nb]<=$bbuserinfo[posts] || $bbuserinfo[usergroupid]==|| $foruminfo[access_nb] == 0)
eval(
'print_output("' fetch_template('FORUMDISPLAY') . '");');
else 
print_no_permission(); 

All this does is ignore the view permission if the required post count is set to 0, and that is the default in the database column, so it resolves the guest access issues.

Malke 12-27-2005 09:04 PM

seems like a good hack but i would like an error message when someone uses a direct link


All times are GMT. The time now is 11:32 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.01088 seconds
  • Memory Usage 1,728KB
  • 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)bbcode_quote_printable
  • (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
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete