"Share this Page" to top how to?

  • Thread starter Thread starter bogus
  • Start date Start date
B

bogus

Guest
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
 
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}'}" />
 
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.webp
 
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.
 
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.
 
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.
 
Top Bottom