vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Database Table: Access (https://vborg.vbsupport.ru/showthread.php?t=268075)

Murtific 08-06-2011 01:13 PM

Database Table: Access
 
If I do some php code to insert into and update the database tabler "access" with a userid, forumid, and accessmask, the table updates flawlessly.


The only problem is, the userid can not view the forumid with an access mask of true. I still have to go into the user manager and go to Access Masks and set the access mask.

This is really starting to irritate me as I can not determine WHY that is the ONLY way for an access mask to be set. I want to do it with php and not from the board.


Help!? :eek:

--------------------------------------------------------------
--------------- Added [DATE]1312640551[/DATE] at [TIME]1312640551[/TIME] ---------------

Here you may edit forum access on a user-by-user basis.

Selecting "Yes" will allow the user access to the forum. Selecting "No" will deny the user access to the forum. Any changes made to one user's account will override the default permission settings in their usergroup.

Selecting "Default" will revert the user to the default permissions settings for their usergroup.

(Please note that the permission inheritance system still works here.)

(Ensure that you have access masks enabled before attempting to use these!)
-----------------------------------------------------------------


WHERE are these custom user forum permissions set?

kh99 08-06-2011 01:35 PM

It looks like there is a bit that says whether or not a user has an access mask that also needs to be set. If you look in admincp/user.php at the section that starts:

HTML Code:

// ###################### Start Update Access #######################
if ($_POST['do'] == 'updateaccess')
{


(around line 1166) you can see how the access mask is changed when you do it via the admincp.

Murtific 08-06-2011 01:40 PM

moon speak.... it looks cached?

and i am in no way familiar with the datamanager, that thing is just retard complex....

kh99 08-06-2011 01:49 PM

I understand what you're saying, but really you don't have it understand it, you can just copy the code. It seems easier than figuring out how to set the bits yourself.

BTW, I'm not sure 100% sure, but I think your problem was not caching but the fact that you need to set that bit in the options field.

Murtific 08-06-2011 01:57 PM

well that's just retarded to cache it................. i'm now pretty upset xD hehe

Lynne 08-06-2011 03:20 PM

Retarded to cache it? Not really. The more caching you can do, the faster your board will run. Maybe not a big deal when the site is small, but when your site grows, it will become a bigger issue.


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