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

"Share this Page" to top how to?

B

bogus

Guest
#1
Hi there. I would like to get "Share This Page" to the top of a Thread instead of having it to the bottom.
Position should be directly under

Thread Title
Discussion in 'Title' started by Nick, Date

I have tried a few things but i always destroy the template ;)
Thanks for your help
 

Brogan

XenForo moderator
Staff member
#2
Move the share page code to between the xen:raw and the hook in the thread_view template.

Code:
{xen:raw $threadStatusHtml}

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

<xen:hook name="thread_view_pagenav_before" params="{xen:array 'thread={$thread}'}" />
 
B

bogus

Guest
#3
Thank You ;)

Edit: Looks like i have to add the share_page Template code into the thread_view Template, cause there is this "gap" Probably because of the share_page divs?

Unbenannt.jpg
 

Brogan

XenForo moderator
Staff member
#4
The thread_view template is the correct one.

The gap you refer to is for pagination.
Check a thread with multiple pages and you will see how it looks.
 

Barbossa

Active member
#6
Move the share page code to between the xen:raw and the hook in the thread_view template.

Code:
{xen:raw $threadStatusHtml}
 
<xen:include template="share_page">
<xen:set var="$url">{xen:link 'canonical:threads', $thread}</xen:set>
</xen:include>
 
<xen:hook name="thread_view_pagenav_before" params="{xen:array 'thread={$thread}'}" />
How can I exclude this one from few nods? I mean I got specific some forums threads that I don't want let my user to share this.
 
#11
Copy brogans exact code and paste it in between:

{xen:raw $threadStatusHtml}

Code

<xen:hook name="thread_view_pagenav_before" params="{xen:array 'thread={$thread}'}" />

Simple as that.