• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

template of "posts"?

Claudio

Well-known member
#1
I want to insert a script only into messages, so I want to ask which is the template of all posts...

I mean, the script works in this way:
<script>
Text of the post
</script>

Is {xen:raw $message.messageHtml} the message in the post?
 

Jake Bunce

XenForo moderator
Staff member
#2
Is {xen:raw $message.messageHtml} the message in the post?
Yep.

Admin CP -> Appearance -> Templates -> message

Code:
		<xen:hook name="message_content" params="{xen:array 'message={$message}'}">
		<div class="messageContent">		
			<article>
				<blockquote class="messageText ugc baseHtml{xen:if $message.isIgnored, ' ignored'}">
					<xen:include template="ad_message_body" />
					{xen:raw $message.messageHtml}
				</blockquote>
			</article>
			
			{xen:raw $messageContentAfterTemplate}
		</div>
		</xen:hook>