search background

This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

You have declined cookies. This decision can be reversed.

You have allowed cookies to be placed on your computer. This decision can be reversed.

×

Error

Oops! Template Init. failed.. ; (

Convert JCE Mediabox popups to Seblod type

DSC00261 (Custom)

One of the styling problems we often encounter while building sites with Joomla itself or - as in our case using Seblod CCK, is each extension having it's own popups style resultiing in visually inconsistent site. Here is a short trick to convert JCE Mediabox plugin popups to default Seblod popup type (Seblod uses JQuery Colorbox) - you can see colorbox in action on this site if you click on example image bellow.

What you need to do is open plugins/system/jcemediabox/jcemediabox.php and after this line:

 

if ($pop || ($task == 'new' || $task == 'edit') || $tmpl == 'component') {
            return;
        }

 

insert this code:

 

jimport('cms.cck.cck');
JCck::loadjQuery();
JCck::loadModalBox();
$document->addScriptDeclaration ( 
"jQuery(document).ready(function(){jQuery('a.jcepopup').colorbox();});" 
);
return;

 

This trick will also work when you are using Simple gallery Pro with Colorbox engine or Modalizer in Colorbox mode or any other extension that loads jqery and colorbox scripts.

avatar2
Klas
Joomla co-author, webdesigner, php programmer and a creative mind.
A rebel with a big mouth that is proud to be banned by the Joomla project.
Klas16 August 2012
 
Facebook Twitter Google plus Email

ARTICLE DETAILS

©BzZzZ 2016, all rights reserved | Terms of service | Privacy policy