vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to implement "search" on a custom page? (https://vborg.vbsupport.ru/showthread.php?t=186970)

veenuisthebest 08-02-2008 12:34 AM

please explain more.. how to setup another form action ?? and how will it work out fine ??
I have my own page called links.php, it has its own tables, queries, variables and everything.

I am trying all the possible ways but cannot get it to work. I think it would be best if I get it to work by doing something like links.php?do=search , I did it the same way for reviews (links.php?do=review), but can't get search working this way. This way all the functions of the directory would remain in a single file.

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

see we already have the search form ready in links.php

This is my links.php?do=search part of the file:-

PHP Code:

//*********SEARCH PAGE************
if ($_REQUEST['do'] == 'search')
{


//WHAT TO PUT IN HERE?



$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";');
eval(
'print_output("' fetch_template('links_searchbits') . '");');
$db->free_result($query_Search);
}
//*********END SEARCH PAGE************ 

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

alright, things are done !... :up:

I did a sub-page links.php?do=search and it works fine.

Thanks

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


All times are GMT. The time now is 02:53 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.01000 seconds
  • Memory Usage 1,714KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete