是否可以在 joomla 2.5 上使用 joomla 3 模块? [英] Is is possible to use joomla 3 modules on joomla 2.5?

查看:25
本文介绍了是否可以在 joomla 2.5 上使用 joomla 3 模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法可以使用 Joomla!J!2.5 上的 3 个扩展?

Is there any way to use Joomla! 3 extensions on J!2.5 ?

我需要在 Joomla 上使用 Noo Timeline!2.5 但没有版本.

I need to use Noo Timeline on Joomla! 2.5 but there is no version for it.

http://extensions.joomla.org/extensions/calendars-a-events/time/content-date-a-time/25732

最好的问候,

推荐答案

更改以下文件中的以下代码

Change below codes in below files

在 modules/mod_noo_timeline/elements/nootimeline.php 行号:25

改变

JHtml::_('jquery.ui', array('core','sortable')); 

致:

$document = JFactory::getDocument();
$document->addScript("//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js");
$document->addScript("//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js");
$document->addStyleSheet("//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css"); 

在 modules/mod_noo_timeline/mod_noo_timeline.php 第 16 行

添加以下代码:

$document->addScript("//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js");

第 24 行

更改以下代码:

jQuery(document).ready(function($){

致:

$(document).ready(function($){

在 modules/mod_noo_timeline/assets/css/style.css 行号:45

替换类的 css (.noo-tl-item.left):

replace css for class (.noo-tl-item.left):

.noo-tl-item.left {
float: left;
width:50%;
}

它对我有用.

这篇关于是否可以在 joomla 2.5 上使用 joomla 3 模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆