PDA

View Full Version : How to Add "View Your Threads" Option to NavBar?


BENBOBBY
09-18-2009, 11:33 AM
Hi,

Im wondering if it would be possible to add a button to let users view their own threads from the navbar? Like so:


https://vborg.vbsupport.ru/external/2009/09/14.jpg



Ive seen a similar hack posted on these forums (https://vborg.vbsupport.ru/showthread.php?t=198592) which allows you to do this from the Search menu, but I dont think thats quite as obvious or convenient.

I looked at the link code from that hack;

<a href="'.$vbulletin->options['bburl'].'/search.php?'.$session['sessionurl'].'do=finduser&amp;u='.$vbulletin->userinfo['userid'].'&amp;starteronly=1">'.$vbphrase['ms_view_all_your_threads'].'</a>


Which I tried adding, but gives an error. Im a complete newbie to this stuff, would anyone be able to help me out. Or let me know if such a hack already exists.

Thanks. :)

invitezone
09-18-2009, 11:51 AM
u can use the mod above u had mentioned

then add a link in ur navbar...here's a tut on how to do that

https://vborg.vbsupport.ru/showthread.php?t=118924&highlight=navbar

BENBOBBY
09-18-2009, 12:29 PM
Hi,

Thanks for the fast reply.

Unfortuately, that is what I already tried by adding the following:


<if condition="$show[member]">
<td class="nav1"><a href="'.$vbulletin->options['bburl'].'/search.php?'.$session['sessionurl'].'do=finduser&amp;u='.$vbulletin->userinfo['userid'].'&amp;starteronly=1">Your Threads</a></td>
</if>




But gives the error:


The following error occurred when attempting to evaluate the template 'header':

This is likely caused by a malformed conditional statement.N.B. Line 94 is the code above.

In this case, unfortuately I think it may be more complicated? :erm:

Giangy94
09-18-2009, 01:59 PM
Use this ;)

<if condition="$show[member]">
<td class="nav1"><a href="'$vboptions[bburl]/search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1">Your Threads</a></td>
</if>

BENBOBBY
09-18-2009, 03:07 PM
Use this ;)

Excellent! Many Thanks Giangy :)