Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: Jakobwolff - toukokuu 20, 2011, 07:18:37 AP

Otsikko: SMF "Go Up" problem
Kirjoitti: Jakobwolff - toukokuu 20, 2011, 07:18:37 AP
When i am at the buttom of a topic i will like the "Go Up" to take me to the top of the forum topic (where the banner are), not just the first post in the topic

How do i fix that?
Otsikko: Re: SMF "Go Up" problem
Kirjoitti: Sir Osis of Liver - toukokuu 20, 2011, 08:35:01 IP

In Display.template.php, look for #top, and find this -



<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>




Change it to this -



<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' &nbsp;&nbsp;<a href="http://www.yoursite.com/yoursmfdirectory/index.php?topic=' . $context['current_topic'] . '.msg' . $context['first_message'] . '#new"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>



Think that's right - try it and let me know.

Otsikko: Re: SMF "Go Up" problem
Kirjoitti: Aleksi "Lex" Kilpinen - kesäkuu 14, 2011, 12:59:26 AP
Hi Jakobwolff, did the edit above work for you? :)