vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Search your forum Firefox 2/IE7 (https://vborg.vbsupport.ru/showthread.php?t=132989)

delaen1 12-01-2006 10:00 PM

Search your forum Firefox 2/IE7
 
PART 1:

Create a file and name it ff_search.xml. Insert this code in to it:

Code:

<?xml version="1.0"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>devpals.com</ShortName>
<Description>devpals, ask a question</Description>
<Image height="16" width="16" type="image/x-icon">http://www.devpals.com/favicon.ico</Image>
<Url type="text/html" method="get" template="http://www.devpals.com/search.php?do=process&amp;query={searchTerms}" />
</OpenSearchDescription>

The following changes need to be made to customize it to your site
Code:

<ShortName>[your board name]</ShortName>
Code:

<Image height="16" width="16" type="image/x-icon">http://[your forum url]/favicon.ico</Image>
Code:

<Url type="text/html" method="get" template="http://[your forum url]/search.php?do=process&query={searchTerms}"/>

Any "special" characters that are in your forum name or description are going to have to be replaced.

Upload the file to your forum root.




PART 2:

Open up your headinclude and paste this in the last line (placing your URL where appropriate)

Code:

<link rel="search" type="application/opensearchdescription+xml" href="http://[your forum url]/ff_search.xml" title="[your forum title]" />



That's it. Now when you go to your forum with Firefox 2 (and I hear it works on IE7, though I haven't downloaded that yet) the little Google "G" in the search box should be glowing. If you click the down-arrow, there will be a new section that says "Add 'your forum'".

Select it and now you can search your forums directly from that box. This assumes you have no guest/captcha restrictions on searching. If not, it's only going to work for members.

You can see an example at http://www.devpals.com if you have Firefox 2 installed.

transitbus 12-02-2006 01:07 AM

Got it to work... had to edit the xml properly

The code example you have is incorrect as well.

It should look more like this:

Quote:

<?xml version="1.0" ?>
- <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>devpals.com</ShortName>
<Description>devpals, ask a question</Description>
<Image height="16" width="16" type="image/x-icon">http://www.devpals.com/favicon.ico</Image>
<Url type="text/html" method="get" template="http://www.devpals.com/search.php?do=process&query={searchTerms}" />
</OpenSearchDescription>

Make sure if you edit this that you do so in wordpad and not notepad. Attached is devpal's xml file. Make sure to edit it as shown in the example.

FireFish 12-02-2006 02:02 AM

I don't know what I'm missing; every time I try; in FF or IE, it says cannot download http://mysite.com/ff_search.xml


any ideas?

delaen1 12-02-2006 02:09 AM

Quote:

Originally Posted by transitbus (Post 1129740)
Got it to work... had to edit the xml properly

The code example you have is incorrect as well.

It should look more like this:




Make sure if you edit this that you do so in wordpad and not notepad. Attached is devpal's xml file. Make sure to edit it as shown in the example.

Oh, you're right, good catch. I copied and pasted from Firefox's XML parser. I forgot it stripped some stuff. I edited the first post to reflect that.

Thanks. :)

delaen1 12-02-2006 02:10 AM

Quote:

Originally Posted by FireFish (Post 1129752)
I don't know what I'm missing; every time I try; in FF or IE, it says cannot download http://mysite.com/ff_search.xml


any ideas?

See the post above you. The original example I posted was a little screwy.

FireFish 12-02-2006 02:46 AM

Quote:

Originally Posted by delaen1 (Post 1129759)
See the post above you. The original example I posted was a little screwy.

I know & I edited my xml; still no go.

delaen1 12-02-2006 03:04 AM

Quote:

Originally Posted by FireFish (Post 1129773)
I know & I edited my xml; still no go.

Hmm. Is is live somewhere? I can check it out if you like.

FireFish 12-02-2006 03:37 AM

Quote:

Originally Posted by delaen1 (Post 1129784)
Hmm. Is is live somewhere? I can check it out if you like.

Sure. I appreciate your help.

I PM'd you.

transitbus 12-02-2006 04:09 AM

Copy my xml attached file to your desktop, open it in wordpad, change the site to yours and save it (do not save as just save).

Make sure to add the second bit to styles and templates > Style Manager > Common templates > headinclude.

Stick it at the very bottom. Make sure to change the info to your site's information.

1) do not edit in notepad
2) do not save as in wordpad
3) make sure to put the xml file to your site's root directory
4) make sure to change all the site information to your site

FireFish 12-02-2006 04:18 AM

Quote:

Originally Posted by transitbus (Post 1129812)
Copy my xml attached file to your desktop, open it in wordpad, change the site to yours and save it (do not save as just save).

Make sure to add the second bit to styles and templates > Style Manager > Common templates > headinclude.

Stick it at the very bottom. Make sure to change the info to your site's information.

1) do not edit in notepad
2) do not save as in wordpad
3) make sure to put the xml file to your site's root directory
4) make sure to change all the site information to your site

Yeh, I edited in Dreamweaver; no luck :-(


All times are GMT. The time now is 10:40 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.01237 seconds
  • Memory Usage 1,747KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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