|
#1
|
||||
|
||||
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" />'; PHP Code:
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 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. |
#2
|
|||
|
|||
Thanks Joe.
Though I've not managed to get this simple hack working:shock: Have placed the this in my theme at this location Code:
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"; echo "<html>\n"; echo "<head>\n"; echo "<!--[if lt IE 7]> <script defer type=\"text/javascript\" src=\"$siteurl/pngfix.js\"></script><![endif]-->"; echo "<title>".$sitename."</title>\n"; echo '<link rel="search" type="application/opensearchdescription+xml" title="' . $sitename . '" href="'.$siteurl.'/opensearch.php" />'; Could it be because I have the source running in a sub-dir? |
#3
|
||||
|
||||
no because it works here
phpMyBitTorrentV2.0 Beta4 where dd you put opensearch.php? at what location did you add opensearch.php? should be in same location as index.php
__________________
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 Krypto; 2nd November 2008 at 03:27. |
#4
|
|||
|
|||
I put in in the root dir, same location as index.php
|
#5
|
||||
|
||||
is there a way I can see a copy of your source code?
you can pm it to me
__________________
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/ |
#6
|
|||
|
|||
Quote:
And with IE I get:- IE could not install this search provider There was a problem with the search providers info |
#7
|
||||
|
||||
fixed please try new openseach.php listed in first post
__________________
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/ |
#8
|
|||
|
|||
Excellent, works great now:hi:
Just querying is this part right with the double $ in opensearch.php? $$siteurl |
#9
|
||||
|
||||
no sorry I just noticed that I fixed it first post
__________________
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/ |
Tags |
open , seach |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
TS-SE.Net Open Source Project | DrNet | Community Cafe | 28 | 22nd January 2013 12:47 |
New TorrentStrike Open | Krypto | Community Cafe | 7 | 8th January 2010 16:43 |
the torrent dont seem to open on tbdev | irfan | TBDev | 0 | 20th October 2009 22:33 |
TSSE - Open Source Project | Enza Gallo | Template Shares | 26 | 14th September 2009 14:31 |
TS 3 (how to open it up for guests) | Ramonnl | Community Cafe | 0 | 15th July 2009 23:26 |