I need to create a condition "if is not blog"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • galerio
    Member
    • Jan 2011
    • 60

    I need to create a condition "if is not blog"

    I'm creating a plugin to inject some java to header, but I want that this java is loaded only to forum and cms, not to blog and not to registered user.

    To exclude registered user I have:
    Code:
    if ($vbulletin->userinfo['usergroupid'] == 1)
    { etc etc etc
    But to exclude all pages in blog?
    I need something like "if (!is_blog)" ...

    Can you help me?
  • punchbowl
    Senior Member
    • Nov 2006
    • 3903
    • 4.0.x

    #2
    Code:
    <vb:if condition="THIS_SCRIPT != 'blog'">
    is the conditional. It's probably $THIS_SCRIPT in a plugin. I'm not sure

    Comment

    • galerio
      Member
      • Jan 2011
      • 60

      #3
      Thanks, I'll try

      edit:
      yeah, it works. Thank you.

      Comment

      Related Topics

      Collapse

      Working...