View Full Version : No Horizontal Scrollbar or Search in Joomla 1.5
baldguy
05-08-2008, 08:39 AM
I am using the template Joomla 1.5. However, no matter what I do I cannot get the search box to appear, as it does in the preview in the templates section of this site.
A more pressing problem is that there is no horizontal scrollbar when I resize the browser. I don't know why it is not there. I've tried looking for overflow:hidden in the body tag, and I've looked for scrollbars=no, but I can't find anything that could be preventing it's display.
I'm using the General theme in the template, but the behavior is the same in all of the themes.
How can I fix these two issues?
I have noticed that there is often an alignment assignment that instead of using left,center, right, top, or bottom, uses pafkata. Could this be related to the problems I'm having?
Costa
05-08-2008, 11:00 AM
HI
Can you give us a link to site to check the display etc
Regards
Costa
baldguy
05-08-2008, 07:47 PM
Sure.
www.stmarkssidney.org
baldguy
05-19-2008, 01:51 PM
OK, here's what I've got:
For the (missing) Search function:
In the template file html>mod_search>default.php is this code:
echo '<div id="search">';
echo '<form action="index.php" method="post">';
echo '<div class="search">';
echo $inputfield;
echo '<input type="hidden" name="option" value="com_search" />';
echo '<input type="hidden" name="task" value="search" />';
echo '<input type="hidden" name="Itemid" value="' .( isset( $itemid ) ? $itemid : '' ). '" />';
echo '</div>';
echo '</form>';
echo '</div>';
When I View Source, here is what appears in the code:
<div id="search">
<form action="http://localhost/Joomla1point5/" method="post">
<div class="search">
<input type="hidden" name="option" value="com_search" />
<input type="hidden" name="task" value="search" />
<input type="hidden" name="Itemid" value="" />
</div>
</form>
</div>
It is apparent that in this line:
echo '<form action="index.php" method="post">';
the index.php is being changed to my path:
<form action="http://localhost/Joomla1point5/" method="post">
And, the line:
echo $inputfield;
is not processing at all
When I rename the mod_search folder, the search function appears in the site, but without the styling. When I rename it back, the search function disappears, but the styling appears. So I'm pretty sure that the problem with the search function is in this file.
Does this help?
baldguy
05-19-2008, 01:54 PM
One more thing - when I View Source on the demo template on this website, this is the code that appears:
<div id="search">
<form action="index.php" method="post">
<div class="search">
<input name="searchword" id="mod_search_searchword" maxlength="20" alt="Search" class="inputbox" type="text" size="20" value="search..." onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" />
<input type="submit" value="Search" class="button"/>
<input type="hidden" name="option" value="com_search" />
<input type="hidden" name="task" value="search" />
<input type="hidden" name="Itemid" value="" />
</div>
</form>
</div>