vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Can the search results be customized? (https://vborg.vbsupport.ru/showthread.php?t=253321)

CrystaStarLight 11-07-2010 09:45 PM

Can the search results be customized?
 
I searched this forum for an answer to this, and there are like 8 threads that asked something similar to this with 0 replies. *lol* Is this that hard to do?

Lets say in the database I have a thread descriptions column in the vb_thread table, and I'd like to make the thread descriptions show up in the search results. They don't even have to be searchable, just be associated with the thread that shows up in the results.

I haven't even found any VB4 modifications that were able to customize the search results in this way.

If anyone has any advice on this that would be great! Thanks!

Lynne 11-07-2010 10:03 PM

Which search are you talking about - using the search box, what's new, search in last day....etc. Most likely the SELECT is for thread.*, but you may need to verify that by running the query while in debug mode and making sure. Then you know that it's available - {vb:raw thread.description} or whatever - and can add it to the template.

CrystaStarLight 11-07-2010 10:08 PM

Thanks I'll try that, and in my case I'm trying to do it in the What's New / getdaily.

--------------- Added [DATE]1289181843[/DATE] at [TIME]1289181843[/TIME] ---------------

Awesome! Adding {vb:raw thread.description} in the "search_threadbit" template worked for me. Thanks!


All times are GMT. The time now is 09:20 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.01054 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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