vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to add direct link to find all my posts when logged in? (https://vborg.vbsupport.ru/showthread.php?t=256604)

jpietrowiak 01-06-2011 02:20 AM

How to add direct link to find all my posts when logged in?
 
I would like to add direct link to find all my posts when logged in to VB to add to either navbar or welcome user box. Is this possible? I see I can do it by going to the search function enter my user name but would like a direct link for my forum so people can find there posts easy if they do not subscribe to them.

Thanks for any help you can provide.

Digital Jedi 01-06-2011 07:14 AM

The URL for that kind of search would be search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid].

For threads started it would be search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1.

jpietrowiak 01-06-2011 07:10 PM

That worked perfectly!! Thanks Digital Jedi

slehmann 01-12-2011 10:16 PM

Quote:

Originally Posted by Digital Jedi (Post 2144794)
The URL for that kind of search would be search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid].

For threads started it would be search.php?$session[sessionurl]do=finduser&u=$bbuserinfo[userid]&starteronly=1.

I added and thought it was working great but just realized that the one for threads started is bringing up threads that I have replied to but not started.

jpietrowiak 01-12-2011 10:49 PM

Your right Slehmann, I didn't even notice that I wonder if there is a way to do it?

Digital Jedi 01-14-2011 02:14 AM

It shouldn't. That's just a slightly tweaked version of the link from MEMBERINFO.

jpietrowiak 01-14-2011 03:04 PM

Not sure why I thought that it didn't work that day when I checked it out, but Jedi you are right. It did what you said it does. Sorry for the confusion or my loss of consciousness that day. :)

Digital Jedi 01-14-2011 06:51 PM

I've been unconscious since Tuesday. So, no worries.

slehmann 01-14-2011 10:25 PM

mine just shows replies for both. some of my users brought it to my attention.

should look like this, right?

Quote:

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$bbuserinfo[userid]&amp;starteronly=1">My Threads/<a href="search.php?$session[sessionurl]do=finduser&amp;u=$bbuserinfo[userid]">Replies</a></td>

Digital Jedi 01-14-2011 11:02 PM

Well, you never closed the first <a> tag. See the code in red? You left that out.

Code:

<td class="vbmenu_control">
  <a href="search.php?$session[sessionurl]do=finduser&amp;u=$bbuserinfo[userid]&amp;starteronly=1">My Threads</a>/
  <a href="search.php?$session[sessionurl]do=finduser&amp;u=$bbuserinfo[userid]">Replies</a>
</td>


slehmann 01-14-2011 11:49 PM

Quote:

Originally Posted by Digital Jedi (Post 2149204)
Well, you never closed the first <a> tag. See the code in red? You left that out.

Code:

<td class="vbmenu_control">
  <a href="search.php?$session[sessionurl]do=finduser&amp;u=$bbuserinfo[userid]&amp;starteronly=1">My Threads</a>/
  <a href="search.php?$session[sessionurl]do=finduser&amp;u=$bbuserinfo[userid]">Replies</a>
</td>


:o always miss the little things. I did add but it still is replies and not just threads I started.

Digital Jedi 01-15-2011 12:03 AM

Mind if I see a link to your site? Maybe a test account?

slehmann 01-15-2011 12:39 AM

<a href="http://www.fordtruckfanatics.com" target="_blank">www.fordtruckfanatics.com</a>

Digital Jedi 01-15-2011 01:55 AM

Could be the forum version your on. Try this. Check your MEMBERINFO template and look for the show posts/show thread links. Post both of those here so I can take a look at them. They look a little different to me.

slehmann 01-15-2011 01:03 PM

Code:

<td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
                                </tr>
                                <tr>
                                        <td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$userinfo[urlusername]" rel="nofollow"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>


Digital Jedi 01-15-2011 02:18 PM

Yeah, looks like thread search was different in 3.6. Try search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;e xactname=1&amp;searchuser=$bbuserinfo[urlusername]

slehmann 01-15-2011 02:33 PM

get "Invalid User specified. If you followed a valid link, please notify the administrator"

Digital Jedi 01-15-2011 03:20 PM

That should have done the trick. I just found the exact same URL posted by Wayne Luke for 3.6 back in '07. http://www.vbulletin.com/forum/showt...eads-and-posts Make sure you still don't have any typos. Other than that, it should be working, unless you've got some malformed code higher up in the page that's conflicting.

JamesC70 01-15-2011 04:53 PM

I've been using this code in my navigation bar since the 3.6.x days (and it still works on 3.8.6 PL1):

Code:

<td class="vbmenu_control">
<a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">My Threads</a> /
<a href="search.php?$session[sessionurl]do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]">My Replies</a>
</td>

The difference is $bbuserinfo[username] instead of $bbuserinfo[userid]. ;)

slehmann 01-15-2011 06:47 PM

That works.

Thanks to the both of you for your help. I really appreciate it.

Digital Jedi 01-16-2011 03:12 AM

Also be sure to change each & to &amp; for validation reasons. Looks like that one will work in 3.8 as well.

BirdOPrey5 01-16-2011 07:48 PM

Quote:

Originally Posted by slehmann (Post 2149490)
get "Invalid User specified. If you followed a valid link, please notify the administrator"

The problem was vBulletin auto-added a space to DJ's text, probably to force word wrapping... had you made "bbuserinfo" without spaces it probably would have worked.

Quote:

Originally Posted by Digital Jedi (Post 2149480)
Yeah, looks like thread search was different in 3.6. Try search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;e xactname=1&amp;searchuser=$bbuserinfo[urlusername]


Digital Jedi 01-16-2011 10:43 PM

I noticed that when I did a search this line of code, Google's search results showed mine, and a few other's code with that space also in there. But when I copied it form the thread, it pasted fine. Weird.

Simon Lloyd 01-17-2011 01:07 AM

Here's how i did it a while back guys, probably the same as you gave:
HTML Code:

<a href="http://www.thecodecage.com/forumz/search.php?$session[sessionurl]do=finduser&amp;u=$bbuserinfo[userid]" target="_parent" title="Any post you made">My Posts</a>
<a href="http://www.thecodecage.com/forumz/search.php?$session[sessionurl] do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;searchuser=$bbuserinfo[urlusername]" target="_parent" title="Any thread you started">My Threads</a>



All times are GMT. The time now is 02:26 AM.

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.01147 seconds
  • Memory Usage 1,770KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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