![]() |
Bitfield help
I created two custom bitfields
Code:
<group name = "serverstuff"> |
I think you want different values for those, like instead of making them both '1' make the second one '2'.
|
Quote:
Edit: Correction, it does work. The bitfields had just not been rebuilt. Now I just don't know how to call on each bitfield independently, any help there? |
Does anyone have any idea on how to make each bitfield save separately so that I can call on them individually?
|
I'm not sure what you're doing exaclty - how are you trying to save them?
|
Quote:
|
It has been nearly a week. Any ideas?
|
Sorry to be a hassle, but I need this solved. If anyone knows, it would be greatly appreciated.
|
I'll try to help you figure it out, but I don't understand what you're doing. What exactly are you doing with the xml in the first post, and what do you mean by "making them save"?
|
Basically if you click yes to 'isserverstaff' then 'serverstuff' adds one to itself for that usergroup. But if you click 'isbetatester' then 'serverstuff' adds two to itself. Meaning that if I try and call on 'serverstuff' the current way I cannot have the 'isbetatester' field because I call on it with something like $permissions['serverstuff']. I want to be able to check if the person isserverstaff, not just serverstuff. Make more sense?
|
Code:
if ($permissions['serverstuff'] & 1) You didn't say exactly where you added your xml, but I think you should be able to do something like this code (which obviously checks forumpermissions): Code:
$permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview'] by replacing 'bf_ugp_forumpermissions' with whatever is appropriate for your bitfields, that way you're not hard-coding the values. Maybe this article will help: https://vborg.vbsupport.ru/showthread.php?t=166940 |
All times are GMT. The time now is 08:09 PM. |
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:
|