vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Link for users to view their own posts (https://vborg.vbsupport.ru/showthread.php?t=326702)

salvador21 09-04-2018 07:45 AM

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!

Stratis 09-04-2018 08:14 AM

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

z3r0 09-04-2018 09:55 AM

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

Kane@airrifle 09-04-2018 10:01 AM

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

Works on 4.2.5

salvador21 09-05-2018 10:28 AM

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.

Stratis 09-05-2018 04:12 PM

Quote:

Originally Posted by salvador21 (Post 2596239)
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

salvador21 09-05-2018 04:19 PM

Quote:

Originally Posted by Stratis (Post 2596249)
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


All times are GMT. The time now is 07:06 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.01146 seconds
  • Memory Usage 1,731KB
  • 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
  • (7)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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