RSS Feed/News Trying to show a message to the thread starter...

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,511
Points
823

Reputation:

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...

Code:

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...

Read more

Continue reading...
 
Status
Not open for further replies.
Top