• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Change thread titles in thread view into URL links

Brogan

XenForo moderator
Staff member
#1
Open the thread_view template.

Find this on the second line:
HTML:
<xen:h1>{xen:helper threadPrefix, $thread}{$thread.title}</xen:h1>
Replace with this:
HTML:
<xen:h1><a href="{xen:link threads, $thread}">{xen:helper threadPrefix, $thread}{$thread.title}</a></xen:h1>
This does exactly the same as clicking the thread creation date so it is a bit superfluous in that respect but it might make it easier for some.

So in the case of this thread it would make the following text into a URL link:
Change thread titles in thread view into URL links

thread_view.PNG
 

ddmmh

Well-known member
#3
Hi Brogan,

Just to clarify... this mod will basically take you to the first post everytime you click the thread title instead of taking you to the most recent post?
 

Brogan

XenForo moderator
Staff member
#5
Just to clarify... this mod will basically take you to the first post everytime you click the thread title instead of taking you to the most recent post?
As Mikey posted above, it just changes the thread title when in this view to a url link.
I've added a screenshot to the first post to clear up any confusion.
 

ddmmh

Well-known member
#6
As Mikey posted above, it just changes the thread title when in this view to a url link.
I've added a screenshot to the first post to clear up any confusion.
Hi Brogan,

Thanks. I realise now the "thread view" not "forum view" part lol. 3:30am... think its bed time.... cheers
 

DRE

Well-known member
#8
Er... Instead of

HTML:
<xen:h1>{$thread.title}</xen:h1>
With 1.1 it now looks like this:

HTML:
<xen:h1>{xen:helper threadPrefix, $thread}{$thread.title}</xen:h1>
so instead of this:

HTML:
<xen:h1><a href="{xen:link threads, $thread}">{$thread.title}</a></xen:h1>
make it this?

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

Kier

XenForo Developer
Staff member
#10
FWIW, clicking the date in the thread description under the title will always take you to the first post too.