Announcement

Collapse
No announcement yet.

Widgets based on style basis.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [CMS] Widgets based on style basis.

    Is there some sort of way to assign widgets on a theme basis? For instance we assign widget "X" to the default style thus making it only visible to users of the specified default style.

  • #2
    ...

    Help please?

    Comment


    • #3
      There is no built in way to do this.

      You might get close if you edit the widget templates and put all the code in a template conditional, set to show based on the style selected.

      All widgets would need to be in the layout but they would be hidden based on the conditions you set.

      A template conditional looks like this:

      Code:
      <vb:if condition="$bbuserinfo['styleid'] == 3">
      --code to show to style id 3 only--
      </vb:if>
      For more info on template conditionals and custom templates please check out vbulletin.org. I know there is a good article in the VB4 Articles section on template conditionals.

      Comment


      • #4
        Thanks a bunch!

        Comment

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