![]() |
dynamically changing vbulletin permissions/bitfields via a plugin
I want to override permissions using a plugin - specifically for viewing attachments. By default, guests can not view attachments. I know I can set this manually, but would like to do so dynamically.
I think this is the bitfield I need to toggle is: Code:
<bitfields product="vbulletin"> Code:
$userdata->set_bitfield('forumpermissions','cangetattachment',true); the plugin code will have other conditionals (primarily the forum which the post/attachment resides in ), but the short story is I ultimately want to allow viewing of attachments by anyone. any help appreciated ! Many thanks |
You can change it at runtime instead (but this may sometimes cause confusion) by modifying the bitfield array in $vbulletin.
|
Many thanks - in this case the following code seems to work:
Code:
$vbulletin->bf_ugp['forumpermissions']['cangetattachment']=1; |
All times are GMT. The time now is 07:13 AM. |
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:
|