fedai |
|
---|---|
Open your skin to header.tpl and add tag to: {PLUGIN_MY0SEARCH}
Add folder plugins/my0search Create php files: my0search.php: <?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net
http://www.sametbal.com
[BEGIN_SED]
File=plugins/my0search/my0search.php
Version=100+
Updated=2009-apr-12
Type=Plugin
Author=Rick Vause & Samet BAL
Description=
[END_SED]
[BEGIN_SED_EXTPLUGIN]
Code=my0search
Part=main
File=my0search
Hooks=header.tags
Tags=header.tpl:{PLUGIN_MY0SEARCH}
Minlevel=0
Order=10
[END_SED_EXTPLUGIN]
==================== */
if (!defined('SED_CODE')) { die('Wrong URL.'); }
$search_box = "<form style=\"margin: 0px;\" action=\"plug.php?e=search&a=search\" method=\"post\">";
$search_box .= "<input type=\"text\" class=\"text\" name=\"sq\" value=\"search...\" size=\"16\" maxlength=\"32\" onblur=\"if(this.value=='') this.value='search...';\" onfocus=\"if(this.value=='search...') this.value='';\" />";
$search_box .= ($cfg['plugin']['my0search']['my0forum']) ? "<input type=\"hidden\" name=\"searchin_frm\" value=\"1\" /><input type=\"hidden\" name=\"frm_sub[]\" value=\"9999\" />" : "";
$search_box .= ($cfg['plugin']['my0search']['my0users']) ? "<input type=\"hidden\" name=\"searchin_use\" value=\"1\" /><input type=\"hidden\" name=\"use_sub\" value=\"0\" />" : "";
$search_box .= ($cfg['plugin']['my0search']['my0pages']) ? "<input type=\"hidden\" name=\"searchin_pag\" value=\"1\" /><input type=\"hidden\" name=\"pag_sub[]\" value=\"all\" />" : "";
$search_box .= ($cfg['plugin']['my0search']['my0submit']) ? "<input type=\"submit\" name=\"gosearch\" value=\"Search\">" : "";
$search_box .= "</form>";
$t-> assign(array(
"PLUGIN_MY0SEARCH" => $search_box
));
?>
<?PHP
/* ====================
Seditio - Website engine
Copyright Neocrome
http://www.neocrome.net
http://www.sametbal.com
[BEGIN_SED]
File=plugins/my0search/my0search.setup.php
Version=800
Updated=2005-may-16
Type=Plugin
Author=Rick Vause
Description=Adds a simple search field to your header
[END_SED]
[BEGIN_SED_EXTPLUGIN]
Code=my0search
Name=my0search
Description=Adds a simple search field to your header
Version=1.0
Date=2005/05/16
Author=Rick Vause & Samet BAL
Copyright=
Notes=
SQL=
[END_SED_EXTPLUGIN]
[BEGIN_SED_EXTPLUGIN_CONFIG]
my0submit=01:radio::0:Show submit button
my0forum=02:radio::0:Search Forums
my0pages=04:radio::0:Search Pages
[END_SED_EXTPLUGIN_CONFIG]
==================== */
if (!defined('SED_CODE')) { die('Wrong URL.'); }
?>
To plugin(ldu version) owner: Rick Vause Cotonti convert: Samet BAL(fedai)[/][/] "peace in the homeland, peace in the world" K.ATATÜRK
personal blog: http://www.sametbal.net |