The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to secure a cms widget
I have an html widget :
Code:
<head> <meta http-equiv="Expires" content="0"> <meta http-equiv="Cache-Control" content="no-cache, mustrevalidate"> <meta http-equiv="Last-Modified" content="0"> <meta http-equiv="Pragma" content="no-cache"> </head> <iframe src="http://www.spanishred.com/noticias/series.html" name="aframe" width=350 height=2320 frameborder="no" align="center"></iframe> thanks |
#2
|
|||
|
|||
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) { $output = 'only seen by group X'; } else { $output = 'only seen by other groups'; } 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)"> //code from vbcms_widget_execphp_page <vb:if> 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'; |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|