Template-CSS Mod Latest Posts Links

effoneDesigner
#1
This will add two predefined custom search page to your header quick links which are very useful, but is absent to some themes ...

1. New Posts
2. Today's Post

[Image: PIcPg.png]

Go to ACP > Templates & Style > Templates > /Your theme/ Templates > Header Templates > header

Find the line:
PHP Code:
<li><a href="{$mybb->settings['bburl']}/search.php">{$lang->toplinks_search}</a></li

After that, add:

PHP Code:
<li><a href="{$mybb->settings['bburl']}/search.php?action=getnew">New Posts</a></li>
<
li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">Today's Posts</a></li> 

You'll have two pre-defined custom search preset buttons right on your header quick links.

Note: You can add suitble icons (if your theme has icons on quick links) inserting the following tag before the link titles, modifying suitably:

PHP Code:
<img src="images/post.png" alt="" title="" /> 

Make sure the icon images are available at the path you are specifying, you can use full url of externally hosted image links too.

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PHP / Core Edit]  Adding "View New Posts" and "View Today's Posts" in Forum Jump List effone 1 1,515 01-29-2013, 06:03 PM
Last Post: piXiq