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

XF 1.2 Not showing a thread

Discussion in 'XenForo Questions and Support' started by zooki, Aug 26, 2013.

  1. zooki

    zooki Active Member

    I have this as a template modification, it is meant to filter the thread so it does not show google adverts:

    Code:
    <xen:if is="{$thread.thread_id} != 60003">
    
    What is the correct way of adding more threads that should not have google adverts? Do I just put a comma next to the threadID and keep listing stuff?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. zooki

    zooki Active Member

    Code:
    <xen:if is="!in_array({$thread.thread_id} , array(60003, 91385))">
    
    I added this line, and it is closed with </xen:if>

    But, I get error. It won't save in template modifications.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Just tested it and it worked for me:
    Code:
    <xen:if is="!in_array({$thread.thread_id} , array(6004, 6414))">
    Content
    </xen:if>
     
  5. zooki

    zooki Active Member

    It seems like a problem with my site. If I try and save it comes up with error. Similarly even if i try to delete a template modification. Won't save any modifications. - Connection Timed Out. I spoke to my host , they said it is not their problem.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Try editing the template directly, rather than using the TM system.
     
  7. zooki

    zooki Active Member

    I have to Untick the TM system for the template in order to edit it directly, but, it won't let me do that. I can not remove / revert modification either.

    " Lock wait timeout exceeded;"
     
  8. zooki

    zooki Active Member

    Sorry I am using Xenforo 1.1.5
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    I don't use the TMS add-on so I can't help.
     

Share This Page