<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Replace standart Joomla MooTools with yours on front-end</title>
	<atom:link href="http://fragov.com/blog/2009/10/21/replace-standart-joomla-mootools-with-yours-on-front-end/feed/" rel="self" type="application/rss+xml" />
	<link>http://fragov.com/blog/2009/10/21/replace-standart-joomla-mootools-with-yours-on-front-end/</link>
	<description>About my life, programming, freelancing</description>
	<lastBuildDate>Wed, 18 Apr 2012 09:16:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jamal Alexander</title>
		<link>http://fragov.com/blog/2009/10/21/replace-standart-joomla-mootools-with-yours-on-front-end/comment-page-1/#comment-65</link>
		<dc:creator>Jamal Alexander</dc:creator>
		<pubDate>Wed, 30 Mar 2011 14:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://fragov.com/blog/?p=64#comment-65</guid>
		<description>Fragov;

I would like to thank you for this wonderful &quot;life saving&quot; script. My issue with method 1 was: When I tried it in my template, the template loaded Mootools scripts  in the header loop from my custom location (templates/scripts/mootools.js), and all my plugins are using Joomla Mootools (/media/system/js/mootools.js)
I wanted to &quot;unset&quot; my custom location, cause it was breaking my clients website (Kickstreet.com)

I modified the script and now, in the Header Loop it unsets my custom Mootools so pages load with only one version, clearing all my joomla page erors, see below:
---------------------------------------


 getHeadData();                   // Get the current HEAD buffer
    unset($header[&#039;scripts&#039;][$this-&gt;baseurl . &#039;/scripts/mootools.js&#039;]);    // Clear templates custom MooTools
    $this-&gt;setHeadData($header);                      // Update the HEAD buffer
     ?&gt;
    
     

-------------------------------------

DELETE ALL THIS ALSO!!!!!!!!!

-------------------------------------
# &lt;!-- Load MooTools at first --&gt;  
# &lt;script type=&quot;text/javascript&quot; src=&quot;templates/template ?&gt;/js/mootools/mootools-1.2.1-core.js&quot;&gt;  
# &lt;script type=&quot;text/javascript&quot; src=&quot;templates/template ?&gt;/js/mootools/mootools-1.2-more.js&quot;&gt;  
# &lt;script type=&quot;text/javascript&quot; src=&quot;templates/template ?&gt;/js/mootools/mootools-1.2-compat.js&quot;&gt;  
-------------------------------------

Hope that helps..</description>
		<content:encoded><![CDATA[<p>Fragov;</p>
<p>I would like to thank you for this wonderful &#8220;life saving&#8221; script. My issue with method 1 was: When I tried it in my template, the template loaded Mootools scripts  in the header loop from my custom location (templates/scripts/mootools.js), and all my plugins are using Joomla Mootools (/media/system/js/mootools.js)<br />
I wanted to &#8220;unset&#8221; my custom location, cause it was breaking my clients website (Kickstreet.com)</p>
<p>I modified the script and now, in the Header Loop it unsets my custom Mootools so pages load with only one version, clearing all my joomla page erors, see below:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p> getHeadData();                   // Get the current HEAD buffer<br />
    unset($header['scripts'][$this-&gt;baseurl . '/scripts/mootools.js']);    // Clear templates custom MooTools<br />
    $this-&gt;setHeadData($header);                      // Update the HEAD buffer<br />
     ?&gt;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>DELETE ALL THIS ALSO!!!!!!!!!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
# <!-- Load MooTools at first --><br />
# &lt;script type=&quot;text/javascript&quot; src=&quot;templates/template ?&gt;/js/mootools/mootools-1.2.1-core.js&#8221;&gt;<br />
# &lt;script type=&quot;text/javascript&quot; src=&quot;templates/template ?&gt;/js/mootools/mootools-1.2-more.js&#8221;&gt;<br />
# &lt;script type=&quot;text/javascript&quot; src=&quot;templates/template ?&gt;/js/mootools/mootools-1.2-compat.js&#8221;&gt;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Hope that helps..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fragov</title>
		<link>http://fragov.com/blog/2009/10/21/replace-standart-joomla-mootools-with-yours-on-front-end/comment-page-1/#comment-59</link>
		<dc:creator>fragov</dc:creator>
		<pubDate>Mon, 05 Jul 2010 07:44:23 +0000</pubDate>
		<guid isPermaLink="false">http://fragov.com/blog/?p=64#comment-59</guid>
		<description>I founded better way to remove base MooTools library, replace top &lt;?php ... ?&gt; with:

&lt;?php
// no direct access
defined(&#039;_JEXEC&#039;) or die(&#039;Restricted access&#039;);
$template_baseurl = $this-&gt;baseurl . &#039;/templates/&#039; . $this-&gt;template;
$header = $this-&gt;getHeadData(); 
unset ($header[&#039;scripts&#039;][$this-&gt;baseurl . &#039;/media/system/js/mootools.js&#039;]);
$this-&gt;setHeadData($header); 
?&gt;</description>
		<content:encoded><![CDATA[<p>I founded better way to remove base MooTools library, replace top < ?php ... ?> with:</p>
<p>< ?php<br />
// no direct access<br />
defined('_JEXEC') or die('Restricted access');<br />
$template_baseurl = $this->baseurl . &#8216;/templates/&#8217; . $this->template;<br />
$header = $this->getHeadData();<br />
unset ($header['scripts'][$this->baseurl . '/media/system/js/mootools.js']);<br />
$this->setHeadData($header);<br />
?></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
