Jump to the post that solved this thread.
Solved: 4 Years, 8 Months, 1 Week ago How to change upper left menus?
#1
Solved: 4 Years, 8 Months, 1 Week ago
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?a...icaluserid
My Threads http://ontic-philosophy.com/search.php?a...hreads&uid= numericaluserid

Thanks again.
Reply
#2
Solved: 4 Years, 8 Months, 1 Week ago
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.
Check out all my submissions here - click me
MyBB support at it's finest. 
Reply
#3
Solved: 4 Years, 8 Months, 1 Week ago
@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>
Reply
#4
Solved: 4 Years, 8 Months, 1 Week ago
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.
Reply
#5
Solved: 4 Years, 8 Months, 1 Week ago
No problem! Good luck with the continued building process. Smile
Reply
#6
Solved: 4 Years, 8 Months, 1 Week ago
Instead of 'getnew' I changed it to 'getdaily'. Smile
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)