PDA

View Full Version : View your...


merk_aus
02-19-2011, 04:31 AM
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
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:
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
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:
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:

<li><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw bbuserinfo.userid}&amp;contenttype=vBForum_Post&amp;showpo sts=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:

<li><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw bbuserinfo.userid}&amp;contenttype=vBForum_Post&amp;showpo sts=1">{vb:rawphrase find_all_posts}</a></li>

See if that helps and remember it needs something to search for not everything :cool:.