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

Moving Share Page To First Post Bottom Right

#1
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! :)
 

Jake Bunce

XenForo moderator
Staff member
#2
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:

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>
 
#3
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.jpg

But i saw some other forums it is like this:

otherfb.jpg

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

Thanks!
 
#5
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!