Support Forums
MyBB Header option: View your threads - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Forum Software Help (https://www.supportforums.net/forumdisplay.php?fid=49)
+---- Thread: MyBB Header option: View your threads (/showthread.php?tid=904)

Pages: 1 2


MyBB Header option: View your threads - Backslash - 10-09-2009

Hey anyone know where I can access this option? I have been looking for it.

I have my own site, which I want it for like this one.


RE: MyBB Header option: View your threads - Skill - 10-09-2009

You need to edit the template and implement it yourself.


RE: MyBB Header option: View your threads - Backslash - 10-09-2009

alright im editing it now, but my next question is what is the variable for a users ID?
anyone know what it is?


RE: MyBB Header option: View your threads - MattR - 10-09-2009

The variable for the currently logged in user is {$mybb->user['uid']}


RE: MyBB Header option: View your threads - Backslash - 10-09-2009

thanks that helped alot Smile


RE: MyBB Header option: View your threads - Grizzly - 10-10-2009

I don't know if you got this done yet or not, but, here you go:

For MyBB 1.4.x, find this snippet in
ACP -> Template -> header_welcomeblock_member

Code:
<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>  |  <a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}<br />

Add
Code:
href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$mybb->user['uid']}"> My Threads </a>  | <a href="{$mybb->settings['bburl']}/search.php?action=finduser&uid={$mybb->user['uid']}"> My Posts </a>
.

This may vary depending on the theme, but, you can really put it wherever you'd like using the code that you have to add.


RE: MyBB Header option: View your threads - eXPerience™ - 01-31-2010

For my Theme its not working Sad


RE: MyBB Header option: View your threads - MattR - 02-01-2010

Then you're not doing something right, it's just a link.


RE: MyBB Header option: View your threads - Grizzly - 02-01-2010

Yeah that code that is up there is correct, I literally copy and paste it to all the MyBB sites I've ever run.


RE: MyBB Header option: View your threads - Jordan L. - 02-01-2010

I'm vouching for Grizzly's code too. I just used it, works fine.