Announcement

Collapse
No announcement yet.

Postbit conditional question

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

  • Postbit conditional question

    I have been using this conditional
    Code:
    $vbulletin->products['vbblog']
    in the header of my forum to add a custom navigation when the blog is installed and is working perfectly.

    The issue is when I use the same conditional in the postbit to add extra content when the blog is installed nothing happen.

    Is there a special conditional that i could use in the postbit other than

    Code:
    <if condition="$vbulletin->products['vbblog']">
    Thanks for any help

  • #2
    After further testing and looking at the blog plugins i found this conditional that is working in the postbit.

    Code:
    <if condition="$post['entries'] > 0">

    My question is...does anyone know if this is the correct the most efficient way to use it?

    Cheers,
    Miko

    Comment


    • #3
      You probably need to this $this->registry->products['vbblog'] in the postbit template if you want content to appear for everyone. $post['entries'] would only apply to this who have posted entries.

      Comment


      • #4
        Originally posted by Freddie Bingham View Post
        You probably need to this $this->registry->products['vbblog'] in the postbit template if you want content to appear for everyone. $post['entries'] would only apply to this who have posted entries.

        Thank you Freddie

        Comment

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