Is it possible to restrict access to static html CMS-widget to a single usergroup - and how is it done?
Adding permissions to static html CMS-widget?
Collapse
X
-
Tags: None
-
Copy the vbcms_widget_static_page template and rename it to something else. Put a condition around the contents to only show it to that certain usergroup (there is an article on vbulletin.org on conditions). Then, configure the widget and enter that new template name into the Template Name part of the configuration screen.
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css help -
So I haveCode:<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>
Code:<vb:if condition="is_member_of($bbuserinfo, 20)">
Comment
-
The template would just look like this:
HTML Code:<vb:if condition="is_member_of($bbuserinfo, 20)"> <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>
Please don't PM or VM me for support - I only help out in the threads.
vBulletin Manual & vBulletin 4.0 Code Documentation (API)
Want help modifying your vbulletin forum? Head on over to vbulletin.org
If I post CSS and you don't know where it goes, throw it into the additional.css template.
W3Schools <- awesome site for html/css helpComment
Related Topics
Collapse
-
by CSGILLThis was really annoying me, so I hacked away at it until I figured it out... not sure if this belongs on .org instead of here, but figured more people would search here first (as I did).
...-
Channel: vBulletin 5 Tutorials
-
-
by habiliHello, i want to put Telegram logo in left corner of forum and i wrote its HTML code :
PHP Code:<div style="position: fixed; left: 0px; bottom: 0px; z-index: 300;"> <a href="https://t.me/linuxzone"
-
Channel: Support Issues & Questions
-
-
by imgnrmHello,
Is there any ways to remove the below info in Profile?
contact information(messenger Use option)
Web info
Please let me know.
Thank you-
Channel: Support Issues & Questions
-
-
I have installed vbulletin here: http://yourlegaljustice.com/forum/
I can activate site builder and get the links to appear. However aside from the AdminCP all the links point to "#"...-
Channel: Support Issues & Questions
-
Comment