1. In this topic we already established that under Joomla 1.5 legacy mode, setting width to 0 does not work.
2. That is why I proposed to edit components/com_blastchatc/dynamic.blastchatc.php file and place this new function bc_mosToolTip in this file (it is code from Joomla 1.0.15 version).
3. After you copy/pasted this function into this file, you must find all occurrences of mosToolTip function being called, i.e. find string mosToolTip in this file and replace it with bc_mosToolTip (out new function call). After this is done width 0 should start to work.
4. if step 3 did not fix it then, adjust bc_mosToolTip function code to your likings (like not presenting avatar, i.e. tooltip), for example by
REMOVING all onmouseover and onmouseout occurrences (those are responsible for avatar being presented), something like this:
| Code: |
/**
* Utility function to provide ToolTips
* @param string ToolTip text
* @param string Box title
* @returns HTML code for ToolTip
*/
function bc_mosToolTip( $tooltip, $title='', $width='', $image='tooltip.png', $text='', $href='#', $link=1 ) {
global $mosConfig_live_site;
if ( $width ) {
$width = ', WIDTH, \''.$width .'\'';
}
if ( $title ) {
$title = ', CAPTION, \''.$title .'\'';
}
if ( !$text ) {
$image = $mosConfig_live_site . '/includes/js/ThemeOffice/'. $image;
$text = '<img src="'. $image .'" border="0" alt="tooltip"/>';
}
$style = 'style="text-decoration: none; color: #333;"';
if ( $href ) {
$style = '';
} else{
$href = '#';
}
$tip = "<!-- Tooltip -->\n";
if ( $link ) {
$tip .= '<a href="'. $href .'" '. $style .'>'. $text .'</a>';
} else {
$tip .= '<span '. $style .'>'. $text .'</span>';
}
return $tip;
}
|