Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: rakuli in März 30, 2005, 06:31:41 VORMITTAG

Titel: Top anchor after each post.
Beitrag von: rakuli in März 30, 2005, 06:31:41 VORMITTAG
Hi,
I am pretty sure someone would have done this before but I think it makes it a tad easier to navigate the forum.

in display.template.php I found
// Show the post itself, finally!
echo '
</td>
       </tr></table>
<hr width="100%" size="1" class="hrcolor" />', $message['body'],  '
</td>
</tr>';

And added
<br /><br /><a href="#">Top</a>
after
$message['body'].
It just adds a nice simple anchor to the top after each post. My forum has max 15 posts per page and if they are long posts it can take a bit of scrolling to get to the buttons on the forum.

Hope someone finds it useful.  :D
Titel: Re: Top anchor after each post.
Beitrag von: husmen73 (Gulhin) in Mai 24, 2006, 11:30:26 VORMITTAG
image???


Thanks ;)
Titel: Re: Top anchor after each post.
Beitrag von: Vinspire in Mai 27, 2006, 03:06:09 VORMITTAG
Zitat von: husmen73 in Mai 24, 2006, 11:30:26 VORMITTAG
image???


Thanks ;)

yeap. image plz :)
Titel: Re: Top anchor after each post.
Beitrag von: nitecrawler in Mai 28, 2006, 03:11:03 VORMITTAG
nice one. Thanks. :)
Titel: Re: Top anchor after each post.
Beitrag von: rakuli in Juni 16, 2006, 09:26:48 VORMITTAG
Image??

I'm not sure what you mean. You want a screenshot?
Titel: Re: Top anchor after each post.
Beitrag von: nitecrawler in Juni 19, 2006, 08:21:59 VORMITTAG
Maybe they meant an icon similar to that showing various messenger IDs, email, website etc instead of a textual top link. Not sure!
Titel: Re: Top anchor after each post.
Beitrag von: onijin in Juni 21, 2006, 09:33:17 VORMITTAG
works great~

however, I changed the location to under the post date and changed the "#" to "#top"


thanx for this tid bit.  Never thought of it.
Titel: Re: Top anchor after each post.
Beitrag von: Jade Elizabeth in November 04, 2007, 01:59:17 VORMITTAG
how can i make this work with 1.1.4? cause i did try it but it doesnt work, and i played with it for a bit but it still wont work :(