Thread: Open Seach
View Single Post
  #1  
Old 1st November 2008, 23:31
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default Open Seach
here is a real easy mod
open themes/**all**/main.php
and add between
Code:
<head></head>
Code:
echo '<link rel="search" type="application/opensearchdescription+xml" title="' . $sitename . '" href="'.$siteurl.'/opensearch.php" />';
now creat a new file called opensearch.php and add this to it

PHP Code:
<?php
require_once("include/config.php");

echo 
'<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
    <ShortName>'
.$sitename.'</ShortName>
    <Description>movies games</Description>
    <Url type="text/html" template="'
.$siteurl.'/search.php?search={searchTerms}" />
    <Tags>movies,games,music</Tags>
    <LongName>'
.$sitename.'</LongName>
    <Image height="16" width="16" type="image/vnd.microsoft.icon">'
.$siteurl.'/themes/'.$theme.'/favicon.JPG</Image>
    <Developer>joeroberts</Developer>
    
</OpenSearchDescription>'
;
?>
save this to your root dir and thats it
this works in FF
and IE
now to make it work
for firefox
just go to browser search in the area to select search from click the down arrow and select add ((your site name))

and now just enter a search word or frace click the magnifying glass and presto it search's your site
for IE
click the down arrow beside the magnifying glass and the add search profider then your site name
Name:  CCCOpenSearchClose.png
Views: 81
Size:  14.4 KB
and thats it
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/

Last edited by joeroberts; 2nd November 2008 at 01:03.
Reply With Quote