thanks, glad to hear that, I'll try it
|
Hi Kirby, just 1 quick question if I may.
Quote:
Thanks, Alan. |
Therer was an apparent restructuring of the file class_dbalter.php changing the class and functions used in Kirby's uninstall example.
fetch_table_info has now changed to fetchTableInfo and drop_field has changed to dropField and lastly table_field_data has changed to fetchFieldInfo. new coding PHP Code:
|
I did everything the tutorial said and I can see the radio button in the admin permissions but when I click "yes" and save it, it goes back to "no".
Do I change customadminperms? |
Quote:
|
This thing doesn't actually work. (3.5.3)
After the first check of permissions, the static $adminpermissions; takes over, to which the custom permissions are not added. Therefore an alternative solution is required. I will look deeper into it tomorrow. |
You're right. Must have missed that issue as I only had one custom navgroup - and it was the first one.
I tweaked the code a bit to get around this. |
Allow me to point out two facts:
EDIT: This randomly doesn't seem to work for OLD administrators, and only in the ACP menu. In my custom menu it works fine, it just doesn't work in the cpnav_ menu. EDIT #2: I fixed it now. Made it so it doesn't query unless for some reason it didn't fetch the permissions properly. Also I replaced the * in the query for a slight load decrease =P |
Well ... as of vBulletin 3.5.4 $admin is there by default :)
The following code might work cross-version? PHP Code:
|
It might, but due to the fact that I don't actually use the $admin variable, I don't know if I need to change the code.
I don't really see how changing the variable name would help in solving the original problem, though. I just tested the new plugin with some slight alterations and it works. I cba to "remake" it into your "customadminperms" format so Ill just give it like I use it: PHP Code:
I think that's a pretty efficient way of doing it, as it only runs 1 additional query for ONE admin (out of the ~10 I tested it on, non-superadmins that is). So yeah, tis odd, but meh =P |
All times are GMT. The time now is 01:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|