Quote:
Originally Posted by merk_aus
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

.
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&userid={vb:raw bbuserinfo.userid}&contenttype=vBForum_Post&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&userid={vb:raw bbuserinfo.userid}&contenttype=vBForum_Post&showposts=1">{vb:rawphrase find_all_posts}</a></li>
See if that helps and remember it needs something to search for not everything

.