![]() |
Default Bitfield Permissions?
I have the following usergroup permissions file:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> Code:
<installcode><![CDATA[ |
Okay... update to this problem... I am using the following code in a plugin:
Code:
$perms['submit'] = ($permissions['medialibperms'] & $vbulletin->bf_ugp_medialibperms['cansubm']); And then later in the plugin it calls for a template, and in that template I have the following: Code:
<vb:if condition="$perms['submit']"> The template call works fine, as if I change the first line to code to the following, it successfully conditions the IF: Code:
$perms['submit'] = true; However, that means that the first line of code is inherently broken. The code works great in my PHP files, however in this plugin, it doesn't. I have global $permission set in the plugin, so there is no reason the permission shouldn't work. It works on MY forum, but it doesn't seem to work on everybody's. Is there something I am missing? --------------- Added [DATE]1271701703[/DATE] at [TIME]1271701703[/TIME] --------------- New update... the following code works... Code:
$perms['submit'] =$vbulletin->bf_ugp_medialibperms['cansubm']; Why does this part of the code fail? It doesn't fail on MY forum, but it fails on others. Code:
$permissions['medialibperms'] Okay... another update $perms['submit'] = $vbulletin->bf_ugp_medialibperms['cansubm']; ALWAYS RETURNS TRUE (not good) So in order to get permissions to work, you MUST use: $perms['submit'] = ($permissions['medialibperms'] & $vbulletin->bf_ugp_medialibperms['cansubm']); Once again, works great on my forum... not working on some other people's forums... Is there a reason why? |
Has anyone been able to figure this out for me? There are TWO different issues here...
|
Did you ever get this working correctly? Does it still work on your forum but not on others?
Just wondering because I have the same issue and was wondering if maybe we can figure this out. |
i actually tested the vb database alter code on my user table and it actually added medialibs
i'm thinking maybe its your vbflush() call because once i actually added those in my code the script stopped on that point.. i ran it on a debugger :P i tested this on a separate vb page tho... i dont even know how vbflush works.. all the doc says is that it will output a buffer to the browser.. |
All times are GMT. The time now is 10:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|