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

XF 1.5 thread_view conditional not working

Discussion in 'Styling and Customization Questions' started by Beanjam, Jun 25, 2016.

  1. Beanjam

    Beanjam Active Member

    I'm making a conditional and can't seem to recognise the thread_view.

    I've also tried outputting $contentTemplate and don't get anything.

    It seems to be working ok in other templates though, should it also be working here?

    Any hints please?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    Do you literally not get anything, or do you just get an output like "NULL" displaying? Try using {xen:helper dump, $contentTemplate} instead to output the value; it makes it more clear whether anything is being output at all and what type of data is being output (if any).

    Do any changes you make to that template take effect?

    Are you editing the correct template in the correct style?

    Another possible cause is an add-on which may be modifying or replacing the template.
     
  3. Beanjam

    Beanjam Active Member

    I just tested that on a fresh install and it seems to be working above and below the messages but not in these placements.

    ad_thread_view_above_messages
    ad_message_body
    ad_message_below
    ad_thread_view_below_messages

    I am using a common helper to determine when to show the ads, so if this is expected behaviour then I'll just manually set the template passed as thread_view for these templates.
     

Share This Page