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

Anyway to change post #1 url to include /#post-___ ?

batpool52!

Well-known member
#6
Open template "post"
Find:
HTML:
<a href="{xen:link threads/post-permalink, $thread, 'post={$post}'}" title="{xen:phrase permalink}" class="item muted postNumber hashPermalink OverlayTrigger" data-href="{xen:link posts/permalink, $post}">#{xen:calc '{$post.position} + 1'}</a>
Replace with
Code:
<xen:if is="{$post.position} == 0">
      <a href="{xen:link threads, $thread}#post-{$post.post_id}" title="{xen:phrase permalink}" class="item muted postNumber hashPermalink OverlayTrigger" data-href="{xen:link posts/permalink, $post}">#{xen:calc '{$post.position} + 1'}</a>
      <xen:else />
      <a href="{xen:link threads/post-permalink, $thread, 'post={$post}'}" title="{xen:phrase permalink}" class="item muted postNumber hashPermalink OverlayTrigger" data-href="{xen:link posts/permalink, $post}">#{xen:calc '{$post.position} + 1'}</a>
      </xen:if>