Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-29-2008, 03:57 AM
catchpen's Avatar
Pligg Donor
 
Join Date: Jan 2008
Posts: 209
Thanks: 30
Thanked 18 Times in 13 Posts
How To: Browser open search plug-in for your site

This is a way for visitors to search your site via "open search" - the toolbar search on your browser supposedly both FF 2.0 and IE7 compatible. There is also a way for it to use Google to give your server a break. First create an .xml file and save it in your root folder (name doesn't matter)
Code:
<?xml version="1.0" encoding="UTF-8"?>

<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
 <ShortName>short description of your site</ShortName>
 <Description>Name of site</Description>
<Image height="16" width="16" type="image/x-icon">http://yoursite.com/favicon.ico</Image>
 <Tags>Name of site</Tags>
 <Url type="text/html" method="GET" template="http://yoursite.com/search.php?search={searchTerms}"/>
</OpenSearchDescription>
If you want them to use Google instead, replace:
Code:
<Url type="text/html" method="GET" template="http://yoursite.com/search.php?search={searchTerms}"/>
With:
Code:
<Url type="text/html"
      template="http://www.google.com/search?q=site:[yoursite.com] {searchTerms}"/>
Then add this somewhere in header.tpl or a tools page.
Code:
<link rel="search" href="URL of the xml file you just created"
      type="application/opensearchdescription+xml"
      title="Your site name" />
NOTE: A visitor won't see it since it's an autodiscovery for your browser so you can just type some instructions for them to check the bottom of their dropdown on their browser toolbar search and click on it to install.

Last edited by catchpen; 02-29-2008 at 01:48 PM..
Reply With Quote
Reply

Thread Tools
Display Modes
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Some ideas to build a Pligg site Divisive Cotton Off-topic 20 06-03-2008 04:09 PM
SEO (Search Engine Optimization) Yankidank Wiki Articles 23 12-02-2007 12:27 PM


Search Engine Friendly URLs by vBSEO 3.2.0