vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Help with profile tab content (https://vborg.vbsupport.ru/showthread.php?t=321482)

jagtpf 01-13-2016 08:27 AM

Help with profile tab content
 
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
Quote:

$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

Quote:

Originally Posted by cellarius (Post 2562569)
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 [DATE]1452877994[/DATE] at [TIME]1452877994[/TIME] ---------------

Why is this :

Quote:

localhost/poets/search.php?do=searchuser&userid=xxxxxx&titleonly=1 &starteronly=1&exactname=1&searchdate=0&sortby=thr eadstartdate&order=descending&showposts=0&contentt ype=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:
Quote:

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:


All times are GMT. The time now is 04:04 AM.

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.01014 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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