A complete implementation for Seditio
|
|
Average members rating (out of 10) : Not yet rated
Votes: 0
Votes: 0
Features:
See Google CSE Business Edition features.
Requirements:
- PHP 5 with SimpleXML and cURL
- Google CSE Business Edition account (already set up and configured for your site)
Installation:
1.Put «cse» into your Seditio «plugins» folder.
2.Go to your Administration panel, install and configure the plugin.
3.Customize «plugins/cse/tpl/cse.tpl» for desired layout.
4.Target your search forms to this plugin (see below).
This plugin accepts search queries from GET forms all over your site. All you need is to add following parameters to your forms:
action is «plug.php?e=cse», other parameters may be appended to action string;
- q (required) — search query text input;
- c (optional) — a CSE label to search in;
- d (optional) — show results starting from this number.
Examples:
A most common form example:
This form will search in pages labeled "Forum" only:
This is a simple example how to search from address bar:
See Google CSE Business Edition features.
Requirements:
- PHP 5 with SimpleXML and cURL
- Google CSE Business Edition account (already set up and configured for your site)
Installation:
1.Put «cse» into your Seditio «plugins» folder.
2.Go to your Administration panel, install and configure the plugin.
3.Customize «plugins/cse/tpl/cse.tpl» for desired layout.
4.Target your search forms to this plugin (see below).
This plugin accepts search queries from GET forms all over your site. All you need is to add following parameters to your forms:
action is «plug.php?e=cse», other parameters may be appended to action string;
- q (required) — search query text input;
- c (optional) — a CSE label to search in;
- d (optional) — show results starting from this number.
Examples:
A most common form example:
HTML4STRICT Code:
<form action="plug.php" method="get">
<input type="hidden" name="e" value="cse" />
<input type="text" name="q" />
<input type="submit" value="Search" />
</form>
<input type="hidden" name="e" value="cse" />
<input type="text" name="q" />
<input type="submit" value="Search" />
</form>
This form will search in pages labeled "Forum" only:
HTML4STRICT Code:
<form action="plug.php" method="get">
<input type="hidden" name="e" value="cse" />
<input type="hidden" name="c" value="forum" />
<input type="text" name="q" />
<input type="submit" value="Search" />
</form>
<input type="hidden" name="e" value="cse" />
<input type="hidden" name="c" value="forum" />
<input type="text" name="q" />
<input type="submit" value="Search" />
</form>
This is a simple example how to search from address bar:
HTML4STRICT Code:
<a href="plug.php?e=cse&q=my+query">My query</a>
.
Download : Google CSE Business Edition 1.0.0 
Size: 108KB, downloaded 182 times

Size: 108KB, downloaded 182 times


























