July 2010
M T W T F S S
« Dec «-»  
 1234
567891011
12131415161718
19202122232425
262728293031  

Joomla Search form image improvement

VN:F [1.4.6_730]
Rating: 0.0/5 (0 votes cast)

Joomla 1.5 provides a great internal Search engine which allows your visitors to search and find in your web site what they are looking for. It’s an important feature that improves your web site. At DiceLock Security we found that we would like to show more information and an image related to searching to our visitors, and what we did is …

  Applies to:
Joomla 1.5
These customizations are provided “AS IS” without warranty of any kind and DiceLock Security disclaims all warranties, EITHER EXPRESS OR IMPLIED INCLUDING THOSE OF MERCHANTABILITY, NONINFRINGEMENT OF THIRD-PARTY INTELLECTUAL PROPERTY, OR FITNESS FOR A PARTICULAR PURPOSE.

Upgrading or reinstalling the customized source code (package, plugin, component, …) may remove the customizations performed.

 

Joomla 1.5 provides a great inner Search feature to allow visitors to get what they want. The Search form is as follows:

 Joomla Search form image improvement

At DiceLock Security we wanted to show more information, an advice of where are they searching as well as what is not included in the search. We thought that it would be nice if we put some image to improve the search perception.

Searching through Joomla software we found that the PHP file that performs the search is ROOT/components/com_search/views/search/tmpl/default_form.php, so we have modified it in order to show the indications as in:

 Joomla Search form image improvement

To get it in this way we have modified the form adding an HTML table as this in the top of the form:

<?php defined('_JEXEC') or die('Restricted access'); ?>
 
<table width="100%">
<tr>
<td>
This Search form allows you to search through our full web. <a href="http://knowledge.dicelocksecurity.com/" target="_blank" ><strong>Knowledge</strong></a> and <a href="http://blog.dicelocksecurity.com/" target="_blank" ><strong>Blog</strong></A> subdomains are not included.<br />
</td>
</tr>
<tr>
<td>
<form id="searchForm" action="<?php echo JRoute::_( 'index.php?option=com_search' );?>" method="post" name="searchForm">
Note: if you view this code through the machine translator, maybe you are viewing a transformed code. Please, view the original English version of the page to see it unaltered.

The image that we prefered to put is this:

 Joomla Search form image improvement

And at hte bottom of the same file, ROOT/components/com_search/views/search/tmpl/default_form.php, we have put the following code after the tag closing the form and closing the HTML table, as in:

</form>
</td>
<td valign="top" align="right">
<img  style="float: right; padding: 10px;"  src="images/stories/webimages/Magnifying-Glass.png" alt="DiceLock Security Web Search"/>
</td>
</tr>
</table>
Note: if you view this code through the machine translator, maybe you are viewing a transformed code. Please, view the original English version of the page to see it unaltered.

With all these changes, our visitors get the following form when they access our “Advanced Search” form:

 Joomla Search form image improvement

And when a search is performed they get:

 Joomla Search form image improvement

In this way we found that we get a more pleasing search form.

VN:F [1.4.6_730]
Rating: 0.0/5 (0 votes cast)
  • Share/Save/Bookmark

Related posts:

  1. Joomla Search error message lay out
  2. Joomla – SEO (Search Engine Optimization) problem with Tree DHTML menu
  3. Joomla – SEO (Search Engine Optimization) Tree DHTML menu issue
  4. Joomla RSForm PRO adding contact information
  5. Joomla – SEO (Search Engine Optimization) Tree DHTML menu – inner links and site map solution

No Comments

You must be logged in to post a comment.

If you want to subscribe to the comments of this information without commenting, enter your email.





Close Me  
Get FREE Random Number Test Windows DLL !
Get FREE Hash Algorithms Windows DLL !