This is how you put an iframe search bar anywhere you want on your site:
From the .zip file:
1) Copy search.php to / (root directory of cutenews.ru install)
2) Copy show_searchresults.php to / (root directory of cutenews.ru install)
3) Copy search.css to /skins (root directory of cutenews.ru install)
Changing search fonts using search.css:
1) Open search.css and change the font properties.
- - 'fontyfont' is formatting for the words 'Search for:'
- - 'fontyfont-search' is formatting for text in search box.
- - 'fontyfont-dropdown' is formatting for text in both drop downs.
--------
Note: You'll also see this at the top of skins/search.css
body {
background-color: transparent;
}
This sets the background of the iframe transparent so no matter where you place this search bar iframe on your site it will match the background behind it.. like the background of a table or cell that you've previously chosen in your layout. This makes it easier to design with. I've tested it with IE and FF.
--------
How to display search bar in your site:
1) Use the code below on your site wherever you'd like to show the search bar.
<iframe name="searchbar" src="http://www.YOURSITE.com/PATH-TO-CUTENEWS/search.php" allowtransparency="yes" marginwidth="1" marginheight="1" width="100%" scrolling="no" border="0" frameborder="0" height="100">You need a browser upgrade. Get firefox.</iframe>
The things you'll need adjust in the iframe code to make it work for your site are:
1) src="http://www.YOURSITE.com/PATH-TO-CUTENEWS/search.php"
2) height="100"
How to include search results in your site:
To see the search results on your page, include them into a file called 'search.php' in the root directory of your website. This is exactly like including show_news.php on your index.php file. Because of this I usually copy index.php as search.php (creating
http://www.yoursite.com/search.php) and change the include code to this:
<?php
$number = "10";
include("PATH-TO-CUTENEWS/show_searchresults.php");
?>
Some extra info:
You can change the page that cutenews.ru opens search results on by changing this line in search.php:
<form method="get" action="../search.php" target="_top">
Change action="../to-the-name-of-the-file-youd-like-to-use.php"
target="_top" tells it to open in a new window. Without this it will open inside of your tiny search iframe.
You can change which template your search results use in cutenews.ru by modifying this line in search.php:
$template = 'Search';