MyBB Community Forums

Full Version: How to change upper left menus?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello again mybb!


I would like to change the options above so that it says:

My Threads    (links to the users threads) New Posts (Same as todays posts) My Posts (Links to users posts)

I'm using 1.8.

The php is
New Posts
My Posts
My Threads numericaluserid

Thanks again.
Okay first of all I'll show you where we will change the information. It's in the header templates, follow the path below;
ACP > Templates & Style > Templates > {Choose Theme} > Header Templates > header_welcomeblock_member.

You'll be adding the following in there;

<a href="{$mybb->settings['bburl']}/search.php?action=getnew">New Posts</a>
<a href="search.php?action=finduser&amp;uid={$uid}">My Posts</a>
<a href="search.php?action=finduserthreads&amp;uid={$uid}">My Threads</a>
You may need to add <li>content</li>. Just check in the template and add as you need to.
@Nasyr I'm actually pretty sure the {$uid} part needs to be {$mybb->user['uid']}.

So instead of the links provided above use:
<a href="{$mybb->settings['bburl']}/search.php?action=getnew">New Posts</a>
<a href="search.php?action=finduser&amp;uid={$mybb->user['uid']}">My Posts</a>
<a href="search.php?action=finduserthreads&amp;uid={$mybb->user['uid']}">My Threads</a>
Thank you so much Nasyr and Nicole, you both were of great help to me. Nicole was correct about the user ID part, it works exactly how I wanted it to work.

I will now try to impliment it into my mobile site.
No problem! Good luck with the continued building process. Smile
Instead of 'getnew' I changed it to 'getdaily'. Smile