09-19-2015, 01:03 AM
Hi All,
I've just installed the 'template conditionals' plugin. I want to use it to display certain buttons only on the first post of a thread, in a new bar just above the Post Controls bar.
My code, which I've added to the sub-forum postbit template, looks like:
Turns out it's whitespace sensitive. Needs to be:
I do have one more question:
Where is the 'post_controls' class assigned its layout? Is it in a .css file or in the template somewhere? I tried a full directory search and couldn't find it.
Cheers!
I've just installed the 'template conditionals' plugin. I want to use it to display certain buttons only on the first post of a thread, in a new bar just above the Post Controls bar.
My code, which I've added to the sub-forum postbit template, looks like:
Code:
|
My browser says "Content Encoding Error" when I try to open this page. Why is this?
Also is this the right way to implement this functionality, or is there a better way that keeps functional code out of the templates?
Cheers!
Turns out it's whitespace sensitive. Needs to be:
Code:
|
I do have one more question:
Where is the 'post_controls' class assigned its layout? Is it in a .css file or in the template somewhere? I tried a full directory search and couldn't find it.
Cheers!