XF 1.2 Not showing a thread

zooki

Active member
Licensed customer
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?
 
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.
 
Just tested it and it worked for me:
Code:
<xen:if is="!in_array({$thread.thread_id} , array(6004, 6414))">
Content
</xen:if>
 
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.
 
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;"
 
Back
Top Bottom