Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   11-06-2006, 10:02 AM
harmor has a spectacular aura about Join Date: Oct 2006 Posts: 144
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?
--------------------
vHosting Pro
Manage you hosting requests easier

Xen Web Hosting
Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more
Quote   |  



#2   11-06-2006, 11:26 PM
Code Monkey will become famous soon enough Join Date: Aug 2006 Posts: 122
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.
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


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
Usergroup Promotion Problems Vibu vBulletin Questions 4 07-02-2007 03:39 AM
display members of a usergroup graysqwrl vBulletin Questions 2 01-19-2007 07:57 AM
changing usergroup tespara vBulletin Questions 0 12-15-2006 05:06 PM
In regards to the new UserGroup - Respected Members Brandon Forum Archives 2 09-23-2006 11:06 PM
Need help with forum permissions. thablewprnt vBulletin Questions 7 08-25-2006 12:44 AM


All times are GMT -6. The time now is 05:59 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory