XF 2.0 add a link to post title

As part of the thread? Short answer is that you can't.

You would need to edit thread_view in some way to fit your needs, though I'm not really sure what you're trying to do. This sort of thing would usually go in the post content.
 
Thanks Mike For you reply and sorry for my bad english :)
-----------------------------
the title of any post is just a text .. i want the title post have a hyperlink like that ( https://xenforo.com/community/threads/add-a-link-to-post-title.141077/#post-1213366 )

for the xf1.5 i change the code in thread_view

Code:
<xen:h1><a href="{xen:link threads, $thread}">{xen:helper threadPrefix, $thread}{$thread.title}</a></xen:h1>

but in the XF2 i found this code but i don't know how can i change it

Code:
<xf:h1>{{ prefix('thread', $thread) }}{$thread.title}</xf:h1>
 
Do this:

Edit thred_view template

Change this:
PHP:
<xf:h1>{{ prefix('thread', $thread) }}{$thread.title}</xf:h1>

By:
PHP:
<xf:h1><a href="{{ link('threads', $thread) }}">{{ prefix('thread', $thread) }}{$thread.title}</a></xf:h1>

Good luck 👍
 
Top Bottom