vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to Add "View Your Threads" Option to NavBar? (https://vborg.vbsupport.ru/showthread.php?t=223513)

BENBOBBY 09-18-2009 11:33 AM

How to Add "View Your Threads" Option to NavBar?
 
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;

Code:

<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/showthrea...ghlight=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:

Quote:

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

Quote:

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 ;)

Quote:

<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

Quote:

Originally Posted by Giangy94 (Post 1886986)
Use this ;)

Excellent! Many Thanks Giangy :)


All times are GMT. The time now is 02:42 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01060 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete