CMS Widget for Guests and for Members

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baerwurz
    Member
    • Jan 2006
    • 57
    • 3.8.x

    [CMS] CMS Widget for Guests and for Members

    Hi i have two video Codes which i want display in a cms html widget.
    • Video for Guest should be autoplay
    • Video for Members should be push to play
    So i have two different Codes.

    <vb:if condition="$show['guest']">
    Code A for Guests
    <vb:else />
    Code B for Members
    </vb:if>

    The conditionals would not work in the html widget.

    So i have created a widget and changed the template name the widget uses to: vbcms_widget_video

    Now i have created a template called: vbcms_widget_video

    In this template i have coppied this code:

    <vb:if condition="$show['guest']">
    Code A for Guests
    <vb:else />
    Code B for Members
    </vb:if>

    But there is nothing showing up? Not for guests and not for members?

    Anybody an idea how i can get this to work, or what i am doing wrong?
    Onlinekredit | Fussball | Fußball Community
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    I just used that code in a custom template for a widget that I have an it works just fine. Exactly what are you getting as output? (Mine is actually a php widget. I could test on an html widget if needed.)

    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 &lt;- awesome site for html/css help

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...