![]() |
How to secure a cms widget
I have an html widget :
Code:
<head> thanks |
If you just want the widget to have no content (or maybe a different message for other usergroups), you could make it a php widget and for the code do something like:
Code:
if (is_member_of(vB::$vbulletin->userinfo, X) If you want the widget to completely disappear, you could copy the vbcms_widget_execphp_page template code to a new template, add: Code:
<vb:if condition="is_member_of($bbuserinfo, X)"> Then configure your PHP widget and add your new template in the Template Name field, and make the code Code:
$output = 'html for my widget'; |
All times are GMT. The time now is 11:19 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:
|