Log in

View Full Version : When viewing a thread....


Takamine334
10-17-2004, 03:56 PM
Can you default when you view a thread to the end of the thread? Is this possible?

marklar
10-19-2004, 08:08 AM
I'm not sure exactly were the bit of code is but it will be in the template that shows each thread in the list.

When you click on the title of the thread you go to the top of the thread, but if you click the arrow in the last post column you go to the last post in that thread so you need to find that code in the template and copy it to the other link.

marklar
10-19-2004, 08:47 AM
Ok, you intrigued me so I looked.

The code is in the 'threadbit' template. This is the code for the thread title link:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>

All you need to do is add the bit in bold here:

<a href="showthread.php?$session[sessionurl] goto=lastpost&amp;t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>