I want to restrict certain widgets to members only.
TiA,
vBulletin 4.2.5 is end of life and will not be receiving any future development. Warning: vBulletin 4.2.5 is not compatible with PHP 7.2.0 or higher.
Welcome to the vBulletin support forums! In our community forums you can receive professional support and assistance with any issues you might have with your vBulletin Products.
Useful Links for Guests:
If you are having problems posting in the relevant areas for your software, please see this topic.
We're pleased to announce a special promotion for upgrading your vBulletin 3/4 sites to vBulletin 5. From now until December 31st, we are offering vBulletin 5 license upgrades at $169 each. This promotion is available to all vBulletin 3 (owned) and vBulletin 4 license holders, entitling you to the latest version of vBulletin 5.
If you would like to purchase this upgrade, please log into the vBulletin Members Area and use Promo Code: vB5UPGRADE during checkout to apply the discount.
<vb:if conditional="is_member_of($bbuserinfo, X,Y,Z)"> ... widget code here... </vb:if>
<vb:if conditional="is_member_of($bbuserinfo, 2,5,6,7,12,13)"> <script type="text/javascript" src="http://ji.revolvermaps.com/r.js"></script><script type="text/javascript">rm_f1st('0','212','true','false','000000','8mg13fu8x4l','true','ff0000');</script><noscript><applet codebase="http://ri.revolvermaps.com/j" code="core.RE" width="212" height="212" archive="g.jar"><param name="cabbase" value="g.cab" /><param name="r" value="true" /><param name="n" value="false" /><param name="i" value="8mg13fu8x4l" /><param name="m" value="0" /><param name="s" value="212" /><param name="c" value="ff0000" /><param name="v" value="true" /><param name="b" value="000000" /><param name="rfc" value="true" /></applet></noscript> </vb:if>
<vb:if conditional="is_member_of($bbuserinfo, 2,5,6,7,12,13)"> <script type="text/javascript" src="http://ji.revolvermaps.com/r.js"></script><script type="text/javascript">rm_f1st('0','212','true','false','000000','8mg13fu8x4l','true','ff0000');</script><noscript><applet codebase="http://ri.revolvermaps.com/j" code="core.RE" width="212" height="212" archive="g.jar"><param name="cabbase" value="g.cab" /><param name="r" value="true" /><param name="n" value="false" /><param name="i" value="8mg13fu8x4l" /><param name="m" value="0" /><param name="s" value="212" /><param name="c" value="ff0000" /><param name="v" value="true" /><param name="b" value="000000" /><param name="rfc" value="true" /></applet></noscript> </vb:if>
<div class="cms_widget"> <div class="block"> <div class="cms_widget_header"> <h3><img src="{vb:stylevar imgdir_siteicons}/html.png" alt="" /> {vb:raw widget_title}</h3> </div> <div class="cms_widget_content widget_content"> {vb:raw static_html} </div> </div> </div>
<vb:if conditional="is_member_of($bbuserinfo, 2,5,6,7,12,13)"> <div class="cms_widget"> <div class="block"> <div class="cms_widget_header"> <h3><img src="{vb:stylevar imgdir_siteicons}/html.png" alt="" /> {vb:raw widget_title}</h3> </div> <div class="cms_widget_content widget_content"> {vb:raw static_html} </div> </div> </div> </vb:if>
<script type="text/javascript" src="http://ji.revolvermaps.com/r.js"></script><script type="text/javascript">rm_f1st('0','212','true','false','000000','8mg13fu8x4l','true','ff0000');</script><noscript><applet codebase="http://ri.revolvermaps.com/j" code="core.RE" width="212" height="212" archive="g.jar"><param name="cabbase" value="g.cab" /><param name="r" value="true" /><param name="n" value="false" /><param name="i" value="8mg13fu8x4l" /><param name="m" value="0" /><param name="s" value="212" /><param name="c" value="ff0000" /><param name="v" value="true" /><param name="b" value="000000" /><param name="rfc" value="true" /></applet></noscript>
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected ')' in /var/www/vhosts/nscale.net/httpdocs/forums/includes/adminfunctions_template.php(5217) : eval()'d code on line 1 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
|
<vb:if condition="is_member_of($bbuserinfo, 2,5,6,7,12,13)"> <div class="cms_widget"> <div class="block"> <div class="cms_widget_header"> <h3><img src="{vb:stylevar imgdir_siteicons}/html.png" alt="" /> {vb:raw widget_title}</h3> </div> <div class="cms_widget_content widget_content"> {vb:raw static_html} </div> </div> </div> </vb:if>
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also consent to the transfer of your data to our servers in the United States, where data protection laws may be different from those in your country.
Comment