vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   View your... (https://vborg.vbsupport.ru/showthread.php?t=259105)

merk_aus 02-19-2011 04:31 AM

View your...
 
Okay so I was wondering if someone would be kind enough to help me.
I am attempting to add three links to one of my drop downs.
View YOUR Threads
View YOUR Posts
and Threads YOU have posted in.

However I continue to get stuck on what the actual URL of the link should be, everytime I attempt something it says either:
Invalid Username Specified
or
Please add more constraints to your search.

Can anyone please help me

TheLastSuperman 02-19-2011 04:38 AM

Something along these lines?

https://vborg.vbsupport.ru/showthread.php?t=230302
*View post #4 for more info, most want those added in as well ;).

merk_aus 02-19-2011 04:44 AM

Damn it, please accept my apologies TLS - I had searched however obviously I wasn't using the right terms as that post didn't even come up.

Thanks for taking the time, and sorry for looking like a newbie who cant use the search button.

TheLastSuperman 02-19-2011 04:54 AM

Quote:

Originally Posted by merk_aus (Post 2164191)
Damn it, please accept my apologies TLS - I had searched however obviously I wasn't using the right terms as that post didn't even come up.

Thanks for taking the time, and sorry for looking like a newbie who cant use the search button.

pfff no worries, I've released a mod albeit different when a similar one existed and I was none the wiser until about a month later :p.

merk_aus 02-19-2011 05:01 AM

Thanks that was very helpful (the thread) after like 3 hours of trying different lines/queries/ and anything else I can think off it was doing my head in but is all good now.

The only issue I am having now is with the View your threads and View your posts code I am using:
Code:

search.php?do=finduser&userid=&contenttype=vBForum_Post&showposts=1
And it continues to come up with:
Please add more constraints to your search. Searches that return all or most of the database are a bad idea.

^^ Because of that I feel like slapping vBulletin lol.

TheLastSuperman 02-19-2011 05:20 AM

Quote:

Originally Posted by merk_aus (Post 2164197)
Thanks that was very helpful (the thread) after like 3 hours of trying different lines/queries/ and anything else I can think off it was doing my head in but is all good now.

The only issue I am having now is with the View your threads and View your posts code I am using:
Code:

search.php?do=finduser&userid=&contenttype=vBForum_Post&showposts=1
And it continues to come up with:
Please add more constraints to your search. Searches that return all or most of the database are a bad idea.

^^ Because of that I feel like slapping vBulletin lol.

Well it feels the same way... because your not specifying which user to search all that for instead it's sloppily searching for all or none at all i.e. the message :D.

If your adding it to a drop-down in the navbar you can simply use the memberinfo codes and change from userinfo to bbuserinfo that way when you click the link it shows all your posts, if they click the same link it knows their number and finds their posts etc.

Example:

Code:

<li><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw bbuserinfo.userid}&amp;contenttype=vBForum_Post&amp;showposts=1"><img src="{vb:stylevar imgdir_siteicons}/forum.png" alt="{vb:rawphrase find_all_posts}" class="inlineimg" /> {vb:rawphrase find_all_posts}</a></li>
That will add in the little image icon you see in the profiles so for just the link use this:

Code:

<li><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw bbuserinfo.userid}&amp;contenttype=vBForum_Post&amp;showposts=1">{vb:rawphrase find_all_posts}</a></li>
See if that helps and remember it needs something to search for not everything :cool:.


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