View Full Version : Question for SiteGround : Template issue
queep
03-05-2008, 09:32 PM
hi guys, we have just used our first joomla website & have customised one of your free templates for this new site.... cheers for that! It was the SiteGround-j15-13 one and its perfectly suited to our needs, with everything where we want it! nice work!!
we are having just 1 major problem tho.... it seems unable to enable a search form, for a normal sitesearch facility.... and you guys dont have any help area for your free templates on your website, so i just thought i'd ask here
my main questions are, is there some sort of code we need to add to index.php or other files to get the search working? or are there any issues with implementing search on this template? (because i notice all the demo versions online dont have search either so am wondering if there is any issues)
btw, our index.php only contains the following search-related code, is this correct?>>>>
<div id="wo_search_bg">
<jdoc:include type="modules" name="user4" />
</div>
Hello,
This is the code for the search box:
<form action="index.php" method="post">
<div align="right">
<input class="inputbox" type="text" name="searchword" size="15" value="<?php echo _SEARCH_BOX; ?>" onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX; ?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX; ?>') this.value='';" />
<input type="hidden" name="option" value="search" />
</div>
</form>
Hello,
This is the code for the search box:
<form action="index.php" method="post">
<div align="right">
<input class="inputbox" type="text" name="searchword" size="15" value="<?php echo _SEARCH_BOX; ?>" onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX; ?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX; ?>') this.value='';" />
<input type="hidden" name="option" value="search" />
</div>
</form>
hi bill, i'm having the same problem as queep: i cant get the search function for the SiteGround-j15-13 / Goldenbully template to work. where exactly do you put this code in order to make the search function work (replacing it with adsense is a better solution though)? btw, my site is http://inorth.co.cc as you can see there, the search isnt working.
btw, i dont have a siteground hosting account so i cant access your ticket system for help, the forums is my only choice...
scarr105
05-21-2008, 10:27 AM
Can someone supply an answer to this issue, site looks great but how do you get the search function working correctly.
scarr105
05-21-2008, 10:46 AM
Here is the fix replace: siteground-j15-13\html\mod_search\default.php with the following code.
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<div id="search_bg">
<div id="search">
<form action="index.php" method="post">
<div class="search<?php echo $params->get('moduleclass_sfx') ?>">
<?php
$output = '<input name="searchword" id="mod_search_searchword" maxlength="20" alt="'.$button_text.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'" onblur="if(this.value==\'\') this.value=\''.$text.'\';" onfocus="if(this.value==\''.$text.'\') this.value=\'\';" />';
if ($button) :
if ($imagebutton) :
$button = '<input type="image" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" src="'.$img.'"/>';
else :
$button = '<input type="submit" value="'.$button_text.'" class="button'.$moduleclass_sfx.'"/>';
endif;
endif;
switch ($button_pos) :
case 'top' :
$button = $button.'<br/>';
$output = $button.$output;
break;
case 'bottom' :
$button = '<br/>'.$button;
$output = $output.$button;
break;
case 'right' :
$output = $output.$button;
break;
case 'left' :
default :
$output = $button.$output;
break;
endswitch;
echo $output;
?>
</div>
<input type="hidden" name="task" value="search" />
<input type="hidden" name="option" value="com_search" />
</form>
</div>
</div>