katandmouse
User
 Junior Boarder
| Posts: 5 |   | Karma: 0
|
how to get rid of rollover description - 2008/07/12 11:09
I don't care for the description that pops up when you roll over the list name. For better marketing I'd prefer those descriptions be out in the open requiring no rollover. How can I do that?
Also, if I have to keep the rollover, it sometimes pops up on the left and runs outside the browser window. Firefox
Also, the background is transparent, so when that text appears it is sitting on top of other text and is hard to read.
http://208.78.41.143/~planethe/dev/index.php?option=com_acajoom&Itemid=85
Thanks for your help.
|
|
|
| | To post on the forum you need to sign in. |
kornikopic
User
 Platinum Boarder
| Posts: 661 |   | Karma: 11
|
Re:how to get rid of rollover description - 2008/07/14 23:15
Hello,
Please, open the file compa.php (<joomla>/administrator/components/com_acajoom)
Find the function :
| Code: | function toolTip($tooltip, $title='', $width='', $image='tooltip.png', $text='', $href='', $link=1){
if(compa::joom10()){
if ( $GLOBALS[ACA.'use_sef'] AND function_exists('sefRelToAbs') ) $href = sefRelToAbs($href);
return mosToolTip( htmlspecialchars($tooltip, ENT_QUOTES), addslashes($title), $width, $image, $text, $href, $link);
}else{
if(preg_match("/#/",$href)){
$href = null;
}
return JHTML::_('tooltip', $tooltip, $title, $image, $text, $href, $link);
}
}
|
Replace it by :
| Code: | function toolTip($tooltip, $title='', $width='', $image='tooltip.png', $text='', $href='', $link=1){
if ($link == 1) {
return '<a href="'.$href.'">'.$text.'</a>';
} else {
if(compa::joom10()){
if ( $GLOBALS[ACA.'use_sef'] AND function_exists('sefRelToAbs') ) $href = sefRelToAbs($href);
return mosToolTip( htmlspecialchars($tooltip, ENT_QUOTES), addslashes($title), $width, $image, $text, $href, $link);
}else{
if(preg_match("/#/",$href)){
$href = null;
}
return JHTML::_('tooltip', $tooltip, $title, $image, $text, $href, $link);
}
}
}
|
*** Please, read our official documentation before posting. Thank you ***
Best regards, Jonathan |
|
|
| | To post on the forum you need to sign in. |
katandmouse
User
 Junior Boarder
| Posts: 5 |   | Karma: 0
|
Re:how to get rid of rollover description - 2008/07/16 14:02
Thanks so much Jonathan. That got rid of the tool tip. is there a way to get the description to print under the newsletter name? Also, others might like to know how to keep the description in the tooltip rollover, but put a solid background behind it and fix the width so it doesn't spill out. Thanks again for your help.
|
|
|
| | To post on the forum you need to sign in. |
kornikopic
User
 Platinum Boarder
| Posts: 661 |   | Karma: 11
|
Re:how to get rid of rollover description - 2008/07/17 00:21
Hello,
To add the description under the list :
| Code: | function toolTip($tooltip, $title='', $width='', $image='tooltip.png', $text='', $href='', $link=1){
if ($link == 1) {
return '<a href="'.$href.'">'.$text.'</a><br />'.$tooltip;
} else {
if(compa::joom10()){
if ( $GLOBALS[ACA.'use_sef'] AND function_exists('sefRelToAbs') ) $href = sefRelToAbs($href);
return mosToolTip( htmlspecialchars($tooltip, ENT_QUOTES), addslashes($title), $width, $image, $text, $href, $link);
}else{
if(preg_match("/#/",$href)){
$href = null;
}
return JHTML::_('tooltip', $tooltip, $title, $image, $text, $href, $link);
}
}
}
|
We use a function of Joomla to generate the tooltip. So, I think the background has been removed into the CSS of Joomla.
*** Please, read our official documentation before posting. Thank you ***
Best regards, Jonathan |
|
|
| | To post on the forum you need to sign in. |
|