- Posts: 3
- Thank you received: 0
Search Text Location
-
elleocorazon
Inactive member - Topic Author
- New Member
Less
More
10 years 9 months ago - 10 years 9 months ago #37366
by elleocorazon
Search Text Location was created by elleocorazon
Ran into the same error that another member ran into with the 0 being displayed beside the search bar. I wanted to add a search text click box which I've done for the site. That looks like I want it to but I'll eventually have to add an onhover to make the cursor switch to show that its clickable. This also removes the 0 text beside the search query box.
The problem I am currently having is that when the search is activated. The text button does not properly appear on the search page. I've checked with chrome and firefox and they are both showing the same error.
swartz.asmallorange.com/~athlete1/index....ere&searchphrase=all
I have also uploaded an image of the problem. In the first image
The problem I am currently having is that when the search is activated. The text button does not properly appear on the search page. I've checked with chrome and firefox and they are both showing the same error.
swartz.asmallorange.com/~athlete1/index....ere&searchphrase=all
I have also uploaded an image of the problem. In the first image
Last edit: 10 years 9 months ago by elleocorazon.
Please Log in to join the conversation.
-
elleocorazon
Inactive member - Topic Author
- New Member
Less
More
- Posts: 3
- Thank you received: 0
10 years 9 months ago #37377
by elleocorazon
Replied by elleocorazon on topic Search Text Location
There is also another error with the menu system. The RSS feeds are not properly propagating hreft tags like they are supposed to and the main menu block is not style like it is on the demo site.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 9 months ago #37389
by ivan.milic
Replied by ivan.milic on topic Search Text Location
Open:
templates\hot_sportal\html\mod_search\default.php
$output = '<input name="searchword" id="mod-search-searchword" maxlength="'.$maxlength.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'" onblur="if (this.value='\') this.value=\''.$text.'\';" onfocus="if (this.value=''.$text.'\') this.value=\'\';" />';
replace with:
$output = '<input name="searchword" id="mod-search-searchword" maxlength="$maxlength" class="inputbox$moduleclass_sfx" type="text" size="$width" placeholder="$text" />';
templates\hot_sportal\html\mod_search\default.php
$output = '<input name="searchword" id="mod-search-searchword" maxlength="'.$maxlength.'" class="inputbox'.$moduleclass_sfx.'" type="text" size="'.$width.'" value="'.$text.'" onblur="if (this.value='\') this.value=\''.$text.'\';" onfocus="if (this.value=''.$text.'\') this.value=\'\';" />';
replace with:
$output = '<input name="searchword" id="mod-search-searchword" maxlength="$maxlength" class="inputbox$moduleclass_sfx" type="text" size="$width" placeholder="$text" />';
Please Log in to join the conversation.
-
elleocorazon
Inactive member - Topic Author
- New Member
Less
More
- Posts: 3
- Thank you received: 0
10 years 9 months ago #37402
by elleocorazon
Replied by elleocorazon on topic Search Text Location
That doesn't seem to fix the issue. What that does is put $text in the search field box. It doesn't move the location of the invisible search on the side of the page. The issue has to be in how the created pushbutton is positioned. It has to be somewhere in the code below. Since I'm not using a button image but just a text based button it would seem that there needs to be another modifier relating back to the text button. However, I can't find in the CSS what that specifically is for the search button that is text based and not image based.
if ($button) :
if ($imagebutton) :
$button = '<input type="image" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" src="'.$img.'" onclick="this.form.searchword.focus();"/>';
else :
$button = '<input type="submit" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" onclick="this.form.searchword.focus();"/>';
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;
Also, any ideas on why the styling on the main menu is incorrectly being displayed and why the news feeds are not propagating links correctly? This was a fresh hotstart install with joomla 3.2.2 so I don't know if there are some underlying compatibility issues with the newest Joomla update.
if ($button) :
if ($imagebutton) :
$button = '<input type="image" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" src="'.$img.'" onclick="this.form.searchword.focus();"/>';
else :
$button = '<input type="submit" value="'.$button_text.'" class="button'.$moduleclass_sfx.'" onclick="this.form.searchword.focus();"/>';
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;
Also, any ideas on why the styling on the main menu is incorrectly being displayed and why the news feeds are not propagating links correctly? This was a fresh hotstart install with joomla 3.2.2 so I don't know if there are some underlying compatibility issues with the newest Joomla update.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 9 months ago #37411
by ivan.milic
Replied by ivan.milic on topic Search Text Location
I see you removed 0. Thing is that search module in user4 position and search on page and not same thing.
you can apply styles on button within page using:
DIV.btn-toolbar button.search{
...
}
you can apply styles on button within page using:
DIV.btn-toolbar button.search{
...
}
Please Log in to join the conversation.
Time to create page: 0.159 seconds