<?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: JQuery Plugin for Joomla</title>
	<atom:link href="http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/</link>
	<description>Blogging on Joomla Development /Codeigniter/JQuery/Mootools/Wordpress - All Related to Web</description>
	<lastBuildDate>Thu, 08 Jul 2010 09:14:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: player</title>
		<link>http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/comment-page-1/#comment-469</link>
		<dc:creator>player</dc:creator>
		<pubDate>Sun, 23 May 2010 15:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/#comment-469</guid>
		<description>Orz

Setp 2. edit File: osjquery.xml
It does not display properly.

http://www.player.idv.tw/file/Joomla/plgOSJQuery-1.4.2.zip</description>
		<content:encoded><![CDATA[<p>Orz</p>
<p>Setp 2. edit File: osjquery.xml<br />
It does not display properly.</p>
<p><a href="http://www.player.idv.tw/file/Joomla/plgOSJQuery-1.4.2.zip" rel="nofollow">http://www.player.idv.tw/file/Joomla/plgOSJQuery-1.4.2.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: player</title>
		<link>http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/comment-page-1/#comment-468</link>
		<dc:creator>player</dc:creator>
		<pubDate>Sun, 23 May 2010 15:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/#comment-468</guid>
		<description>Try update OSJQuery to jQuery 1.4.2

1.Download plgOSJQuery-1.1.zip and upzip

2.edit File: osjquery.xml
---------------------------


	System - OSJQuery
	Sanjeev Shrestha
	December 2009
	Copyright (C) 2009 www.joomlaguru.com.np. All rights reserved.
	http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
	info@joomlaguru.com.np
	www.joomlaguru.com.np
	1.4.2
	Use Jquery with Joomla! View details on www.sanjeevshrestha.com.np or www.joomlaguru.com.np
	
		osjquery.php
		osjquery
	
			
		
			No
			Yes
		
		
			No
			Yes
		
		
			with Mootools
			Only JQuery (No Mootools)
		
		
			No
			Yes
				
	


3.edit File:osjquery.php
---------------------------
loadLanguage( );
	}

	/**
	 * Display the tracking code
	 *
	 */
	function onAfterDispatch()
	{
		//Load Parameters
		$frontend = $this-&gt;params-&gt;get(&#039;jquery_frontend&#039;, 0);
		$admin = $this-&gt;params-&gt;get(&#039;jquery_administrator&#039;, 0);
		$usetype = $this-&gt;params-&gt;get(&#039;use_type&#039;, &#039;&#039;);
		$usemin = $this-&gt;params-&gt;get(&#039;jquery_min&#039;, 1);

		//Get Application
		$app =&amp; JFactory::getApplication();

		
		//Check to see if jquery is already included
		if( $app-&gt;get(&#039;jquery&#039;) === true ) 
		{
			return false;
		}

		if($app-&gt;isAdmin()&amp;&amp;$admin==0)
		{
			return false;
		}

		if($app-&gt;isSite()&amp;&amp;$frontend==0)
		{
			return false;
		}
		
		if($usemin==1)
		{
			$jqueryfile = &#039;jquery-1.4.2.min.js&#039;;
		}
		else
		{
			$jqueryfile = &#039;jquery-1.4.2.js&#039;;
		}
		
		//Get Document
		$document =&amp; JFactory::getDocument();
		
		$filepath = JPATH_ROOT . DS . &#039;plugins&#039; . DS . &#039;system&#039; . DS . &#039;osjquery&#039; . DS;
		$urlpath = JURI::root( true ) . &#039;/plugins/system/osjquery/&#039;;

		//Remove Mootools first

		$path=&#039;media/system/js/mootools.js&#039;;
		$path =  JURI::root(true).&#039;/&#039;.$path;

		unset($document-&gt;_scripts[$path]);
		$scripts=$document-&gt;_scripts;
		
		switch($usetype)
		{
			case &#039;2&#039;:
				//Remove Mootools
					
				if(file_exists($filepath.$jqueryfile))
				{
					$document-&gt;addScript($urlpath.$jqueryfile);
				}

				break;
			case &#039;1&#039;:
				//Add Mootools
				$document-&gt;addScript($path);
				//Add JQuery
				if(file_exists($filepath.$jqueryfile))
				{
					$document-&gt;addScript($urlpath.$jqueryfile);
				}
				//Add Conflict removal Code
				$document-&gt;addScriptDeclaration(&quot;jQuery.noConflict();&quot;);
			default:
				break;
		}
		
		if(count($scripts)&gt;0)
		{
			foreach($scripts as $key=&gt;$s)
			{
				unset($document-&gt;_scripts[$key]);
					$document-&gt;addScript($key);
			}
		}

		//Set jquery for other application to check if the jquery is included or not.
		$app-&gt;set(&#039;jquery&#039;,true);
	}
}

4. Download  jquery-1.4.2.js and jquery-1.4.2.min.js to Folder osjquery
5.Compress to plgOSJQuery-1.4.2.zip
---------------------------</description>
		<content:encoded><![CDATA[<p>Try update OSJQuery to jQuery 1.4.2</p>
<p>1.Download plgOSJQuery-1.1.zip and upzip</p>
<p>2.edit File: osjquery.xml<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>	System &#8211; OSJQuery<br />
	Sanjeev Shrestha<br />
	December 2009<br />
	Copyright (C) 2009 <a href="http://www.joomlaguru.com.np" rel="nofollow">http://www.joomlaguru.com.np</a>. All rights reserved.<br />
	<a href="http://www.gnu.org/licenses/gpl-3.0.html" rel="nofollow">http://www.gnu.org/licenses/gpl-3.0.html</a> GNU/GPL<br />
	<a href="mailto:info@joomlaguru.com.np">info@joomlaguru.com.np</a><br />
	<a href="http://www.joomlaguru.com.np" rel="nofollow">http://www.joomlaguru.com.np</a><br />
	1.4.2<br />
	Use Jquery with Joomla! View details on <a href="http://www.sanjeevshrestha.com.np" rel="nofollow">http://www.sanjeevshrestha.com.np</a> or <a href="http://www.joomlaguru.com.np" rel="nofollow">http://www.joomlaguru.com.np</a></p>
<p>		osjquery.php<br />
		osjquery</p>
<p>			No<br />
			Yes</p>
<p>			No<br />
			Yes</p>
<p>			with Mootools<br />
			Only JQuery (No Mootools)</p>
<p>			No<br />
			Yes</p>
<p>3.edit File:osjquery.php<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
loadLanguage( );<br />
	}</p>
<p>	/**<br />
	 * Display the tracking code<br />
	 *<br />
	 */<br />
	function onAfterDispatch()<br />
	{<br />
		//Load Parameters<br />
		$frontend = $this-&gt;params-&gt;get(&#8216;jquery_frontend&#8217;, 0);<br />
		$admin = $this-&gt;params-&gt;get(&#8216;jquery_administrator&#8217;, 0);<br />
		$usetype = $this-&gt;params-&gt;get(&#8216;use_type&#8217;, &#8221;);<br />
		$usemin = $this-&gt;params-&gt;get(&#8216;jquery_min&#8217;, 1);</p>
<p>		//Get Application<br />
		$app =&amp; JFactory::getApplication();</p>
<p>		//Check to see if jquery is already included<br />
		if( $app-&gt;get(&#8216;jquery&#8217;) === true )<br />
		{<br />
			return false;<br />
		}</p>
<p>		if($app-&gt;isAdmin()&amp;&amp;$admin==0)<br />
		{<br />
			return false;<br />
		}</p>
<p>		if($app-&gt;isSite()&amp;&amp;$frontend==0)<br />
		{<br />
			return false;<br />
		}</p>
<p>		if($usemin==1)<br />
		{<br />
			$jqueryfile = &#8216;jquery-1.4.2.min.js&#8217;;<br />
		}<br />
		else<br />
		{<br />
			$jqueryfile = &#8216;jquery-1.4.2.js&#8217;;<br />
		}</p>
<p>		//Get Document<br />
		$document =&amp; JFactory::getDocument();</p>
<p>		$filepath = JPATH_ROOT . DS . &#8216;plugins&#8217; . DS . &#8217;system&#8217; . DS . &#8216;osjquery&#8217; . DS;<br />
		$urlpath = JURI::root( true ) . &#8216;/plugins/system/osjquery/&#8217;;</p>
<p>		//Remove Mootools first</p>
<p>		$path=&#8217;media/system/js/mootools.js&#8217;;<br />
		$path =  JURI::root(true).&#8217;/&#8217;.$path;</p>
<p>		unset($document-&gt;_scripts[$path]);<br />
		$scripts=$document-&gt;_scripts;</p>
<p>		switch($usetype)<br />
		{<br />
			case &#8216;2&#8242;:<br />
				//Remove Mootools</p>
<p>				if(file_exists($filepath.$jqueryfile))<br />
				{<br />
					$document-&gt;addScript($urlpath.$jqueryfile);<br />
				}</p>
<p>				break;<br />
			case &#8216;1&#8242;:<br />
				//Add Mootools<br />
				$document-&gt;addScript($path);<br />
				//Add JQuery<br />
				if(file_exists($filepath.$jqueryfile))<br />
				{<br />
					$document-&gt;addScript($urlpath.$jqueryfile);<br />
				}<br />
				//Add Conflict removal Code<br />
				$document-&gt;addScriptDeclaration(&#8220;jQuery.noConflict();&#8221;);<br />
			default:<br />
				break;<br />
		}</p>
<p>		if(count($scripts)&gt;0)<br />
		{<br />
			foreach($scripts as $key=&gt;$s)<br />
			{<br />
				unset($document-&gt;_scripts[$key]);<br />
					$document-&gt;addScript($key);<br />
			}<br />
		}</p>
<p>		//Set jquery for other application to check if the jquery is included or not.<br />
		$app-&gt;set(&#8216;jquery&#8217;,true);<br />
	}<br />
}</p>
<p>4. Download  jquery-1.4.2.js and jquery-1.4.2.min.js to Folder osjquery<br />
5.Compress to plgOSJQuery-1.4.2.zip<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Hellyer</title>
		<link>http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/comment-page-1/#comment-267</link>
		<dc:creator>Richard Hellyer</dc:creator>
		<pubDate>Tue, 27 Apr 2010 20:42:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/#comment-267</guid>
		<description>This is an outstanding plugin and thanks for doing it!

I am having a problem though with Jcaption.js that seems to be brought in automatically and appears to rely on mootools. Is there a way of removing jcaption as well?

Thanks again, Richard</description>
		<content:encoded><![CDATA[<p>This is an outstanding plugin and thanks for doing it!</p>
<p>I am having a problem though with Jcaption.js that seems to be brought in automatically and appears to rely on mootools. Is there a way of removing jcaption as well?</p>
<p>Thanks again, Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nilambar sharma</title>
		<link>http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/comment-page-1/#comment-155</link>
		<dc:creator>nilambar sharma</dc:creator>
		<pubDate>Sat, 20 Feb 2010 15:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/#comment-155</guid>
		<description>nice. very useful and more interesting is that its free as free beer. thanks a lot. :)</description>
		<content:encoded><![CDATA[<p>nice. very useful and more interesting is that its free as free beer. thanks a lot. <img src='http://www.sanjeevshrestha.com.np/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjeev</title>
		<link>http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/comment-page-1/#comment-138</link>
		<dc:creator>Sanjeev</dc:creator>
		<pubDate>Fri, 25 Dec 2009 04:47:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/#comment-138</guid>
		<description>@pres: The usage is simple. Install the plugin, enable it and you can use the jquery in your codes. You can write jQuery codes in your views, modules, or plugins after the installation. But be advised; you need to use jQuery instead of $ operator if you use jQuery in conjunction with mootools. 

 You don&#039;t need to insert any {plugin_name} type of code. This is a system plugin and enhances the core to support jQuery.</description>
		<content:encoded><![CDATA[<p>@pres: The usage is simple. Install the plugin, enable it and you can use the jquery in your codes. You can write jQuery codes in your views, modules, or plugins after the installation. But be advised; you need to use jQuery instead of $ operator if you use jQuery in conjunction with mootools. </p>
<p> You don&#8217;t need to insert any {plugin_name} type of code. This is a system plugin and enhances the core to support jQuery.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pres</title>
		<link>http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/comment-page-1/#comment-137</link>
		<dc:creator>pres</dc:creator>
		<pubDate>Thu, 24 Dec 2009 15:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/12/jquery-plugin-for-joomla/#comment-137</guid>
		<description>can u give a usage example ?  Plugins are usually like &quot;{plugin_name }&quot;. Therefore, unclear how to use.</description>
		<content:encoded><![CDATA[<p>can u give a usage example ?  Plugins are usually like &#8220;{plugin_name }&#8221;. Therefore, unclear how to use.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
