cjwinternet
Active member
Hi. I'm trying to display a message for the thread starter, prompting them to share the post to facebook.
I've tried posting it as a Notice, that doesn't work.
I've created a template for the text "Share_to_FB_for_OP"
So I tried inserting the following code directly into the thread_view template...
I would have thought that this would calculate when the visitor was the thread starter, whether the thread was started in forums 1,3, or 5, and for testing, whether that user was an admin.
However I get the following message "Line 85: Syntax error - Template name: public:thread_view"


Any help would be appreciated, thanks.
I've tried posting it as a Notice, that doesn't work.
I've created a template for the text "Share_to_FB_for_OP"
So I tried inserting the following code directly into the thread_view template...
Code:
<xf:if is="{$visitor.user_id} == {$thread.user_id}" && "{$post.position} == 0" && "in_array({$forum.node_id}, [1, 3, 5])" && "$xf.visitor.is_admin">
<xf:message template="Share_to_FB_for_OP" />
</xf:if>
I would have thought that this would calculate when the visitor was the thread starter, whether the thread was started in forums 1,3, or 5, and for testing, whether that user was an admin.
However I get the following message "Line 85: Syntax error - Template name: public:thread_view"


Any help would be appreciated, thanks.