- Posts: 4
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.
The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.
The topics in this category are for historical interest only. Owing to the structural changes that occurred in K 1.7, many of the ideas in these topics will not work with later versions and, for that reason, the topics are locked.
Question Is it possible to activate Mootools 1.2 ONLY for Kunena Pages?
15 years 2 months ago #86753
by luisfdoc1
After installing Kunena 1.6, I had to install other extensions (Virtuemart), and I am having some problems because of having Mootools 1.2 activated. So, is there a way I can only have Mootools 1.2 for the Kunena section?
Any other solution?
Thanks!
Any other solution?
Thanks!
Please Log in or Create an account to join the conversation.
15 years 2 months ago - 15 years 2 months ago #86756
by ChaosHead
Replied by ChaosHead on topic Re: Is it possible to activate Mootools 1.2 ONLY for Kunena Pages?
There is a hack for this purpose.:
In index.php your Joomla template write this сode:
In initialize.php your Kunena template:
after this line
write this сode:
In advance create a file Mootools 1.2 with such name: plugins/system/mtupgrade/mootools2.js
In index.php your Joomla template write this сode:
Code:
<?
$component = $_GET['option'];
if($component=="com_kunena")
{
/*Disable mootools*/
$headerstuff = $this->getHeadData();
$scripts = $headerstuff['scripts'];
$headerstuff['scripts'] = array();
foreach($scripts as $url=>$type) {
if (strpos($url, 'js/mootools.js') === false && strpos($url, 'mtupgrade/mootools.js') === false) {
$headerstuff['scripts'][$url] = $type;
}
}
$this->setHeadData($headerstuff);
/*Disable mootools complete*/
}
?>
<jdoc:include type="head" />
In initialize.php your Kunena template:
after this line
Code:
$template->loadMootools();
Code:
$document =& JFactory::getDocument();
$document->addScript("/media/system/js/caption.js");
$document->addScript("/plugins/system/mtupgrade/mootools2.js");
In advance create a file Mootools 1.2 with such name: plugins/system/mtupgrade/mootools2.js
Last edit: 15 years 2 months ago by ChaosHead.
The following user(s) said Thank You: luisfdoc1
Please Log in or Create an account to join the conversation.
15 years 2 months ago - 15 years 2 months ago #86867
by luisfdoc1
Replied by luisfdoc1 on topic Re: Is it possible to activate Mootools 1.2 ONLY for Kunena Pages?
Thank you ChaosHead,
There is a small issue... My javascript files are being duplicated (I am loading each JS twice!)
How can I solve that?
Also, The "AJAX" features in Kunena stop working... such as Model windows, collapsing threads, etc...
Thanks!
There is a small issue... My javascript files are being duplicated (I am loading each JS twice!)
How can I solve that?
Also, The "AJAX" features in Kunena stop working... such as Model windows, collapsing threads, etc...
Thanks!
Last edit: 15 years 2 months ago by luisfdoc1.
Please Log in or Create an account to join the conversation.
- etkritikonspoudon
-
- Offline
- Senior Member
-
Less
More
- Posts: 110
- Thank you received: 7
15 years 2 months ago #86913
by etkritikonspoudon
Replied by etkritikonspoudon on topic Re: Is it possible to activate Mootools 1.2 ONLY for Kunena Pages?
You could try this out
extensions.joomla.org/extensions/core-en...mbed-a-include/14726
extensions.joomla.org/extensions/core-en...mbed-a-include/14726
Please Log in or Create an account to join the conversation.
15 years 2 months ago #86985
by luisfdoc1
Replied by luisfdoc1 on topic Re: Is it possible to activate Mootools 1.2 ONLY for Kunena Pages?
Thanks!
Also just doing the Kunena part of ChaosHead trick works! (Without the Joomla step)
Also just doing the Kunena part of ChaosHead trick works! (Without the Joomla step)
Please Log in or Create an account to join the conversation.
15 years 2 months ago #87331
by daviper
Replied by daviper on topic Re: Is it possible to activate Mootools 1.2 ONLY for Kunena Pages?
Neither ChaosHead's trick or loadplugin_CK don't work for me. Could anyone point me to the right direction here?
ChaosHead, when you wrote "In advance create a file Mootools 1.2 with such name: plugins/system/mtupgrade/mootools2.js" did you mean just copy mootools.js, rename it to mootools.js and upload it? Because I did that and it didn't work.
I really need to fix BBcode in Kunena as soon as possible
ChaosHead, when you wrote "In advance create a file Mootools 1.2 with such name: plugins/system/mtupgrade/mootools2.js" did you mean just copy mootools.js, rename it to mootools.js and upload it? Because I did that and it didn't work.
I really need to fix BBcode in Kunena as soon as possible
Please Log in or Create an account to join the conversation.
Time to create page: 0.242 seconds