Do not disable overlib in RC2

Phoca Download - download manager
Mitrich
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 10 Mar 2011, 14:37

Do not disable overlib in RC2

Post by Mitrich »

Overlib in Details button do not disable
I fix this problem in /components/com_phocadownload/views/category/tmpl/default.php

Code: Select all

$details     = PhocaDownloadHelper::strTrimAll($details);
$overlib     .= "onmouseover=\"return overlib('".htmlspecialchars( addslashes('<div style="text-align:left;padding:5px">'.$details.'</div>') )."', CAPTION, '".JText::_('COM_PHOCADOWNLOAD_DETAILS')."', BELOW, RIGHT, CSSCLASS, TEXTFONTCLASS, 'fontPhocaPDClass', FGCLASS, 'fgPhocaPDClass', BGCLASS, 'bgPhocaPDClass', CAPTIONFONTCLASS,'capfontPhocaPDClass', CLOSEFONTCLASS, 'capfontclosePhocaPDClass', STICKY, MOUSEOFF, CLOSETEXT, '".JText::_('COM_PHOCADOWNLOAD_CLOSE')."');\"";
$overlib     .= " onmouseout=\"return nd();\""; 
replace with

Code: Select all

if ($this->tmpl['display_description'] > 2 )
{
    $details     = PhocaDownloadHelper::strTrimAll($details);
    $overlib     .= "onmouseover=\"return overlib('".htmlspecialchars( addslashes('<div style="text-align:left;padding:5px">'.$details.'</div>') )."', CAPTION, '".JText::_('COM_PHOCADOWNLOAD_DETAILS')."', BELOW, RIGHT, CSSCLASS, TEXTFONTCLASS, 'fontPhocaPDClass', FGCLASS, 'fgPhocaPDClass', BGCLASS, 'bgPhocaPDClass', CAPTIONFONTCLASS,'capfontPhocaPDClass', CLOSEFONTCLASS, 'capfontclosePhocaPDClass', STICKY, MOUSEOFF, CLOSETEXT, '".JText::_('COM_PHOCADOWNLOAD_CLOSE')."');\"";
        $overlib     .= " onmouseout=\"return nd();\"";
} 
and I think need to hide this button if overlib disabled, or make this button as link to File View

Sorry for my English ^)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Do not disable overlib in RC2

Post by Jan »

Hi, sorry I don't understand:

Overlib in Details button do not disable - you mean it as new feature - to not display overlib or as some bug if some specific parameter is set?
If you find Phoca extensions useful, please support the project
Post Reply