I created a new html widget but I only want it viewable to registered members. Can I do this? If so, how?
Announcement
Collapse
No announcement yet.
Block access to widget for guests
Collapse
X
-
This is a perfect example of a use for a template conditional. Make a new template in admincp > styles & templates > style manager. The template contents below should work. The red is the part that decides where to show, because not-logged-in users will have id = 0.
<vb:if condition="$bbuserinfo['userid'] > 0">
<div class="cms_widget">
<div class="block">
<div class="cms_widget_header">
<h3>{vb:raw widget_title}</h3>
</div>
<div class="cms_widget_content restore">
{vb:raw static_html}
</div>
</div>
</div>
</vb:if>Please- I'm not tech support. Don't send your problem reports to me unless I've asked you to.
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
Thu 8 Jan '15, 10:23pm -
-
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
Fri 31 Aug '18, 2:52pm -
-
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
Fri 2 Mar '18, 8:05am -
Comment