vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Integrating vBulletin Permissions (https://vborg.vbsupport.ru/showthread.php?t=166778)

nadreg 01-02-2008 11:33 PM

Integrating vBulletin Permissions
 
Hi all,

I'm trying to write a custom Java component that is "aware" of user permissions. So far, I've been able to write a Java component that can correctly identify the logged in user, the groups they belong to, etc. But I'm having trouble deciphering the way vBulletin sets up its permissions.

Can anyone point me in the right direction? I haven't been able to find anything on the net.

Thanks much in advance.

alexgeek 01-03-2008 12:39 AM

Which permissions? Like how many images a user can have in their sig? Or what forums they can view?

nadreg 01-03-2008 02:58 AM

Ideally, I want to know all the permissions the user has... images in a sig as well as forum permissions. Are they stored in a common format in the database, or are they vastly different?

Which forums they can view would be a good start, is they are very different. I want to know if they have permissions to read a forum, or post threads in a forum, or edit threads in a forum, etc.

Thanks for your help.

Guest190829 01-04-2008 08:03 AM

Permissions are all bitfields...

Look at cache_permissions funciton in function.php ... after the function call, all the user's permissions are stored in $vbulletin->userinfo['permissions'] array ...

You will then have to compare the users value with the default bitfields which are stored serialized in the datastore and compiled in class_core.php into the vbulletin registry.


All times are GMT. The time now is 12:05 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.01431 seconds
  • Memory Usage 1,707KB
  • 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
  • (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