Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Search Your Site From Firefox Details »»
Search Your Site From Firefox
Version: 1.00, by Ntfu2 Ntfu2 is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.6.0 Rating:
Released: 08-26-2006 Last Update: Never Installs: 32
 
No support by the author.

Everyone knows that little box in the top right of firefox that contains search engines such as google, ask, blah blah.

Well now you can have you're own site searched right from that nifty box, not that anyone ever uses it, but hey atleast you can be cool and have your own, right?
__________________________________________________ ______________
1. Heres how its done, replace SITE with the your site information,to point to your search.php page.

Code:
<search
version="7.1"
name="SITE Search"
description="SITE search engine description"
action="http://SITE.com/forums/search.php?do=process&"
searchForm="http://www.SITE.com"
method="GET"
>

<input name="sourceid" value="Mozilla-search">
<input name="showposts=0&quicksearch=1&query" user="">

</search>
Copy and paste that, into a file called yoursitename.src and save it inside Program Files\Mozilla Firefox\searchplugins

Create a 16x16 pixel icon, give it the same name as your plug-in, and save it as either a .jpg or .png graphics file. Then, put it in the C:\Program Files\Mozilla Firefox\searchplugins folder

Then just share your .src file with your users telling them where to install.

EXAMPLE: to search vB.org. copy and paste this into notepad file, save as vBulletinORG.src under the C:\Program Files\Mozilla Firefox\searchplugins folder


Code:
<search
version="7.1"
name="vBulletin.org Search"
description="vBulletin.org Search w000oooh000"
action="http://vbulletin.org/forum/search.php?do=process&"
searchForm="http://www.vbulletin.org"
method="GET"
>

<input name="sourceid" value="Mozilla-search">
<input name="showposts=0&quicksearch=1&query" user="">

</search>
I'll help you out the best i can, so just ask.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-27-2006, 03:14 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mattikana
now I every user of my forum has to download 2 files and put them in the proper folder. with the javascript trick you can do this much easier. (i.e. just click on a link)

https://addons.mozilla.org/search-engines.php

On the site above you can simply add one by clicking them. can't be hard to make a mod for this

edit: also check this site out. Make the Search box appear and click on Mozilla Search Plugins.

You still have to create the .src file, and then simply provide the link to download it and it seems to automatically place the file in the correct folder

I'll try to work on something that will let you input your details, create the .src file, and you just link to that for people to download We'll see how it goes.

Thanks for the link btw
Reply With Quote
  #13  
Old 08-27-2006, 03:20 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ctrl-alt-del
Very useful. Thank you!! Now I have a request. Please create this mod for Internet Explorer 7.

I was looking at how to do this, and everything so far has you editing your registry or adding a registry key.

Im not sure people would go for that or not, but soon as i figure it out i'll have one made up.
Reply With Quote
  #14  
Old 08-27-2006, 04:58 PM
therocks therocks is offline
 
Join Date: Mar 2006
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ntfu2
Glad to hear.

do you mind sharing the location for future mac users
sure thing..

Mac HD ==> Applications ==> Right-Click on your Firefox Application ==> Select 'Show Package Contents' ==> Contents ==> MacOS ==> searchplugins

this is using os x tiger

-the rocks
Reply With Quote
  #15  
Old 08-27-2006, 10:35 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great. Thanks!
Reply With Quote
  #16  
Old 08-27-2006, 11:39 PM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mattikana
http://www.captain.at/howto-firefox-...rch-engine.php

much more userfriendly.. the way you want us to install it is too sloppy imho.. make use of the javascript function
I figured out a nice place to put a link for installing the search engine.

First edit the javascript mentioned above for your site then add a link to it in the headinclude template.
Read the above link and then put this code in the search forums template:


FIND:
Code:
<tr>
	<td class="tcat">
		$vbphrase[search_forums]
	</td>
</tr>
ADD AFTER:
Code:
<if condition="is_browser('firefox')">
<tr>
	<td class="panelsurround" align="center">
	$vbphrase[searchfromfirefox] <a href="javascript:addEngine('filename','ext','description')">Install the |your site name here| search engine!</a>
	<td>
</tr>
</if>
Replace sitename with the filename of the .src and ext with the extension of the 16x16 graphic used (gif or png) *note, the grahic has to have the same name as the .scr file.

You have to add a phrase in the language and phrases admincp menu. Add the phrase name, "searchfromfirefox", and the phrase text: "Want to search the forums from firefox?"

See it at my site : http://www.controlbooth.com/forums/search.php

I'm working on putting it in the search results as well. Will post update when that is done.
Reply With Quote
  #17  
Old 08-27-2006, 11:51 PM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ctrl-alt-del
Very useful. Thank you!! Now I have a request. Please create this mod for Internet Explorer 7.
here's a link to information on how to do this, but there is already a mod created for this.

http://msdn.microsoft.com/workshop/b...search_ext.asp

Here's the link to the mod that has already been created:

https://vborg.vbsupport.ru/showthrea...ght=opensearch
Reply With Quote
  #18  
Old 08-28-2006, 12:16 AM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dvsDave
I'm working on putting it in the search results as well. Will post update when that is done.
In the search_results template:

FIND:
Code:
<if condition="$displayCommon">
ADD BEFORE:
Code:
<if condition="is_browser('firefox')">
<tr>
	<td class="thead" colspan="$threadcolspan" align="center">
	$vbphrase[searchfromfirefox] <a href="javascript:addEngine('filename','ext','description')">Install the |your site name here| search engine!</a>
	<td>
</tr>
</if>
Reply With Quote
  #19  
Old 08-28-2006, 01:59 PM
ctrl-alt-del ctrl-alt-del is offline
 
Join Date: Jul 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Dave. And where is a good place to put the javascript?

Code:
function addEngine(name,ext,cat)
{
	if ((typeof window.sidebar == "object") && (typeof
	window.sidebar.addSearchEngine == "function"))
	{
		window.sidebar.addSearchEngine(
			"http://www.leo.org/dict/plugins/"+name+".src",
			"http://www.leo.org/dict/plugins/"+name+"."+ext,
			name,cat);
		alert('Download completed');
	}
	else
	{
		errorMsg(name,ext,cat);
	}
}
Reply With Quote
  #20  
Old 08-28-2006, 03:12 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can put it anywhere, but try the headinclude template
Reply With Quote
  #21  
Old 08-28-2006, 06:24 PM
dvsDave's Avatar
dvsDave dvsDave is offline
 
Join Date: Nov 2005
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually just copied the javascript to blank .txt file and renamed it: addsearchengine.js and uploaded it to a new directory called search_script. First you have to edit the javascript to point to your directory where the .src and .png file are. DON'T change the "+name+"."+ext,name,cat); part, or it won't work. Then in the headinclude file, I added a link to the .js file (just look at the first link to a javascript file and copy that format) Now the javascript will be on each page and if you need to edit it, you just edit the .js file instead of having to edit the headinclude template. It's also advisable to avoid editing the headinclude template as much as possible if you think you will ever use vbSEO.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08583 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete