vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding view controls to a page (https://vborg.vbsupport.ru/showthread.php?t=139138)

Merriweather 02-11-2007 11:03 PM

Adding view controls to a page
 
I have some parts of my forum that are currently open to anyone, guest or registered. I want to add controls to those pages so I can set each usergroup's permissions whether they can view the page or not -- basically, I want the "You are not logged in or you do not have permission" message to come up if a group I deny permission to tries to view that area of the forums.

I realize there's a bit of work involved here, but I wondered if someone could be kind enough to help me muddle through adding this control to a part of my forum?

Analogpoint 02-12-2007 01:07 AM

Can't you just set the permissions for the individual forum? Or am I not understanding you...

Merriweather 02-12-2007 01:19 AM

Sorry I wasn't clear here, as I'm not talking about a forum. I'm talking about additional pages or mods that I want to control who can and cannot see them. :)

Analogpoint 02-12-2007 01:35 AM

Take a look at this thread, and see if you can use the functions to check if someone's logged in or not on your other pages. Actually, why don't you just check for the vB cookie to see if they're logged in?

Merriweather 02-12-2007 01:44 AM

It's a start, but I'm not looking just to see if they are logged in. I want to be able to control settings per usergroup.

Analogpoint 02-12-2007 02:12 AM

Hmmmm. You'll probably have to access the vb database directly and look up their permissions then.

Reeve of shinra 02-12-2007 02:31 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=98009" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=98009</a> -- look under "Limiting Access to the Script" for tips to get you started.

Merriweather 02-12-2007 02:35 AM

Thank you, Reeve of shinra!


All times are GMT. The time now is 03:17 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.00943 seconds
  • Memory Usage 1,716KB
  • 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
  • (8)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