0
我使用的是lightbox6.0(免費)。這個軟件爲joomla2.5創建一個模塊(僅適用於lightbox模塊)。 但我想安裝到jooomla3.3。如何改變它並在joomla3中使用。 當我在joomla3安裝裝配模塊我有這樣的錯誤,鑑於:如何在joomla3中使用lightbox5
addScript(JURI::base() . "modules/mod_visuallb/engine/js/vlbdata{$galid}.js"); ?>
mod_visullb1.php:
<?php
/**
* @title VisualLightBox gallery module
* @version 1.1.0
* @website http://www.visuallightbox.com
* @copyright Copyright (C) 2012 VisualLightBox.com. All rights reserved.
*/
defined('_JEXEC') or die('Restricted access');
$document = JFactory::getDocument();
$galid = $params->get('galid', "1");
$document->addStyleSheet(JURI::base() . 'modules/mod_visuallb1/engine/css/visuallightbox.css');
$document->addStyleSheet(JURI::base() . "modules/mod_visuallb1/engine/css/vlightbox{$galid}.css");
//$document->addScript(JURI::base() . 'modules/mod_visuallb/engine/js/jquery.min.js');
//$document->addScript(JURI::base() . 'modules/mod_visuallb/engine/js/visuallightbox.js');
?>
<script type="text/javascript">
if (!window.jQuery || !jQuery.visualLightBox) document.write(
(!window.jQuery?
'<scr'+'ipt src="<?=JURI::base()?>modules/mod_visuallb1/engine/js/jquery.min.js"></scr'+'ipt>'
+ (window.$?('<scr'+'ipt>jQuery.noConflict()</scr'+'ipt>'): '') :'')
+ '<scr'+'ipt src="<?=JURI::base()?>modules/mod_visuallb1/engine/js/visuallightbox.js"></scr'+'ipt>'
);
</script>
<?
require(JModuleHelper::getLayoutPath('mod_visuallb1'));
//$document->addScript(JURI::base() . "modules/mod_visuallb/engine/js/vlbdata{$galid}.js");
?>
我離開模塊here