Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: rakuli on March 30, 2005, 06:31:41 AM

Title: Top anchor after each post.
Post by: rakuli on March 30, 2005, 06:31:41 AM
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
Title: Re: Top anchor after each post.
Post by: husmen73 (Gulhin) on May 24, 2006, 11:30:26 AM
image???


Thanks ;)
Title: Re: Top anchor after each post.
Post by: Vinspire on May 27, 2006, 03:06:09 AM
Quote from: husmen73 on May 24, 2006, 11:30:26 AM
image???


Thanks ;)

yeap. image plz :)
Title: Re: Top anchor after each post.
Post by: nitecrawler on May 28, 2006, 03:11:03 AM
nice one. Thanks. :)
Title: Re: Top anchor after each post.
Post by: rakuli on June 16, 2006, 09:26:48 AM
Image??

I'm not sure what you mean. You want a screenshot?
Title: Re: Top anchor after each post.
Post by: nitecrawler on June 19, 2006, 08:21:59 AM
Maybe they meant an icon similar to that showing various messenger IDs, email, website etc instead of a textual top link. Not sure!
Title: Re: Top anchor after each post.
Post by: onijin on June 21, 2006, 09:33:17 AM
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.
Title: Re: Top anchor after each post.
Post by: Jade Elizabeth on November 04, 2007, 01:59:17 AM
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 :(