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

Discussion in 'Styling and Customization Questions' started by Ji2myTran, Jun 15, 2013.

  1. Ji2myTran

    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! :)
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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>
    
     
    RoldanLT likes this.
  3. Ji2myTran

    Ji2myTran Active Member

    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!
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Not in my testing. Confirm the edits you made. Otherwise try reverting the message template.
     
    Ji2myTran likes this.
  5. Ji2myTran

    Ji2myTran Active Member

    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!
     

Share This Page