MyBB Community Forums

Full Version: Expand View Today's Posts to View One Week's Posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
On the front page, this is a "View Today's Posts" tab. Would like to see another tab is added for "View One Week's Posts". Could this be done by users without requring software development?
No, you'd have to edit the files a bit. Either that, or install a plugin of some sort. And no, there's no plugin for this as far as I know.
The easiest way would probably be, you go to your header_welcomeblock_member template and insert the following link:

<a href="{$mybb->settings['bburl']}/search.php?action=getdaily&amp;days=7">View One Week's Posts</a>


http://community.mybb.com/search.php?act...ily&days=7
(2011-07-12, 11:19 PM)limu Wrote: [ -> ]The easiest way would probably be, you go to your header_welcomeblock_member template and insert the following link:

<a href="{$mybb->settings['bburl']}/search.php?action=getdaily&amp;days=7">View One Week's Posts</a>


http://community.mybb.com/search.php?act...ily&days=7

Thanks a lot. How do I access the file?
^ admin panel --> templates --> current templates set --> Header Templates --> header_welcomeblock_member

find code similar to below :
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a> |


after above add the code given by limu :
<a href="{$mybb->settings['bburl']}/search.php?action=getdaily&amp;days=7">View One Week's Posts</a> |
(2011-07-13, 08:54 AM)ranjani Wrote: [ -> ]^ admin panel --> templates --> current templates set --> Header Templates --> header_welcomeblock_member

find code similar to below :
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a> |


after above add the code given by limu :
<a href="{$mybb->settings['bburl']}/search.php?action=getdaily&amp;days=7">View One Week's Posts</a> |

It works! Thanks so much.

What if the description "View One Week's Post" needs to be displayed in different language, say Chinese?

^ if you already use the Chinese language then replace View One Weeks Posts with your Chinese phrase.. Smile
(2011-07-14, 04:30 AM)ranjani Wrote: [ -> ]^ if you already use the Chinese language then replace View One Weeks Posts with your Chinese phrase.. Smile

It works again! Big Grin

You are so smart, maybe you can help me with another problem. I've got Affiliate installed and followed with all the steps, but the image doesn't show up in the Affiliate box.
Which plugin are you using? And can we please have your forum's URL?
(2011-07-15, 10:13 AM)faviouz Wrote: [ -> ]Which plugin are you using? And can we please have your forum's URL?

We used Spencer's Affiliate Plugin.

Eventually, directly inserting the following codes into the affiliate section made it work:

href="http://bbs.m4.cn/portal.php" target="_blank"><img src="http://www.fengyanforum.org/forum/images/april.jpg" /></a> <a

Pages: 1 2