MyBB Community Forums

Full Version: Adding "View new posts" link?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The theme i uploaded took it away

how do i add a top link for viewing new posts/threads ?
Add this to one of the header templates:-
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a>
(2010-08-01, 11:40 AM)AJS Wrote: [ -> ]Add this to one of the header templates:-
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a>

hey thank you very much for that!!
what would the code be to add an image next to the link ?
<a href="{$mybb->settings['bburl']}/search.php?action=getnew"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.png" alt="" title="" /><b>{$lang->toplinks_search}</b></a>
ok i uploaded the imag ebut when i use that code ibf provided the image does not show up
It should be:
<a href="{$mybb->settings['bburl']}/search.php?action=getnew"><img src="{$mybb->settings['bburl']}/images/toplinks/search.png" alt="" title="" />{$lang->toplinks_search}</a>  
<a href="{$mybb->settings['bburl']}/search.php?action=getnew"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/toplinks/search.png" alt="" title="" /><b>{$lang->toplinks_search}</b></a>


Wow, massive post right here.
(2010-08-01, 05:15 PM)omgitscole Wrote: [ -> ]ok i uploaded the imag ebut when i use that code ibf provided the image does not show up

You need to edit the image location accordingly. You likely don't have search.png in /images/toplinks