MyBB Community Forums
How to change upper left menus? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: How to change upper left menus? (/thread-207081.html)



How to change upper left menus? - Nemus - 2017-01-02

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 http://ontic-philosophy.com/search.php?action=getdaily
My Posts http://ontic-philosophy.com/search.php?action=finduser&uid=numericaluserid
My Threads http://ontic-philosophy.com/search.php?action=finduserthreads&uid= numericaluserid

Thanks again.


RE: How to change upper left menus? - Nasyr - 2017-01-03

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.


RE: How to change upper left menus? - Nicole-Studios - 2017-01-03

@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>



RE: How to change upper left menus? - Nemus - 2017-01-03

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.


RE: How to change upper left menus? - Nicole-Studios - 2017-01-03

No problem! Good luck with the continued building process. Smile


RE: How to change upper left menus? - Nemus - 2017-01-03

Instead of 'getnew' I changed it to 'getdaily'. Smile