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

XF 1.4 Exclude Prefixes as Part of the Link

Discussion in 'Styling and Customization Questions' started by Amaury, Sep 16, 2014.

  1. Amaury

    Amaury Well-Known Member

    This is something I previously reported as a bug here, though it was marked Not a Bug, because it was inconsistent since on the discussion list, for example, prefixes aren't part of the links.

    Anyway, on the Recent Activity page, under Recent Activity on profiles, and under Postings on profiles (I think those are it unless I'm missing anything), the prefixes are part of the links. How can I change that so only the thread title is part of the link?

    Here's an example:



    Edit: It looks like alerts is another one.
    Last edited: Sep 17, 2014
  2. Amaury

    Amaury Well-Known Member

    Still looking for some help here. :)
  3. Amaury

    Amaury Well-Known Member

    This was resolved a very long time ago by @mike406. A while ago, though, I figured out what changes he made and am implementing them in the new revised styles I'm making.

    For anyone else who wants prefixes to not be part of the link, do a template search for {xen:helper threadPrefix, $content}. The search should bring back nine templates, counting only core templates. Simply move the prefix code outside of the a href in each template.

    So, for example, in the alert_post_insert template, change this:

    'title=<a href="{xen:link posts, $content}" class="PopupItemLink">{xen:helper threadPrefix, $content}{$content.title}</a>'}
    To this:

    'title={xen:helper threadPrefix, $content}<a href="{xen:link posts, $content}" class="PopupItemLink">{$content.title}</a>'}

Share This Page