The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
Quote:
Made that error on my first hack (never released), it was so easy to just extend an exisiting group. Understood later that what might look easy to start with, could bring you into troubles later. Unfortunatly i see most coders of smaller hacks just extend the existing ones. |
#22
|
||||
|
||||
I have found this and other information useful. I thank all that have contributed. Now that I have my permissions set up and able to be modified via usergroup.php. My new problem is how to read the permissions and interpret their state. I have created a new field in the username table and the information is an on/off (Yes/No) option. How do I retrieve the permission state?
|
#23
|
||||
|
||||
Can anyone assist with this? It is the only piece I am having trouble grasping when it comes to assigning and checking permissions I think.
|
#24
|
||||
|
||||
To access the new field, assuming the name of the new field is "newfield" you simply go $bbuserinfo[newfield]
|
#25
|
||||
|
||||
This does not return any value. The current value should be 1 and it is returning null. This new field is dealing with usergroup permissions... the same general permissions that you would check for "Can delete own posts" or "Can move own threads". If I hard-code a value of 1 to my variable, the script works correctly. I tried $canviewtwice = $usergroup[canviewtwice];, but that did not give a result either. canviewtwice is the name of the usergroup bitfield assignment.
EDIT: I found it. It was $permissions[canviewtwice]; that was needed. How stupid do I feel now? Thanks, guys, for the assist. I am learning a LOT through this process thanks to you all! |
#26
|
||||
|
||||
I misunderstood the question but glad you figured it out.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|