Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Reply 
 
LinkBack Thread Tools Display Modes
Old 11-06-2006, 08:02 AM   #1
vBulletin Owner
 
Join Date: Oct 2006
Posts: 154
harmor has a spectacular aura about
Help with usergroup permissions

This is ofr my vHosting hack. If you help me solve this I'll code it into the free version.

I have made some custom usergroup permissions for a hack a few months back and they worked. I recently added one more to the list which is the last one in the php bbcode

PHP Code:
<bitfield name="canrequesthosting" group="hosting_permissions"  phrase="can_request_hosting" install="">1</bitfield>
                <
bitfield name="canupgradehosting" group="hosting_permissions"  phrase="can_upgrade_hosting" install="">2</bitfield>
                <
bitfield name="canchangehosting" group="hosting_permissions"  phrase="can_change_hosting" install="">4</bitfield>
                <
bitfield name="canviewuserlist" group="hosting_permissions"  phrase="can_view_hosted_users" install="">8</bitfield>
                <
bitfield name="cansearchsites" group="hosting_permissions"  phrase="can_search_hosted_sites" install="">16</bitfield
Here is the php conditional I'm using
PHP Code:
if(($permissions['hostingpermissions'] & $vbulletin->bf_ugp['hostingpermissions']['cansearchsites'] == 0))
    {
        eval(
standard_error(fetch_error('cannot_search_hosted_sites')));
    } 
I went into phpmyadmin and went to the "usergroup" table. The field the permissions saved to is "hostingpermissions" In the ACP --> Usergroup Manager" I only enabled the "cansearchsites" option. I checked the number in the "hostingpermissions" field and it was 16. Can you tell me why the conditional won't recognize the usergroup permissions?
__________________
rapidshare downloads
harmor is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 11-06-2006, 09:26 PM   #2
Supporters
vBulletin Owner
 
Code Monkey's Avatar
 
Join Date: Aug 2006
Posts: 1,292
Blog Entries: 1
Code Monkey will become famous soon enough
Re: Help with usergroup permissions

Not really sure what you are trying to say here but you are using hostingpermissions and hosting_permissions which are two very different things in the eyes of the PHP parser.
__________________
rapidshare downloads
Code Monkey is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Tags
permissions, usergroup

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions Question giginiello Troubleshooting vBulletin Problems 2 02-10-2009 10:39 PM
When Editing Usergroup, vB Makes A New Usergroup of the Same Name Instead OS Master Troubleshooting vBulletin Problems 8 08-21-2008 10:14 AM
Forum Permissions Mod Cfodder vBulletin Services 0 05-01-2008 01:50 AM
usergroup permissions! SticKer Troubleshooting vBulletin Problems 2 02-16-2008 06:23 PM
vBulletin usergroup permissions outside vb Guernica Troubleshooting vBulletin Problems 1 12-15-2007 05:22 PM


All times are GMT -8. The time now is 06:37 PM.