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

XF 1.3 Conditional Help for showing something to only visitors and in two areas only

Discussion in 'Styling and Customization Questions' started by SatGuyScott, May 20, 2014.

  1. SatGuyScott

    SatGuyScott Active Member

    Hi there,

    Newbie here...

    How do I show something so that it is only shown to Guests and is only shown in the Main Forum List and Thread List only? I want to use the template ad_above_top_breadcrumb to place a registration graphic.

    Thank you!
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. SatGuyScott

    SatGuyScott Active Member

    Yeah I looked at the guide and I can't figure out how to do both as one conditional or what the conditionals would be for the Forum List and Thread List pages.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    <xen:if is="!{$visitor.user_id} AND in_array({$contentTemplate}, array('forum_list', 'forum_view'))">
  5. SatGuyScott

    SatGuyScott Active Member

    Thank you Brogan!

    One more dumb question if I may... Is there a list of the pages or are those (forum_list and forum_view) names of Templates.

    Sorry coming over from vBulletin, but learning quick. :)

    Thanks again!
  6. Brogan

    Brogan XenForo Moderator Staff Member

  7. SatGuyScott

    SatGuyScott Active Member

    Great that you again!

Share This Page