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

Discussion in 'Styling and Customization Questions' started by John917, Jan 10, 2015.

  1. John917

    John917 Member

  2. batpool52!

    batpool52! Well-Known Member

    Look at my below post.
     
    Last edited: Jan 10, 2015
  3. John917

    John917 Member

    hey batppool thanks
    tried using it but didn't work
    have you tried it on your forums?
     
  4. batpool52!

    batpool52! Well-Known Member

    Look at the last post of mine here.
     
    Last edited: Jan 11, 2015
  5. John917

    John917 Member

    edit* fixed on last solution.
     
    Last edited: Jan 11, 2015
  6. batpool52!

    batpool52! Well-Known Member

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

    John917 Member

    your the best thank you so much batpool!
    It works great now.

    Again thanks for being so kind. :cry:
     

Share This Page