Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-12-2005, 07:35 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Search your forum directly from Firefox

This isn't really a vB addon, so I decided to post here instead of as a release

This little mod lets you search your vBulletin 3.5 forum directly from within Firefox, using Firefox's quick search box (to the right of the Address box).

It adds an option to the dropdown menu in that box to search your forum.

Installation:
Extract the zip file to:

Code:
C:\Program Files\Mozilla Firefox\searchplugins
(or whereever the correct folder may be on your system )

Now edit the vbulletin.src file using any text editor. You need to edit the following 2 lines:

Code:
 action="http://www.your-website.com/forum/search.php"
searchForm="http://www.your-website.com/forum/search.php"
Edit these, and put your website / forum path in there instead.

Once done, save the file, load Firefox, and it (should) appear in the search dropdown

Alan.
Attached Images
File Type: jpg firefox_search_dropdown.jpg (16.5 KB, 0 views)
Attached Files
File Type: zip Firefox Search.zip (883 Bytes, 38 views)
Reply With Quote
  #2  
Old 12-12-2005, 07:49 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I used to have a addition to my Windows XP Taskbar that searched right from there. Have to look and see if I still have it. Was back from 2002. Worked in any browser.
Reply With Quote
  #3  
Old 12-12-2005, 08:31 PM
Protoman's Avatar
Protoman Protoman is offline
 
Join Date: Jan 2005
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to add an automated installer for your forum members.. here's a very basic web page that shows what you need.
Code:
<html>
<head><title>yourSite Search installer..</title></head>
<body>
<script
  type="text/javascript">
<!--
function errorMsg()
{
  alert("Netscape 6 or Mozilla is needed to install a sherlock plugin");
}
function addEngine(name,ext,cat,type)
{
  if ((typeof window.sidebar == "object") && (typeof
  window.sidebar.addSearchEngine == "function"))
  {
    //cat="Web";
    //cat=prompt('In what category should this engine be installed?','Web')
    window.sidebar.addSearchEngine(
      "http://yourSite.com/searchbox/"+name+".src",
      "http://yourSite.com/searchbox/"+name+"."+ext,
      name,
      cat );
  }
  else
  {
    errorMsg();
  }
}
//-->
</script>

<h2>Add yourForum search to your right search box in Mozilla Firefox</h2>
<a href="javascript:addEngine('srcName','imageType','General','0')">Click to Install..</a>
</body>
</html>
upload your .src file and image (png, gif, jpg) to the folder specified above (example is :/searchbox/)
srcName should be the name of your .src file without the .src extension
imageType should be png, gif, or jpg
Reply With Quote
  #4  
Old 12-12-2005, 09:23 PM
EricaJoy EricaJoy is offline
 
Join Date: Sep 2002
Location: New York, NY
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me wants to click install
Reply With Quote
  #5  
Old 12-13-2005, 02:34 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Loverly. I will now steal.

edit: Theft complete. Now to thief me, modify search_forums:
HTML Code:
<if condition="is_browser('firefox') or is_browser('mozilla')">
	<br />
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
		<thead>
			<tr>
				<td class="tcat">Search $vboptions[bbtitle] from <if condition="is_browser('firefox')">Firefox<else />Mozilla</if>'s toolbar</td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td class="alt1">
					<p>You can search $vboptions[bbtitle] directly from the &quot;Search&quot; field of
						<if condition="is_browser('firefox')">Firefox<else />Mozilla</if>'s
						toolbar. Simply select the link below. When installed, you can select the icon in the left of the search box and
						select &quot;$vboptions[bbtitle].&quot;
					</p>
				  <p>Unlike many other searching assistants, this one does not include spyware or even software that installs on your computer. It simply adds an
						additional searching source to <if condition="is_browser('firefox')">Firefox<else />Mozilla</if>'s capabilities.
						<a href="view-source:$vboptions[bburl]/search.php?$session[sessionurl]" target="_blank">View this page's source</a>
						to see how it works.</p>
				</td>
			</tr>
			
			<tr>
				<td class="alt2">
					<script type="text/javascript">
						<!--
							// yes you can copy this script for your own use given how simple it is
						
							var mozillaSearchTitle = "$vboptions[bbtitle] Toolbar Search";
							var mozillaSearchFile = "wdfMozillaSearch";
						
							function updateMozillaSearch()
							{
								if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function"))
								{
									window.sidebar.addSearchEngine(
										"$vboptions[bburl]/" + mozillaSearchFile + ".src",
										"$vboptions[bburl]/" + mozillaSearchFile + ".png",
										mozillaSearchTitle, "Web");
								}
								else
								{
									alert("Installing the $vboptions[bbtitle] search toolbar functionality failed.\n" + 
										"Are you using Firefox or Mozilla and did you confirm any security prompts?");
								}
							}
						// -->
					</script>
				
					<a href="javascript: updateMozillaSearch()">Add $vboptions[bbtitle] search capabilities to
						<if condition="is_browser('firefox')">Firefox<else />Mozilla</if></a>
				</td>
			</tr>
		</tbody>
	</table>
</if>
Reply With Quote
  #6  
Old 12-13-2005, 03:43 PM
Dollah Dollah is offline
 
Join Date: Nov 2005
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx will try this
Reply With Quote
  #7  
Old 12-13-2005, 11:06 PM
EricaJoy EricaJoy is offline
 
Join Date: Sep 2002
Location: New York, NY
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by filburt1
Loverly...
Here I thought I was the only one who said loverly.
Reply With Quote
  #8  
Old 04-12-2006, 05:03 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any type of JS check that could be done to the browser client to see if they already have it installed or not?
Reply With Quote
  #9  
Old 04-12-2006, 10:06 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Use is_browser() in a template.
Reply With Quote
  #10  
Old 04-12-2006, 11:58 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by filburt1
Use is_browser() in a template.
Filburt, I must not have had enough caffiene today... I know is_browser() can tell me if they're using FF or not but how would I use it to see if they already have the search engine installed? :nervous:
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 01: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.04499 seconds
  • Memory Usage 2,285KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete