Moving Share Page To First Post Bottom Right

Ji2myTran

Active member
Hi Guys,

Anyone know how to move the share page to first post bottom right? (after the contents of first post and above the signature area) ?

Thanks! :)
 
Remove this code from the thread_view template:

Code:
<xen:include template="share_page">
	<xen:set var="$url">{xen:link 'canonical:threads', $thread}</xen:set>
</xen:include>

Then edit the post template and change the $messageContentAfterTemplate var to include that share code, plus a condition to limit it to the first post:

Rich (BB code):
	<xen:set var="$messageContentAfterTemplate">
		<xen:if is="{$post.attachments}"><xen:include template="attached_files" /></xen:if>

		<xen:if is="{$post.position} == 0">
			<xen:include template="share_page">
				<xen:set var="$url">{xen:link 'canonical:threads', $thread}</xen:set>
			</xen:include>
		</xen:if>
	</xen:set>
 
  • Like
Reactions: rdn
Hi Jake,

Thank you for your support. However, the share_page is still under the signature.

By the way, here is my facebook button:

Myfb.webp

But i saw some other forums it is like this:

otherfb.webp

How can i design the facebook buttom just like above screenshot?

Thanks!
 
Ah, i'm using an Add-on that might affected to the changes. But it is okay now, thanks Jake.

For the design of facebook "Like" button as my above concern, do u have any ideals about it?

Thanks!
 
Back
Top Bottom