1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 conditional for google

Discussion in 'Styling and Customization Questions' started by jellytoe, Mar 11, 2016.

  1. jellytoe

    jellytoe Member

    I know there is a notice option for if visitor is coming from Google. Is it possible to write this into a template as a conditional?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Code:
    $visitor.from_search
     
    jellytoe likes this.
  3. jellytoe

    jellytoe Member

    <xen:if is="{$visitor.from_search}">
    ?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, that is the correct form for a conditional statement.
     
  5. jellytoe

    jellytoe Member

    Hmm it's giving me the else when I click over to the forum from Google.
     

Share This Page