PDA

View Full Version : Help with profile tab content


jagtpf
01-13-2016, 08:27 AM
I have created an extra tab on member profile into which I would like to place the results of Forum searches. The search routine, however, takes the results outside of the tab window.
Can anyone guide me on how to keep the result inside the window?

I've followed cellarius' "adding a tab in member profile" ...

Currently I have
$poems_tab_content = '<a href="http://localhost/poets/search.php?do=finduser&user ..... etc
firing within the plugin.

(There is nothing added to the basic template contents [as per the article]).

warmly

Geoff

cellarius
01-13-2016, 09:17 AM
You can't capture a search result in that way. You'd have to write your own mysql search query.

jagtpf
01-13-2016, 12:01 PM
You can't capture a search result in that way. You'd have to write your own mysql search query.

Ok.

Thank you ...

jagtpf
01-15-2016, 02:22 PM
Funny...

Thought I had added another post under this thread ..... ?

--------------- Added 1452877994 at 1452877994 ---------------

Why is this :


localhost/poets/search.php?do=searchuser&userid=xxxxxx&titleonly=1&starteronly=1&exactname=1&searchdate=0&sortby=threadstartdate&order=descending&showposts=0&contenttype=vBForum_thread&forumchoice[]=189&childforums=0


ignoring 'forumchoice[]=189' - and resulting in all "xxxxx"'s posts/VMs etc across the Forum ....

I'm, obviously, missing something fairly basic with this structure .

warmly

Geoff

Gio~Logist
01-16-2016, 07:30 PM
You don't need everything you put, actually.

So, instead of contenttype, you're fine with just contenttypeid.

This would work:
search.php?do=finduser&userid=XXXXX&starteronly=1&forumchoice[]=YYYY&contenttypeid=1

Also, while testing, you can add &nocache=1 this way you get new results and it isn't cached.

jagtpf
01-17-2016, 08:03 AM
Many many thanks - that works splendidly -

I've also decided to forgo the original idea of putting these searches in the tab - and have placed them in memberinfo template ....

jagtpf
01-18-2016, 03:29 PM
The option to search for threads by Forum has been warmly welcomed.

Thanks for your kind guidance.

Again, much appreciated.

Geoff

Gio~Logist
01-19-2016, 09:41 AM
Glad to help :up: