Skip to content
WJunction - Webmaster Forum

FireFox Search Plugin for DDL CMS

Status
Not open for further replies.
Was a bit bored today and thought it would be a good idea to give users the option to add my ddl site to thier search engine list in FireFox.

After a little bit of research i have come up with a simple mod to do this and thought i would share it with you all.

Screenshots:
2uzbfw0.jpg


28lglea.jpg


o5z6kp.jpg


Demo:
http://evilddl.com/

Install:
create a file called evilsearch.src and add the code below, editing the file to your needs/urls.

Code:
<search
 version="1.0"
 name="EViLDDL"
 description="Search EViLDDL.COM"
 method="post"
 action="http://evilddl.com/index.php"
 searchForm="http://evilddl.com"
 queryEncoding='UTF-8'
 queryCharset='UTF-8'
>

<input name="q" user >

<browser
 update="http://evilddl.com/evilsearch.src"
 updateicon="http://evilddl.com/favicon.ico"
 updatecheckdays="30"
>
Upload that to the root directory of your ddl cms install.

Open header.php and add this code between the HEAD tags.

Code:
<script type="text/javascript">
function addEngine(url, img, name, desc)
{
    if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function"))
    {
        window.sidebar.addSearchEngine (
                    url,
                    img,
                    name,
                    desc       
                );
    }
    else
    {
        alert("You need a Mozilla based browser such as Firefox to use this.");
    }
}
</script>

Now add this code in leftside.php where you want to show the link, again replacing my details with yours.

Code:
<img src="<?=$site_url?>/skins/<?=$skin?>/arrow.gif" height="8" width="4" alt="<?=$keywords?>"> 
    <a href="#" onclick="addEngine('http://evilddl.com/evilsearch.src', 'http://evilddl.com/favicon.ico', 'EViLDDL.COM', 'Search EViLDDL.COM'); return false;">FireFox Plugin</a><BR>
Enjoy ;)
 

6 comments

Could be used in any script really as long as it uses PHP.

Just use relative paths instead.
 
Why use Javascript =/? The one I did for C-P just gets automatically detected by FF and auto updated if needed with 2 lines of html.
 
Could be used in any script really as long as it uses PHP.

Just use relative paths instead.
Yep :)

Why use Javascript =/? The one I did for C-P just gets automatically detected by FF and auto updated if needed with 2 lines of html.
I don't know your method, would appreciate it if you post it :)

I would rather have both as most people don't notice the "add site" thing in ff, i never have until it was brought up here and wouldn't think to look unless it was a major search engine.

I suggest you look into open search
http://www.opensearch.org/Home

Works with many more browsers including chrome ffx etc and is based on a single xml file and a meta teg ! so much simpler !
Maybe later, i just wanted a simple firefox search as i personally use FF :)
 
Status
Not open for further replies.

About the author

D
Active Member · Joined
1,399
Messages
64
Reactions
48
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom