PDA

Zobacz pełną wersję : problem z multithumb



pardokan
23-09-2008, 20:10
Don’t worry, here is the solution, below is the code I use to remove the mootools.js and caption.js view plain (http://www.blog.highub.com/cms/joomla-cms/remove-mootools-from-joomla-header/#)copy to clipboard (http://www.blog.highub.com/cms/joomla-cms/remove-mootools-from-joomla-header/#)print (http://www.blog.highub.com/cms/joomla-cms/remove-mootools-from-joomla-header/#)? (http://www.blog.highub.com/cms/joomla-cms/remove-mootools-from-joomla-header/#)


<?php
$user =& JFactory::getUser();
if ($user->get('guest') == 1) {
$headerstuff = $this->getHeadData();
$headerstuff['scripts'] = array();
$this->setHeadData($headerstuff); }
?>
<jdoc:include type="head" />
<?php $user =& JFactory::getUser(); if ($user->get('guest') == 1) { $headerstuff = $this->getHeadData(); $headerstuff['scripts'] = array(); $this->setHeadData($headerstuff); } ?> <jdoc:include type="head" /> In case you want to keep the caption.js, (some Joomla! components, modules or plugins uses caption.js, for example:Acajoom), you can choose to remove mootools only. Below is the PHP code i use to do so:

view plain (http://www.blog.highub.com/cms/joomla-cms/remove-mootools-from-joomla-header/#)copy to clipboard (http://www.blog.highub.com/cms/joomla-cms/remove-mootools-from-joomla-header/#)print (http://www.blog.highub.com/cms/joomla-cms/remove-mootools-from-joomla-header/#)? (http://www.blog.highub.com/cms/joomla-cms/remove-mootools-from-joomla-header/#)


<?php
// Remove auto generated mootool from header
$headerstuff = $this->getHeadData();
reset($headerstuff['scripts']);
$moo = key($headerstuff['scripts']);
unset($headerstuff['scripts'][$moo]);
$this->setHeadData($headerstuff);
?>
<jdoc:include type="head">
<?php // Remove auto generated mootool from header $headerstuff = $this->getHeadData(); reset($headerstuff['scripts']); $moo = key($headerstuff['scripts']); unset($headerstuff['scripts'][$moo]); $this->setHeadData($headerstuff); ?> <jdoc:include type="head"> Hope these tips help!


Okazało się, że multithumb nadal nie działa a efekt slimbox zniknął czy ktoś wie jak to odkręcić to jest jak przywrócić to uruchamianie się mootools.js itp./ joomla 1.5.7/