Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

SMF "Go Up" problem

Aloittaja Jakobwolff, toukokuu 20, 2011, 07:18:37 AP

« edellinen - seuraava »

Jakobwolff

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?

Sir Osis of Liver


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.

When in Emor, do as the Snamors.
                              - D. Lister

Aleksi "Lex" Kilpinen

Hi Jakobwolff, did the edit above work for you? :)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: