vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Add an check box to the quick search box in navbar, more to this question (https://vborg.vbsupport.ru/showthread.php?t=212094)

jwocky 04-24-2009 05:58 PM

Add an check box to the quick search box in navbar, more to this question
 
I want to add a check box to the quick search box. Why?

Basicly right now I have my forum set to search only about half my actual forums on any given search because I have a certain number of forums set to 'exclude' certains forums. This is done using a plugin I wrote added into the search hooks.

Now what I want to do is have a check box that I can add into the quick search box, when if that box is checked my plugin would bypass itself.

My question is this: How can I pass a variable from the quick search box to the search.php page where my plugin actually runs? I know the actual search itself is probably sent via a form POST command or something similar, but is there anyway to add in a variable to be sent also (that variable would be the check box..)

?

Thanks for any help or ideas on where to begin on this

Lynne 04-24-2009 06:50 PM

The checkbox is another variable that would be passed to the form. Name it "jwocky" and then check if jwocky is true or not and then do something based on that.

jwocky 04-24-2009 08:59 PM

Quote:

Originally Posted by Lynne (Post 1798349)
The checkbox is another variable that would be passed to the form. Name it "jwocky" and then check if jwocky is true or not and then do something based on that.

But how would vbulletin know the name of the variable? so in the quick search box form in the navbar template I added in mycheckbox with the name and id "jwocky" but now in the search_process_start plugin how do I pull out that variable in order to determine if it has the value I want.. $jwocky doesn't work. Does vbulletin process it as part of another variable or as a member of some array that I can access?

thanks!

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

Oh wait I figured it out, i just added a clean_gpc variable and it worked great! thanks for starting me off in the right direction.. i love vbulletin!


All times are GMT. The time now is 11:53 PM.

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.01002 seconds
  • Memory Usage 1,713KB
  • 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_quote_printable
  • (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