vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Question about hacks (https://vborg.vbsupport.ru/showthread.php?t=46626)

tHE DSS 12-14-2002 06:04 PM

If you are still getting problems with things showing up in forums that certain users do not have access to, then check out this thread :

https://vborg.vbsupport.ru/showthrea...threadid=43056

... it's function I wrote a month or two ago, that does exactly that.

We don't use the normal "Private Forum" flag to say which forums are private, nor do we use "Access Masks" to give user by user access.

We set the Usergroup CANVIEW value on a usergroup by usergroup basis.

That is, we set each parent forum (forum category) permissions for each usergroup - either saying CANVIEW, or not. We then set each permission for each actual posting forum to 'inherit from parent forum'.

We do that because we have a different needs for different usergroups. But that method is a good idea for any board setup, I think.

So, check out that thread, and you see that at the end of the function, you get a 'string list' of forums a user cannot view... you can then use a WHERE clause like this :

[sql]
.... WHERE (forumid NOT IN ($forumsCannotView_strList)) ...
[/sql]

If you can get that specific user having the problem on your board to give you the error message he is getting, post it here.

Roody 12-14-2002 06:50 PM

thanks for that DSS i will look into this and let you know if I have any questions. appreciate the help :)


All times are GMT. The time now is 05:21 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.00995 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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