vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   External Search? (https://vborg.vbsupport.ru/showthread.php?t=271717)

GavoTrav 10-09-2011 06:38 PM

External Search?
 
What I want to do is put a search bar on my homepage, Its not part of vbulletin so when I try to search it gives me

Code:

Your submission could not be processed because a security token was invalid.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

This is the code I Tried, I cannot find how to do the Security token

Code:

<form action="http://*****.com/forums/search.php?do=process" method="post">
<input name="do" value="process" type="hidden">
<input name="quicksearch" value="1" type="hidden">
<input name="childforums" value="1" type="hidden">
<input name="exactname" value="1" type="hidden">
<input name="s" value="" type="hidden">
<input name="securitytoken" value="http://*****.com/forums/$bbuserinfo[securitytoken]" type="hidden">
<div><input class="bginput" name="query" size="25" tabindex="1001" type="text"><input class="button" value="Go" tabindex="1004" type="submit"></div>
</form>

I Looked around the forum its probably here but I cannot find it. Any help please?

kh99 10-09-2011 06:42 PM

If that code isn't in a template then maybe try just taking out the <input name="securitytoken".... line altogether.

GavoTrav 10-09-2011 06:57 PM

Still does not work,

Anything else? Any other ideas like iFrame either?

kh99 10-09-2011 07:14 PM

Oh...maybe take out the <input name="s"... line as well? I think that's another name for the security token. I think it should work without one if you have cookies enabled.

GavoTrav 10-09-2011 07:39 PM

Still same error message,

Tried removing both lines also and same message too,

I've searched and found this:

Code:

http://www.yoursite.com/forum/search.php?do=process&query=searchword
But I don't know how to work it into a form like

Code:

<form action="http://www.yoursite.com/forum/search.php?do=process&query=searchword" method="post">
<input name="do" value="process" type="hidden">
<input name="quicksearch" value="1" type="hidden">
<input name="childforums" value="1" type="hidden">
<input name="exactname" value="1" type="hidden">
<div><input class="bginput" name="query" size="25" tabindex="1001" type="text"><input class="button" value="Go" tabindex="1004" type="submit"></div>
</form>

I've tried that code but it just goes to

Code:

http://www.yoursite.com/forum/search.php?do=process&query=searchword
Any ideas about this either?

Simon Lloyd 10-10-2011 08:10 AM

Do you want to search within your forum or externally?

GavoTrav 10-10-2011 10:28 PM

I basically want to do this.

I've created a homepage (NOT VBULLETIN)

I Have a search bar on that, I Want to make that search to forum!

Does that make sense enough?

Simon Lloyd 10-11-2011 04:52 AM

In that case wouldn't it be easier to just create a google custom search? you can assign it to only search your site :)


All times are GMT. The time now is 06:34 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.01083 seconds
  • Memory Usage 1,722KB
  • 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
  • (5)bbcode_code_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