• 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

zooki

Active member
#1
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?
 

zooki

Active member
#3
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.
 

Brogan

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

zooki

Active member
#5
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.
 

zooki

Active member
#7
Try editing the template directly, rather than using the TM system.
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;"