Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 09-04-2018, 07:45 AM
salvador21 salvador21 is offline
 
Join Date: Mar 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Link for users to view their own posts

I wish to create a link for logged in users that I will add to the navigation bar so that instead of having to go to their own profile to find latest posts, they can just click on that menu item.

Can someone tell me please if this is possible, and if so what link I would need for (a)own posts and (b) own threads.

I did find a thread on vbulletin.com, which I thought might be the answer in posts #2 and #6

https://www.vbulletin.com/forum/foru...ew-your-topics

However the link given there was
Code:
search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw bbuserinfo.userid}&contenttype=vBForum_Post&showposts=0
and this just appears to link to the Advanced search.

Any help gratefully received, thanks!
Reply With Quote
  #2  
Old 09-04-2018, 08:14 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try these

Threads
Code:
search.php?{session.sessionurl}do=finduser&userid={session.userid}&starteronly=1&contenttype=vBForum_Thread
Posts
Code:
search.php?{session.sessionurl}do=finduser&userid={session.userid}&contenttype=vB Forum_Post&showposts=1
--------------- Added 04 Sep 2018 at 13:19 ---------------




EDIT

These work for me, the above are wrong, sorry
Code:
search.php?do=finduser&userid=1&starteronly=1&contenttype=vBForum_Thread
Code:
search.php?do=finduser&userid=1&contenttype=vB%20Forum_Post&showposts=1
Reply With Quote
  #3  
Old 09-04-2018, 09:55 AM
z3r0's Avatar
z3r0 z3r0 is offline
 
Join Date: Apr 2005
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this on my sites

My Posts
Code:
search.php?do=finduser&userid={bbuserinfo.userid}&contenttype=vBForum_Post &showposts=1
My Threads
Code:
search.php?do=finduser&userid={bbuserinfo.userid}&starteronly=1&contenttype=vBForum_Thread
Reply With Quote
  #4  
Old 09-04-2018, 10:01 AM
Kane@airrifle's Avatar
Kane@airrifle Kane@airrifle is offline
 
Join Date: Jun 2011
Location: ZA
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Been using this plugin for years: https://vborg.vbsupport.ru/showthread.php?t=229027

Works on 4.2.5
Reply With Quote
  #5  
Old 09-05-2018, 10:28 AM
salvador21 salvador21 is offline
 
Join Date: Mar 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks everyone

@Stratis your revised links just give me one thread in the search results (out of thousands) and it isn't a thread I posted in!

@z3ro

Your links gives me Please add more constraints to your search. Searches that return all or most of the database are a bad idea.

Kane, thanks that would be useful but I don't have permissions to install plugins on this forum.
Reply With Quote
  #6  
Old 09-05-2018, 04:12 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by salvador21 View Post
Thanks everyone

@Stratis your revised links just give me one thread in the search results (out of thousands) and it isn't a thread I posted in!

Yes you are right, maybe because it has the user id 1


search.php?do=finduser&userid=1&starteronly=1&contenttype=vBForum_Thread
Reply With Quote
  #7  
Old 09-05-2018, 04:19 PM
salvador21 salvador21 is offline
 
Join Date: Mar 2009
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stratis View Post
Yes you are right, maybe because it has the user id 1


search.php?do=finduser&userid=1&starteronly=1&contenttype=vBForum_Thread
many thanks, but now I get this:

Please add more constraints to your search. Searches that return all or most of the database are a bad idea.


--------------- Added [DATE]1536228533[/DATE] at [TIME]1536228533[/TIME] ---------------

I wonder if part of the issue is that we are on 4.2.3

It has been very difficult trying to persuade the owners to update to the latest which I think is 4.2.5
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04898 seconds
  • Memory Usage 2,215KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (7)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete