<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Let&#039;s start again... &#187; Joomla</title> <atom:link href="http://manchumahara.com/joomla/feed/" rel="self" type="application/rss+xml" /><link>http://manchumahara.com</link> <description>&#34;Manchumahara&#34; ...... The virtual, crazy, vagabond and  an emotional stupid!</description> <lastBuildDate>Thu, 02 Feb 2012 13:47:24 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Stop SOPA Ribon system plugin for joomla</title><link>http://manchumahara.com/2012/01/19/stop-sopa-ribon-system-plugin-for-joomla/</link> <comments>http://manchumahara.com/2012/01/19/stop-sopa-ribon-system-plugin-for-joomla/#comments</comments> <pubDate>Thu, 19 Jan 2012 16:26:06 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[Joomla Extention]]></category> <category><![CDATA[SOPA]]></category> <category><![CDATA[stop sopa]]></category> <category><![CDATA[stop sopa joomla plugin]]></category><guid isPermaLink="false">http://manchumahara.com/?p=711</guid> <description><![CDATA[Actually title says all. Download BTW, don&#8217;t forget to hit the share buttons. Joomla version support Joomla1.5 Native Joomla1.6 Native Joomla1.7 Native Licence GPL2 or later, non commercial. Usages Download, install, active and &#8230; voila ! Comment is open. You &#8230; <a href="http://manchumahara.com/2012/01/19/stop-sopa-ribon-system-plugin-for-joomla/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><a href="http://manchumahara.com/wp-content/uploads/2012/01/Home-2012-01-19-22-18-22.png"><img src="http://manchumahara.com/wp-content/uploads/2012/01/Home-2012-01-19-22-18-22-282x300.png" alt="" title="Home 2012-01-19 22-18-22" width="282" height="300" class="alignright size-medium wp-image-712" /></a>Actually title says all.</p><h4>Download</h4> Note: There is a file embedded within this post, please visit this post to download the file.<p>BTW, don&#8217;t forget to hit the share buttons.</p><p><span id="more-711"></span></p><h4>Joomla version support</h4><ul><li>Joomla1.5 Native</li><li>Joomla1.6 Native</li><li>Joomla1.7 Native</li></ul><h4>Licence</h4><p><a href="http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL" target="_blank">GPL2</a> or later, non commercial.</p><h4>Usages</h4><p>Download, install, active  and &#8230; voila !</p>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2012/01/19/stop-sopa-ribon-system-plugin-for-joomla/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2012/01/19/stop-sopa-ribon-system-plugin-for-joomla/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Virtuemart2.0 content plugin support/fix for joomla1.6+</title><link>http://manchumahara.com/2011/12/27/virtuemart2-0-content-plugin-supportfix-for-joomla1-6/</link> <comments>http://manchumahara.com/2011/12/27/virtuemart2-0-content-plugin-supportfix-for-joomla1-6/#comments</comments> <pubDate>Tue, 27 Dec 2011 08:57:01 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[Tips and Tricks]]></category> <category><![CDATA[virtuemart2]]></category><guid isPermaLink="false">http://manchumahara.com/?p=700</guid> <description><![CDATA[I see virtuemart2 is compatible with joomla 1.6 , hope for 1.7 too. I see there is a issue for content plugin compatibility for vm2 in joomla1.6. Then checked the vm2 code where the plugin event if fired. I see &#8230; <a href="http://manchumahara.com/2011/12/27/virtuemart2-0-content-plugin-supportfix-for-joomla1-6/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I see <a href="http://virtuemart.net/downloads">virtuemart2</a> is compatible with joomla 1.6 , hope for 1.7 too. I see there is a issue for content plugin compatibility for vm2 in joomla1.6. Then checked the vm2 code where the plugin event if fired. I see the plugin trigger method is not compatible with 1.6 content plugin structure, the hook name is for old  joomla 1.5 series</p><p>note: paths are windows style<br /> folder  components\com_virtuemart\views\productdetails  open file view.html.php line 97<br /> <span id="more-700"></span></p><pre class="brush: php; title: ; notranslate">
if ( VmConfig::get('enable_content_plugin',0)) {
			// add content plugin //
			$dispatcher	=&amp; JDispatcher::getInstance();
			JPluginHelper::importPlugin('content');
			$product-&gt;text = $product-&gt;product_desc;
			$params = &quot;&quot;;
                        //var_dump($product);
			$results = $dispatcher-&gt;trigger('onPrepareContent',array (&amp; $product, &amp; $params, 0));
			$product-&gt;product_desc = $product-&gt;text;
		}
</pre><p>Here the content plugin trigger event is for 1.5 series. from joomla 1.6 the &#8220;onContentPrepare&#8221; and also takes one more input.</p><p>So for line 104 there should be a check for joomla version and add conditional event hook.</p><p>It&#8217;s not hard to check the joomla version. sample code used in k2 component</p><pre class="brush: php; title: ; notranslate">
// Determine Joomla! version
		if(version_compare( JVERSION, '1.6.0', 'ge' )) {
			define('K2_JVERSION','16');
		}
		else {
			define('K2_JVERSION','15');
		}
</pre><p>here is how the code can be for both 1.5 and 1.6+ content plugins support</p><pre class="brush: php; title: ; notranslate">
if ( VmConfig::get('enable_content_plugin',0)) {
			// add content plugin //
                        // Determine Joomla! version
                        if(version_compare( JVERSION, '1.6.0', 'ge' )) {
                                define('VMJ2_JVERSION','16');
                        }
                        else {
                                define('VMJ2_JVERSION','15');
                        }

			$dispatcher	=&amp; JDispatcher::getInstance();
			JPluginHelper::importPlugin('content');
			$product-&gt;text = $product-&gt;product_desc;
			$params = &quot;&quot;;
                        //var_dump($product);
                        if(VMJ2_JVERSION=='16'){
                            $results = $dispatcher-&gt;trigger('onContentPrepare',array ('com_virtuemart.productdetails',&amp; $product, &amp; $params, 0));
                        }
                        else{
                            $results = $dispatcher-&gt;trigger('onPrepareContent',array (&amp; $product, &amp; $params, 0));
                        }

			$product-&gt;product_desc = $product-&gt;text;
		}
</pre><p>Note2: I have opened a thread on virtuemart forum <a href="http://forum.virtuemart.net/index.php?topic=95485.0" target="_blank">here.</a></p>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2011/12/27/virtuemart2-0-content-plugin-supportfix-for-joomla1-6/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2011/12/27/virtuemart2-0-content-plugin-supportfix-for-joomla1-6/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Flexible content module position for joomla</title><link>http://manchumahara.com/2011/07/27/flexible-content-module-position-for-joomla/</link> <comments>http://manchumahara.com/2011/07/27/flexible-content-module-position-for-joomla/#comments</comments> <pubDate>Wed, 27 Jul 2011 09:25:28 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[Joomla Extention]]></category><guid isPermaLink="false">http://manchumahara.com/?p=683</guid> <description><![CDATA[Flexible content module position for joomla a content plugin for joomla which will allow to add module(s) in article in different ways. Let&#8217;s have a look into the plugin&#8217;s configuration page. Joomla Version Support: Joomla1.5 Native (Coming soon) Joomla1.6 Native &#8230; <a href="http://manchumahara.com/2011/07/27/flexible-content-module-position-for-joomla/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Flexible content module position for joomla a content plugin for joomla which will allow to add module(s) in article in different ways. Let&#8217;s have a look into the plugin&#8217;s configuration page.<br /> <img class="alignleft size-full wp-image-186" title="7-27-2011 2-39-50 PM" src="http://codeboxr.com/wp-content/uploads/2011/07/7-27-2011-2-39-50-PM.png" alt="flexible content module position" width="472" height="506" /></p><h4><strong>Joomla Version Support</strong>:</h4><ul><li>Joomla1.5 Native</li><li>(<strong>Coming soon</strong>) <del datetime="2011-07-08T12:23:48+00:00">Joomla1.6 Native</del></li></ul><blockquote><p><strong>Licence</strong>: GPL2 (<a href="http://www.gnu.org/licenses/gpl-2.0-standalone.html" target="_blank">See the licence</a>)</p></blockquote><p><span id="more-683"></span></p><h4>Features</h4><ul><li>Skip home page or not</li><li>Skip by item id</li><li>Skip home page or not</li><li>Supported Components<ul><li>Content (com_content)<ul><li>Skip Category view</li><li>Skip Section view</li><li>Exlcude category(s) by id</li><li>Exclude section(s) by id</li></ul></li></ul></li><li>Possible Module positions<ul><li>After Title</li><li>Before Content</li><li>After Content</li><li><strong>Inside Content(pending feature)</strong></li></ul></li><li>Possible ways of module(s) injection<ul><li>Module position name(s)</li><li>Module id (s)</li><li>Use comma separator for muktiple module position name or multiple module id</li><li>Position name or module id both can be used</li></ul></li></ul><h4>Downloads</h4><p>To Download please <a href="http://codeboxr.com/product/flexible-content-module-position-for-joomla" target="_blank">click here</a>.<br /> <img src="http://codeboxr.com/wp-content/uploads/2011/07/7-27-2011-2-40-45-PM.png" alt="" title="7-27-2011 2-40-45 PM" width="427" height="388" class="alignleft size-full wp-image-188" /></p>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2011/07/27/flexible-content-module-position-for-joomla/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2011/07/27/flexible-content-module-position-for-joomla/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How about joomla admin branding ?</title><link>http://manchumahara.com/2011/06/04/how-about-joomla-admin-branding/</link> <comments>http://manchumahara.com/2011/06/04/how-about-joomla-admin-branding/#comments</comments> <pubDate>Sat, 04 Jun 2011 10:35:27 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla Extention]]></category><guid isPermaLink="false">http://manchumahara.com/?p=679</guid> <description><![CDATA[I think if you are familiar with wordpress then you must know there are so many plugins to brand the wordpress login page(as well as registration page etc) but did u think something about joomla admin branding ? like changing &#8230; <a href="http://manchumahara.com/2011/06/04/how-about-joomla-admin-branding/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I think if you are familiar with wordpress then you must know there are so many plugins to brand the wordpress login page(as well as registration page etc) but did u think something about joomla admin branding ? like changing the admin panel header joomla logo or header color etc ?</p><p>Good news is I just made a small system plugin which will do some cool things. Please, it&#8217;s a start, I will add more features if you ask, just ask me <img src='http://manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br /> Let&#8217;s download the plugin, it&#8217;s for joomla1.5<br /> To download please <a href="http://codeboxr.com/product/joomla-admin-branding">click here</a>.</p>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2011/06/04/how-about-joomla-admin-branding/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2011/06/04/how-about-joomla-admin-branding/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Adding custom article submission form in joomla</title><link>http://manchumahara.com/2011/04/11/adding-custom-article-submission-form-in-joomla/</link> <comments>http://manchumahara.com/2011/04/11/adding-custom-article-submission-form-in-joomla/#comments</comments> <pubDate>Mon, 11 Apr 2011 07:38:57 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[Tips and Tricks]]></category><guid isPermaLink="false">http://manchumahara.com/?p=669</guid> <description><![CDATA[In joomla registered user can submit article from front end. Today I am going to show how we can create new/custom view for article submission form. Here we need to go some technical steps. So let&#8217;s make a plan what &#8230; <a href="http://manchumahara.com/2011/04/11/adding-custom-article-submission-form-in-joomla/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>In joomla registered user can submit article from front end. Today I am going to show how we can create new/custom view for article submission form. Here we need to go some technical steps. So let&#8217;s make a plan what we are going to do:</p><ol><li>Create new view</li><li>Add custom option for that view via xml configuration</li><li>Adding new menu with the new custom view</li><li><strong>Edit a core</strong> file to make this happen.</li></ol><h4>Create new view</h4><p>To create a new view(view of MVC model used in joomla) at first copy paste the two files(form.php and form.xml) and rename as form2.php and form2.xml from directory components/com_content/views/article/tmpl.</p><p>Now modify the code for form2.php<br /> <span id="more-669"></span></p><pre class="brush: php; title: ; notranslate">
&lt;?php // no direct access
defined('_JEXEC') or die('Restricted access');

$config =&amp; JFactory::getConfig();
$publish_up =&amp; JFactory::getDate($this-&gt;article-&gt;publish_up);
$publish_up-&gt;setOffset($config-&gt;getValue('config.offset'));
$publish_up = $publish_up-&gt;toFormat();

if (! isset($this-&gt;article-&gt;publish_down) || $this-&gt;article-&gt;publish_down == 'Never') {
	$publish_down = JText::_('Never');
} else {
	$publish_down =&amp; JFactory::getDate($this-&gt;article-&gt;publish_down);
	$publish_down-&gt;setOffset($config-&gt;getValue('config.offset'));
	$publish_down = $publish_down-&gt;toFormat();
}
?&gt;

&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
&lt;!--
function setgood() {
	// TODO: Put setGood back
	return true;
}

var sectioncategories = new Array;
&lt;?php
$i = 0;
foreach ($this-&gt;lists['sectioncategories'] as $k=&gt;$items) {
	foreach ($items as $v) {
		echo &quot;sectioncategories[&quot;.$i++.&quot;] = new Array( '$k','&quot;.addslashes( $v-&gt;id ).&quot;','&quot;.addslashes( $v-&gt;title ).&quot;' );\n\t\t&quot;;
	}
}
?&gt;

function submitbutton(pressbutton) {
	var form = document.adminForm;
	if (pressbutton == 'cancel') {
		submitform( pressbutton );
		return;
	}
	try {
		form.onsubmit();
	} catch(e) {
		alert(e);
	}

	// do field validation
	var text = &lt;?php echo $this-&gt;editor-&gt;getContent( 'text' ); ?&gt;
	if (form.title.value == '') {
		return alert ( &quot;&lt;?php echo JText::_( 'Article must have a title', true ); ?&gt;&quot; );
	} else if (text == '') {
		return alert ( &quot;&lt;?php echo JText::_( 'Article must have some text', true ); ?&gt;&quot;);
	} else if (parseInt('&lt;?php echo $this-&gt;article-&gt;sectionid;?&gt;')) {
		// for articles
		if (form.catid &amp;&amp; getSelectedValue('adminForm','catid') &lt; 1) {
			return alert ( &quot;&lt;?php echo JText::_( 'Please select a category', true ); ?&gt;&quot; );
		}
	}
	&lt;?php echo $this-&gt;editor-&gt;save( 'text' ); ?&gt;
	submitform(pressbutton);
}
//--&gt;
&lt;/script&gt;
&lt;?php if ($this-&gt;params-&gt;get('show_page_title', 1)) : ?&gt;
&lt;div class=&quot;componentheading&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('pageclass_sfx')); ?&gt;&quot;&gt;&lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('page_title')); ?&gt;&lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;form action=&quot;&lt;?php echo $this-&gt;action ?&gt;&quot; method=&quot;post&quot; name=&quot;adminForm&quot; onSubmit=&quot;setgood();&quot;&gt;
&lt;fieldset&gt;
&lt;legend&gt;&lt;?php echo JText::_('Editor'); ?&gt;&lt;/legend&gt;
&lt;table class=&quot;adminform&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;
	&lt;td&gt;
		&lt;div style=&quot;float: left;&quot;&gt;
			&lt;label for=&quot;title&quot;&gt;
				&lt;?php echo JText::_( 'Title' ); ?&gt;:
			&lt;/label&gt;
			&lt;input class=&quot;inputbox&quot; type=&quot;text&quot; id=&quot;title&quot; name=&quot;title&quot; size=&quot;50&quot; maxlength=&quot;100&quot; value=&quot;&lt;?php echo $this-&gt;escape($this-&gt;article-&gt;title); ?&gt;&quot; /&gt;
			&lt;input class=&quot;inputbox&quot; type=&quot;hidden&quot; id=&quot;alias&quot; name=&quot;alias&quot; value=&quot;&lt;?php echo $this-&gt;escape($this-&gt;article-&gt;alias); ?&gt;&quot; /&gt;
		&lt;/div&gt;
		&lt;div style=&quot;float: right;&quot;&gt;
			&lt;button type=&quot;button&quot; onclick=&quot;submitbutton('save')&quot;&gt;
				&lt;?php echo JText::_('Save') ?&gt;
			&lt;/button&gt;
			&lt;button type=&quot;button&quot; onclick=&quot;submitbutton('cancel')&quot;&gt;
				&lt;?php echo JText::_('Cancel') ?&gt;
			&lt;/button&gt;
		&lt;/div&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;?php
echo $this-&gt;editor-&gt;display('text', $this-&gt;article-&gt;text, '100%', '400', '70', '15');
?&gt;
&lt;/fieldset&gt;
&lt;fieldset&gt;
&lt;legend&gt;&lt;?php echo JText::_('Publishing'); ?&gt;&lt;/legend&gt;
&lt;table class=&quot;adminform&quot;&gt;
&lt;!--tr&gt;
	&lt;td class=&quot;key&quot;&gt;
		&lt;label for=&quot;sectionid&quot;&gt;
			&lt;?php echo JText::_( 'Section' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
		&lt;?php echo $this-&gt;lists['sectionid']; ?&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td class=&quot;key&quot;&gt;
		&lt;label for=&quot;catid&quot;&gt;
			&lt;?php echo JText::_( 'Category' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
		&lt;?php echo $this-&gt;lists['catid']; ?&gt;
	&lt;/td&gt;
&lt;/tr--&gt;
&lt;input type=&quot;hidden&quot; name=&quot;sectionid&quot; value=&quot;&lt;?php  echo $this-&gt;params-&gt;get('customsectionid', 0); ?&gt;&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;catid&quot; value=&quot;&lt;?php  echo $this-&gt;params-&gt;get('customcategoryid', 0); ?&gt;&quot; /&gt;
&lt;?php if ($this-&gt;user-&gt;authorize('com_content', 'publish', 'content', 'all')) : ?&gt;
&lt;!--tr&gt;
	&lt;td class=&quot;key&quot;&gt;
		&lt;label for=&quot;state&quot;&gt;
			&lt;?php echo JText::_( 'Published' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
		&lt;?php echo $this-&gt;lists['state']; ?&gt;
	&lt;/td&gt;
&lt;/tr--&gt;
&lt;input type=&quot;hidden&quot; name=&quot;state&quot; value=&quot;&lt;?php  echo $this-&gt;params-&gt;get('customstate', 1); ?&gt;&quot; /&gt;
&lt;?php endif; ?&gt;
&lt;!--tr&gt;
	&lt;td width=&quot;120&quot; class=&quot;key&quot;&gt;
		&lt;label for=&quot;frontpage&quot;&gt;
			&lt;?php echo JText::_( 'Show on Front Page' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
		&lt;?php echo $this-&gt;lists['frontpage']; ?&gt;
	&lt;/td&gt;
&lt;/tr--&gt;
&lt;input type=&quot;hidden&quot; name=&quot;frontpage&quot; value=&quot;&lt;?php  echo $this-&gt;params-&gt;get('customfrontpage', 0); ?&gt;&quot; /&gt;
&lt;tr&gt;
	&lt;td class=&quot;key&quot;&gt;
		&lt;label for=&quot;created_by_alias&quot;&gt;
			&lt;?php echo JText::_( 'Author Alias' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
		&lt;input type=&quot;text&quot; id=&quot;created_by_alias&quot; name=&quot;created_by_alias&quot; size=&quot;50&quot; maxlength=&quot;100&quot; value=&quot;&lt;?php echo $this-&gt;escape($this-&gt;article-&gt;created_by_alias); ?&gt;&quot; class=&quot;inputbox&quot; /&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;display:none;&quot;&gt;
	&lt;td class=&quot;key&quot;&gt;
		&lt;label for=&quot;publish_up&quot;&gt;
			&lt;?php echo JText::_( 'Start Publishing' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
	    &lt;?php echo JHTML::_('calendar', $publish_up, 'publish_up', 'publish_up', '%Y-%m-%d %H:%M:%S', array('class'=&gt;'inputbox', 'size'=&gt;'25',  'maxlength'=&gt;'19')); ?&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;display:none;&quot;&gt;
	&lt;td class=&quot;key&quot;&gt;
		&lt;label for=&quot;publish_down&quot;&gt;
			&lt;?php echo JText::_( 'Finish Publishing' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
	    &lt;?php echo JHTML::_('calendar', $publish_down, 'publish_down', 'publish_down', '%Y-%m-%d %H:%M:%S', array('class'=&gt;'inputbox', 'size'=&gt;'25',  'maxlength'=&gt;'19')); ?&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;display:none;&quot;&gt;
	&lt;td valign=&quot;top&quot; class=&quot;key&quot;&gt;
		&lt;label for=&quot;access&quot;&gt;
			&lt;?php echo JText::_( 'Access Level' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
		&lt;?php echo $this-&gt;lists['access']; ?&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style=&quot;display:none;&quot;&gt;
	&lt;td class=&quot;key&quot;&gt;
		&lt;label for=&quot;ordering&quot;&gt;
			&lt;?php echo JText::_( 'Ordering' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
		&lt;?php echo $this-&gt;lists['ordering']; ?&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/fieldset&gt;

&lt;fieldset style=&quot;display:none;&quot;&gt;
&lt;legend&gt;&lt;?php echo JText::_('Metadata'); ?&gt;&lt;/legend&gt;
&lt;table class=&quot;adminform&quot;&gt;
&lt;tr&gt;
	&lt;td valign=&quot;top&quot; class=&quot;key&quot;&gt;
		&lt;label for=&quot;metadesc&quot;&gt;
			&lt;?php echo JText::_( 'Description' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
		&lt;textarea rows=&quot;5&quot; cols=&quot;50&quot; style=&quot;width:500px; height:120px&quot; class=&quot;inputbox&quot; id=&quot;metadesc&quot; name=&quot;metadesc&quot;&gt;&lt;?php echo str_replace('&amp;','&amp;amp;',$this-&gt;article-&gt;metadesc); ?&gt;&lt;/textarea&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td  valign=&quot;top&quot; class=&quot;key&quot;&gt;
		&lt;label for=&quot;metakey&quot;&gt;
			&lt;?php echo JText::_( 'Keywords' ); ?&gt;:
		&lt;/label&gt;
	&lt;/td&gt;
	&lt;td&gt;
		&lt;textarea rows=&quot;5&quot; cols=&quot;50&quot; style=&quot;width:500px; height:50px&quot; class=&quot;inputbox&quot; id=&quot;metakey&quot; name=&quot;metakey&quot;&gt;&lt;?php echo str_replace('&amp;','&amp;amp;',$this-&gt;article-&gt;metakey); ?&gt;&lt;/textarea&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/fieldset&gt;

&lt;input type=&quot;hidden&quot; name=&quot;option&quot; value=&quot;com_content&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;id&quot; value=&quot;&lt;?php echo $this-&gt;article-&gt;id; ?&gt;&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;version&quot; value=&quot;&lt;?php echo $this-&gt;article-&gt;version; ?&gt;&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;created_by&quot; value=&quot;&lt;?php echo $this-&gt;article-&gt;created_by; ?&gt;&quot; /&gt;
&lt;input type=&quot;hidden&quot; name=&quot;referer&quot; value=&quot;&lt;?php echo str_replace(array('&quot;', '&lt;', '&gt;', &quot;'&quot;), '', @$_SERVER['HTTP_REFERER']); ?&gt;&quot; /&gt;
&lt;?php echo JHTML::_( 'form.token' ); ?&gt;
&lt;input type=&quot;hidden&quot; name=&quot;task&quot; value=&quot;&quot; /&gt;
&lt;/form&gt;
&lt;?php echo JHTML::_('behavior.keepalive'); ?&gt;
</pre><p>Here what we did is,</p><p>We set fixed section id got from menu option[see about this bellow in xml modify section], fixed category id, fixed option for publish state, fixed option for front page publish etc&#8230; just check the modified code. Also we hide some blocks using css so that the form submit page is more clean, you can remove that changes if you want.<br /> Now we need to modify the xml file to put the custom/new title, descriptions so that while creating menu we get the new menu with new title &amp; description.  So this is what I changed the xml file</p><h4>Add custom option for that view via xml configuration</h4><pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;metadata&gt;
	&lt;layout title=&quot;Article Submission Layout2&quot;&gt;
		&lt;message&gt;
			&lt;![CDATA[ARTICLE SUBMISSION LAYOUT2 DESC]]&gt;
		&lt;/message&gt;
	&lt;/layout&gt;
	&lt;state&gt;
		&lt;name&gt;Article Submission Layout3&lt;/name&gt;
		&lt;description&gt;ARTICLE SUBMISSION LAYOUT3 DESC&lt;/description&gt;
		&lt;params&gt;
			&lt;param name=&quot;customsectionid&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Section ID&quot; description=&quot;Put section ID&quot; /&gt;
			&lt;param name=&quot;customcategoryid&quot; type=&quot;text&quot; default=&quot;&quot; label=&quot;Category ID&quot; description=&quot;Put category ID&quot; /&gt;
			&lt;param name=&quot;customstate&quot; type=&quot;radio&quot; default=&quot;1&quot; label=&quot;Default Published&quot; description=&quot;Articles will be default published&quot;&gt;
				&lt;option value=&quot;0&quot;&gt;No&lt;/option&gt;
				&lt;option value=&quot;1&quot;&gt;Yes&lt;/option&gt;
            &lt;/param&gt;
            &lt;param name=&quot;customfrontpage&quot; type=&quot;radio&quot; default=&quot;0&quot; label=&quot;Default show on frontpage&quot; description=&quot;Defautl show the articles in front page&quot;&gt;
				&lt;option value=&quot;0&quot;&gt;No&lt;/option&gt;
				&lt;option value=&quot;1&quot;&gt;Yes&lt;/option&gt;
            &lt;/param&gt;
		&lt;/params&gt;
	&lt;/state&gt;
&lt;/metadata&gt;
</pre><p>Here the changed titles are<br /> Article Submission Layout -&gt; Article Submission Layout<strong>2</strong><br /> ARTICLE SUBMISSION LAYOUT DESC -&gt; ARTICLE SUBMISSION LAYOUT<strong>2</strong> DESC</p><p>To add the new strings we need to add two lines more in language file. Open file administrator/language/en-GB/en-GB.com_content.ini  and add at bottom of that file<br /> ARTICLE SUBMISSION LAYOUT2=Custom Article Submission Layout<br /> ARTICLE SUBMISSION LAYOUT2 DESC=Allows Users to submit an Article. Note: this will only work for Authors and above!</p><p>And we added some new options so that we can set from menu</p><ul><li>Set(fixed) category for posting(here category will be set as hidden field)</li><li>Set(fixed) section for posting(here category will be set as hidden field)</li><li>Set option for auto publish or not</li><li>Set option for publish in front page or not</li></ul><h4>Adding new menu with the new custom view</h4><p>Ok, now go to menu manager and try to create  new menu for article submit, I think you will get new option for submit form. Select that and fill the options in right for the menu&#8230; remember ? &#8230;we set some custom option in xml file for adding some fixed option to show in front end submit form ?<br /> <img class="aligncenter size-full wp-image-672" title="articlesubmit" src="http://manchumahara.com/wp-content/uploads/2011/04/articlesubmit.png" alt="" width="340" height="247" /><br /> <img class="aligncenter size-full wp-image-673" title="articlesubmit2" src="http://manchumahara.com/wp-content/uploads/2011/04/articlesubmit2.png" alt="" width="863" height="301" /></p><h4><strong>Edit a core</strong> file to make this happen</h4><p>So as I told you, to load the new template(that form, form2 are actually view) from view(view.html.php is the view file that loads the templates). Open file components/com_content/views/article/view.html.php  and add few lines after line 52</p><pre class="brush: php; title: ; notranslate">
if($this-&gt;getLayout() == 'form2') {
			$this-&gt;_displayForm($tpl);
			return;
		}
</pre>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2011/04/11/adding-custom-article-submission-form-in-joomla/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2011/04/11/adding-custom-article-submission-form-in-joomla/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>Loading only component in joomla</title><link>http://manchumahara.com/2011/03/18/loading-only-component-in-joomla/</link> <comments>http://manchumahara.com/2011/03/18/loading-only-component-in-joomla/#comments</comments> <pubDate>Fri, 18 Mar 2011 14:42:22 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[Tips and Tricks]]></category> <category><![CDATA[modal]]></category><guid isPermaLink="false">http://manchumahara.com/?p=658</guid> <description><![CDATA[I am not sure if my post title is perfect about what I want to express , let me clear. When we hit any link in joomla that must load any component with modules, header, footer &#8230; etc so many &#8230; <a href="http://manchumahara.com/2011/03/18/loading-only-component-in-joomla/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I am not sure if my post title is perfect about what I want to express <img src='http://manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> , let me clear. When we hit any link in joomla that must load any component with modules, header, footer &#8230; etc so many things. But what we need to do  if we want to load only the component part ? Ok if still you are not clear, then go to your template index.php file and check what you do with the following line</p><pre class="brush: plain; title: ; notranslate">&lt;jdoc:include type=&quot;component&quot; /&gt;</pre><p>Yes I am talking about how we can load only the component with any link that the above line does. let you are in a link in your site for com_content, for me now I am in that link in my local test site. http://localhost/jtest/index.php?option=com_content&amp;view=category&amp;layout=blog&amp;id=1&amp;Itemid=50</p><p>If I go to the  link I see full site. Ok now if I modify the url by appending &amp;tmpl=component at end</p><p>http://localhost/jtest/index.php?option=com_content&#038;view=category&#038;layout=blog&#038;id=1&#038;Itemid=50&#038;tmpl=component</p><p>I see only the component part.  Please try yourself. This is how we can just show the component part. If you check your template folder there is a file named component.php which actually shows if component only link is opens. If that file is missing in your template then find in the system template folder. Also there are another two template files for error.php and offline.php which shows the error page and site offline mode page.</p><p>Now let me discuss when you may need to load the component only part. Let&#8217;s you want to show something via joomla native popup window, like you want to make popup login you can do this trick. <a href="http://manchumahara.com/2010/04/24/adding-joomla-native-modal-to-frontend/" target="_blank">Once I wrote a article about how to make modal (popup window) using joomla native modal javascript library.</a></p><p>Example: go to my joomla demo site  <a href="http://idea52.com/old/">http://idea52.com/old/</a> click the feedback button, it will load the com_contact component in joomla native modal window.</p><p>Thank you.</p>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2011/03/18/loading-only-component-in-joomla/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2011/03/18/loading-only-component-in-joomla/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Adding custom generator tag in joomla</title><link>http://manchumahara.com/2010/11/17/adding-custom-generator-tag-in-joomla/</link> <comments>http://manchumahara.com/2010/11/17/adding-custom-generator-tag-in-joomla/#comments</comments> <pubDate>Tue, 16 Nov 2010 20:41:45 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[Tips and Tricks]]></category> <category><![CDATA[generator tag]]></category><guid isPermaLink="false">http://manchumahara.com/?p=640</guid> <description><![CDATA[Joomla creates a generator meta tag automatically. If you view source of your joomla site you can search for meta tag &#8220;generator&#8221;. The default generator tag looks like We can modify this generator tag and also can put option in &#8230; <a href="http://manchumahara.com/2010/11/17/adding-custom-generator-tag-in-joomla/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Joomla creates a generator meta tag automatically. If you view source of your joomla site you  can search for meta tag &#8220;generator&#8221;. The default generator tag looks like</p><pre class="brush: plain; title: ; notranslate">
&lt;meta name=&quot;generator&quot; content=&quot;Joomla! 1.5 - Open Source Content Management&quot; /&gt;
</pre><p>We can modify this generator tag and also can put option in our custom joomla template to change this meta tag to site name or something different. so let&#8217;s start <img src='http://manchumahara.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>In you template index&#8217;s file header tag you can write  a line like bellow</p><pre class="brush: php; title: ; notranslate">
&lt;?php
$this-&gt;setGenerator(&quot;your custom generator name&quot;);
$this-&gt;setGenerator(&quot;&quot;); // you can leave that as blank too
?&gt;
</pre><p>We can set a option in template</p><p>in template index.php  file</p><pre class="brush: php; title: ; notranslate">
&lt;?php
 	  $myconfig = new JConfig();
	  $mysitename = $myconfig-&gt;sitename;
 ?&gt;
 &lt;?php
 if($this-&gt;params-&gt;get('removegeneratortag') == &quot;yes&quot;):
	// Remove the generator meta tag
	$this-&gt;setGenerator($mysitename);
endif;
 ?&gt;
</pre><p>in params.ini file  add extra line<br /> removegeneratortag=yes</p><p>in templateDetails.xml file</p><pre class="brush: xml; title: ; notranslate">
&lt;params&gt;
		&lt;param name=&quot;removegeneratortag&quot; type=&quot;list&quot; default=&quot;yes&quot; label=&quot;Remove Joomla Generator Tag&quot; description=&quot;Remove or disable joomla generator tag from head tag for security reason&quot;&gt;
			&lt;option value=&quot;yes&quot;&gt;Yes&lt;/option&gt;
			&lt;option value=&quot;no&quot;&gt;No&lt;/option&gt;
		&lt;/param&gt;
	&lt;/params&gt;
</pre><p>before</p><pre class="brush: plain; title: ; notranslate">&quot;&lt;/install&gt;&quot;'</pre><p> tag</p><p>you are done. I think now you can add/customize in your own way as you need. If you don&#8217;t know how to modify the above code then don&#8217;t try <img src='http://manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></p><p>Thank you</p>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2010/11/17/adding-custom-generator-tag-in-joomla/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2010/11/17/adding-custom-generator-tag-in-joomla/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Webmaster tool plugin for joomla</title><link>http://manchumahara.com/2010/09/08/webmaster-tool-plugin-for-joomla/</link> <comments>http://manchumahara.com/2010/09/08/webmaster-tool-plugin-for-joomla/#comments</comments> <pubDate>Tue, 07 Sep 2010 19:50:37 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[Joomla Extention]]></category> <category><![CDATA[alexa]]></category> <category><![CDATA[bing]]></category> <category><![CDATA[google]]></category> <category><![CDATA[seo]]></category> <category><![CDATA[yahoo]]></category><guid isPermaLink="false">http://manchumahara.com/?p=600</guid> <description><![CDATA[and A good news! JED Team approved the webmastertool pluginf or joomla. So, now it&#8217;s your turn to help me, writting review(good or bad), voting in JED. What is webmaster tool? Webmastertool is a simple joomla plugin. It will allow &#8230; <a href="http://manchumahara.com/2010/09/08/webmaster-tool-plugin-for-joomla/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<h4>and A good news!</h4><p>JED Team approved the <a href="http://extensions.joomla.org/extensions/site-management/seo-a-metadata/13920">webmastertool pluginf or joomla</a>. So, now it&#8217;s your turn to help me, writting review(good or bad), voting in JED.</p><h4>What is webmaster tool?</h4><p>Webmastertool is a simple joomla plugin. It will allow you to put verification meta tag for diff search engines like google, yahoo, bing and alexa which needs to upload a file or edit template manually. But using this plugin will save your time or help you to avoid using ftp to edit template files. Some months ago I developed same type plugin for wordpress <a href="http://manchumahara.com/2010/02/01/wp-plugin-webmasterkey/" target="_blank">webmaster key</a>.</p><p>I think it will be handy for webmaster. Quick links for Google,Yahoo and Bing,Alexa  webmaster tool</p><ul><li><a href="http://www.google.com/webmasters/" target="_blank">Google Webmaster</a></li><li><a href="https://siteexplorer.search.yahoo.com/" target="_blank">Yahoo Siteexplorer</a></li><li><a href="http://www.bing.com/webmaster" target="_blank">Bing/Live webmaster</a></li><li><a href="http://www.alexa.com/siteowners">Alexa Siteowners</a></li></ul><h4>How to collect meta tags</h4><p>I know max ppl are smart enough and can do it easily but some ppl are not mcuh technical and don no how to  upload file or add meta tag in theme file and where. so, to get google meta tag key go to <a href="http://www.google.com/webmasters/" target="_blank">Google Webmaster</a>, login using your google id and your site. See image bellow and check you will see something like this. Copy meta value (red underline in screenshot)<br /> <span id="more-600"></span><br /> <img class="size-full wp-image-426 aligncenter" title="meta" src="http://manchumahara.com/wp-content/uploads/2010/02/meta1.jpg" alt="" width="605" height="141" /></p><h4>Downloads</h4> Note: There is a file embedded within this post, please visit this post to download the file.<h4>Plugin installation</h4><ul><li>Download the zip</li><li>Unzip and install like any other joomla plugin</li><li>Activate it</li><li>Go to plugin setting</li><li>Add meta tag keys and save, you are done!</li></ul><h4>Screenshots</h4><dl id="attachment_601" class="wp-caption aligncenter" style="width: 431px"><dt><img class="size-full wp-image-601" title="webmastertool" src="http://manchumahara.com/wp-content/uploads/2010/09/webmastertool.png" alt="" width="421" height="160" /></dt><dd class="wp-caption-text">Webmaster tool for joomla</dd></dl>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2010/09/08/webmaster-tool-plugin-for-joomla/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2010/09/08/webmaster-tool-plugin-for-joomla/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Social Share/Vote Button plugin for joomla content</title><link>http://manchumahara.com/2010/09/02/social-share-or-vote-button-plugin-for-joomla-content/</link> <comments>http://manchumahara.com/2010/09/02/social-share-or-vote-button-plugin-for-joomla-content/#comments</comments> <pubDate>Wed, 01 Sep 2010 20:44:54 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[Joomla Extention]]></category> <category><![CDATA[content plugin]]></category> <category><![CDATA[share button]]></category> <category><![CDATA[vote button]]></category><guid isPermaLink="false">http://manchumahara.com/?p=596</guid> <description><![CDATA[Update 03.09.2010: This extension got approved in JED. If you like this extension pls write reviews and vote in JED. All share count or &#8220;Social share/Vote button&#8221; is a joomla plugin that shows social share or vote button in articles. &#8230; <a href="http://manchumahara.com/2010/09/02/social-share-or-vote-button-plugin-for-joomla-content/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<blockquote><p><strong>Update 03.09.2010:</strong> <a href="http://extensions.joomla.org/extensions/social-web/social-bookmarking-display/13847" target="_blank">This extension got approved in JED</a>. If you like this extension pls write reviews and vote in JED.</p></blockquote><p>All share count or &#8220;Social share/Vote button&#8221;  is a joomla plugin that shows social share or vote button in articles. It contains all popular social network or share/bookmark sites that supports button/badge for vote/share. I was inpired by the wordpres plugin &#8220;<a rel="nofollow external" href="http://www.mkyong.com/blog/digg-digg-wordpress-plugin/" target="_blank">Digg Digg WordPress Plugin</a>&#8221; which I am using in my blog for many days.</p><dl id="attachment_597" class="wp-caption aligncenter" style="width: 404px"><dt><img class="size-full wp-image-597" title="sharecount" src="http://manchumahara.com/wp-content/uploads/2010/09/sharecount.png" alt="" width="394" height="91" /></dt><dd class="wp-caption-text">Social share/Vote button</dd></dl><p><span id="more-596"></span></p><h4>Features</h4><p><strong>Social Share/Vote Button plugin supports the following social network:</strong></p><ul><li>Facebook</li><li>Fbshare.me(Alternative for facebook share)</li><li>Twiter</li><li>Topsy(Alternative for twitter share)</li><li>Tweetmeme(Alternative for twitter share)</li><li>Diggg</li><li>Delicious</li><li>Stumble</li><li>Google Buzz</li><li>Yahoo Buzz</li><li>Dzone</li><li>Facebook Like</li><li>Flattr</li><li>Reddit</li><li>linkedin</li></ul><p><strong>Social Share and Vote button now supports other components!</strong></p><ul><li>Content (com_content)</li><li>K2(com_k2)</li><li>Quickfaq (com_quickfaq)</li><li>Eventlist(com_eventlist)</li></ul><p><strong>Button positions</strong></p><ul><li>Before Article</li><li>After Article</li><li>Left Aligned</li><li>Right Aligned</li></ul><p><strong>Button Visibility and Control</strong></p><ul><li>Control Each button&#8217;s visibility(Show/Hide)</li><li>Exclude for specific section</li><li>Exclude for specific category</li><li>Exclude for specific menu id</li><li>Show/Hide on front page</li><li>Sort button as weight</li></ul><p>There are options to show before content, after content, left float, right float</p><p>Again, there are options to show/hide button for home page/front page, category view, section view or for any sepecific category whatever you need.</p><p>I am working to sort by weight to show buttons oder as you need. Also will add redit. If you have other ideas let me know. Btw, adding lazzy load like the digg-digg plugin of wordpress will be cool, hope to add in my joomla plugin.</p><h4>How to install</h4><ul><li>Download the plugin as zip</li><li>Install from joomla admin panel like any other joomla extension</li><li>Go to plugins page and &#8220;publish&#8221; the plugin</li><li>Configure the plugin as you need</li><li>Change order of that plugin for all content plugins to change the plugin action order so that buttons show near content perfectly&#8230;</li><li>that&#8217;s it baby!</li></ul><h4>Download</h4><p><a href="http://codeboxr.com/product/social-sharevote-button-plugin-for-joomla">Please Download  from here</a><br /> Note:<em>As download system was making problem here, I moved it to my bzness domain for better support and service.</em></p><blockquote><p>Support given via mail(Put mail subject as &#8220;<strong></strong><strong>Support for Social Share/Vote Button plugin</strong>&#8221; to sabuj at idea52 dot com) . If you need extra works like installation or other modification I will give support @rate $10/hr.</p></blockquote><p>Note: You can get a free copy if you put a text link add with a follow rel in your site home page, <a href="http://manchumahara.com/contact/">contact me</a>.</p><h4>Change Log</h4><ul><li>V1.8 Date 02.12.2010<ul><li>Added locale support for facebook like</li><li>Added linkedin share button</li></ul></li><li>V1.7 Date 30.11.2010 [Keep backup of version1.6]<ul><li>Added support for <strong>components K2, Quickfaq, Eventlist</strong>, more is coming soon</li><li>Fixed height problem in compact mode</li><li>Fixed compoct mode problem for Dzone</li><li>More idea is on the way to compile <img src='http://manchumahara.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></li><li>Who paid for old versions please contact with me if need the new version.</li></ul></li><li>V1.6 Date 17.11.2010<ul><li>Added <a href="https://flattr.com/">Flattr</a> button</li><li>Added <a href="http://www.reddit.com/">Reddit</a> btuton</li><li>Download again for updated version.</li></ul></li><li>V1.5 Date 09.10.2010<ul><li>Fixed tag missing bug for Google buzz. Thank @ <a href="http://manchumahara.com/2010/09/02/social-share-or-vote-button-plugin-for-joomla-content/comment-page-3/#comment-11616">met</a></li><li>Fixed bug for other component like com_weblinks, com_contact etc that use same type plugin event I used in that plugin. Bug report <a href="http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&amp;tracker_item_id=13505">here</a></li></ul></li><li>V1.4 Date 22.09.2010<ul><li>Added sorting by weights, low to high order</li><li>Fixed position problem for stubbleupon</li></ul></li><li>Date 12.09.2010:  Added height param for faceboo like, I am too lazy to finish all at a time <img src='http://manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></li><li>V1.3  Date: 09.09.2010<ul><li>Added width parameter for facebook like</li></ul></li><li>V1.2  Date: 09.09.2010<ul><li>Added Official twitter button</li><li>Added option to exclude section</li><li>Added option to exclude itemid</li><li>Fixed some bug and typing mistake <img src='http://manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /></li></ul></li><li>09.09.2010: Fixed link issue for category or blog view that was causing wrong share count in blog/section view. Thanks @Ioannis</li><li>03.09.2010: A critical bug  is fixed &#8220;Fatal error: Class ‘JSite’ not found in&#8230;&#8221; while saving content from admin panel. Thanks @ sspider. Every body is requested to download again. <img src='http://manchumahara.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></li></ul><h4>Facebook Language Locale list</h4><table border="1"><tbody><tr bgcolor="#909090"><th>Country</th><th>Locale</th></tr><tr bgcolor="#e0e0e0"><td>Catalan</td><td>ca_ES</td></tr><tr bgcolor="#c0c0c0"><td>Czech</td><td>cs_CZ</td></tr><tr bgcolor="#e0e0e0"><td>Welsh</td><td>cy_GB</td></tr><tr bgcolor="#c0c0c0"><td>Danish</td><td>da_DK</td></tr><tr bgcolor="#e0e0e0"><td>German</td><td>de_DE</td></tr><tr bgcolor="#c0c0c0"><td>Basque</td><td>eu_ES</td></tr><tr bgcolor="#e0e0e0"><td>English (Pirate)</td><td>en_PI</td></tr><tr bgcolor="#c0c0c0"><td>English (Upside Down)</td><td>en_UD</td></tr><tr bgcolor="#e0e0e0"><td>Cherokee</td><td>ck_US</td></tr><tr bgcolor="#c0c0c0"><td>English (US)</td><td>en_US</td></tr><tr bgcolor="#e0e0e0"><td>Spanish</td><td>es_LA</td></tr><tr bgcolor="#c0c0c0"><td>Spanish (Chile)</td><td>es_CL</td></tr><tr bgcolor="#e0e0e0"><td>Spanish (Colombia)</td><td>es_CO</td></tr><tr bgcolor="#c0c0c0"><td>Spanish (Spain)</td><td>es_ES</td></tr><tr bgcolor="#e0e0e0"><td>Spanish (Mexico)</td><td>es_MX</td></tr><tr bgcolor="#c0c0c0"><td>Spanish (Venezuela)</td><td>es_VE</td></tr><tr bgcolor="#e0e0e0"><td>Finnish (test)</td><td>fb_FI</td></tr><tr bgcolor="#c0c0c0"><td>Finnish</td><td>fi_FI</td></tr><tr bgcolor="#e0e0e0"><td>French (France)</td><td>fr_FR</td></tr><tr bgcolor="#c0c0c0"><td>Galician</td><td>gl_ES</td></tr><tr bgcolor="#e0e0e0"><td>Hungarian</td><td>hu_HU</td></tr><tr bgcolor="#c0c0c0"><td>Italian</td><td>it_IT</td></tr><tr bgcolor="#e0e0e0"><td>Japanese</td><td>ja_JP</td></tr><tr bgcolor="#c0c0c0"><td>Korean</td><td>ko_KR</td></tr><tr bgcolor="#e0e0e0"><td>Norwegian (bokmal)</td><td>nb_NO</td></tr><tr bgcolor="#c0c0c0"><td>Norwegian (nynorsk)</td><td>nn_NO</td></tr><tr bgcolor="#e0e0e0"><td>Dutch</td><td>nl_NL</td></tr><tr bgcolor="#c0c0c0"><td>Polish</td><td>pl_PL</td></tr><tr bgcolor="#e0e0e0"><td>Portuguese (Brazil)</td><td>pt_BR</td></tr><tr bgcolor="#c0c0c0"><td>Portuguese (Portugal)</td><td>pt_PT</td></tr><tr bgcolor="#e0e0e0"><td>Romanian</td><td>ro_RO</td></tr><tr bgcolor="#c0c0c0"><td>Russian</td><td>ru_RU</td></tr><tr bgcolor="#e0e0e0"><td>Slovak</td><td>sk_SK</td></tr><tr bgcolor="#c0c0c0"><td>Slovenian</td><td>sl_SI</td></tr><tr bgcolor="#e0e0e0"><td>Swedish</td><td>sv_SE</td></tr><tr bgcolor="#c0c0c0"><td>thai</td><td>th_th</td></tr><tr bgcolor="#e0e0e0"><td>Turkish</td><td>tr_tr</td></tr><tr bgcolor="#c0c0c0"><td>Kurdish</td><td>ku_tr</td></tr><tr bgcolor="#e0e0e0"><td>Simplified Chinese (China)</td><td>zh_CN</td></tr><tr bgcolor="#c0c0c0"><td>traditional Chinese (Hong Kong)</td><td>zh_HK</td></tr><tr bgcolor="#e0e0e0"><td>traditional Chinese (Taiwan)</td><td>zh_TW</td></tr><tr bgcolor="#c0c0c0"><td>Leet Speak</td><td>fb_LT</td></tr><tr bgcolor="#e0e0e0"><td>Afrikaans</td><td>af_ZA</td></tr><tr bgcolor="#c0c0c0"><td>Albanian</td><td>sq_AL</td></tr><tr bgcolor="#e0e0e0"><td>Armenian</td><td>hy_AM</td></tr><tr bgcolor="#c0c0c0"><td>Azeri</td><td>az_AZ</td></tr><tr bgcolor="#e0e0e0"><td>Belarusian</td><td>be_BY</td></tr><tr bgcolor="#c0c0c0"><td>Bengali</td><td>bn_IN</td></tr><tr bgcolor="#e0e0e0"><td>Bosnian</td><td>bs_BA</td></tr><tr bgcolor="#c0c0c0"><td>Bulgarian</td><td>bg_BG</td></tr><tr bgcolor="#e0e0e0"><td>Croatian</td><td>hr_HR</td></tr><tr bgcolor="#c0c0c0"><td>Dutch (België)</td><td>nl_BE</td></tr><tr bgcolor="#e0e0e0"><td>English (UK)</td><td>en_GB</td></tr><tr bgcolor="#c0c0c0"><td>Esperanto</td><td>eo_EO</td></tr><tr bgcolor="#e0e0e0"><td>Estonian</td><td>et_EE</td></tr></tbody></table><h4>View Demo</h4><p>To see demo you can check my <a href="http://idea52.com/old/portfolio.html">portfolio</a> page.</p><p>So use it, enjoy it and don&#8217;t forget to let me know how you like this new baby. Have a nice joomla time.</p>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2010/09/02/social-share-or-vote-button-plugin-for-joomla-content/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2010/09/02/social-share-or-vote-button-plugin-for-joomla-content/feed/</wfw:commentRss> <slash:comments>72</slash:comments> </item> <item><title>Adding joomla native dropdown menu in frontend</title><link>http://manchumahara.com/2010/06/25/adding-joomla-native-dropdown-menu-in-frontend/</link> <comments>http://manchumahara.com/2010/06/25/adding-joomla-native-dropdown-menu-in-frontend/#comments</comments> <pubDate>Fri, 25 Jun 2010 10:59:28 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Joomla]]></category> <category><![CDATA[Tips and Tricks]]></category> <category><![CDATA[joomla dropdown menu]]></category> <category><![CDATA[joomla tricks]]></category> <category><![CDATA[tips]]></category><guid isPermaLink="false">http://manchumahara.com/?p=570</guid> <description><![CDATA[I think it&#8217;s my 4th post about using joomla native resources like tab slider, tooltip, modal/popup window and I am very happy that I just tried to used the joomla admin top menu &#8230; the top to bottom drop down &#8230; <a href="http://manchumahara.com/2010/06/25/adding-joomla-native-dropdown-menu-in-frontend/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p><dl id="attachment_571" class="wp-caption alignleft" style="width: 403px"><dt><img src="http://manchumahara.com/wp-content/uploads/2010/06/jnativetopmenu1.png" alt="" title="jnativetopmenu1" width="393" height="129" class="size-full wp-image-571" /></dt><dd class="wp-caption-text">joomla native drop down menu</dd></dl><br /> I think it&#8217;s my 4th post about using joomla native resources like tab slider, tooltip, modal/popup window and I am very happy that I just tried to used the joomla admin top menu &#8230; the top to bottom drop down menu in front end and it&#8217;s working fine. I just used the joomla native resources and changed one line of code in mod_mainmenu module. I think for doing something test or creative things sometimes we can try to change core code little&#8230; just keep in mind where u are changing and change again while u upgrade again in future.</p><ul><li><a rel="bookmark follow" href="http://manchumahara.com/2010/04/24/adding-joomla-native-modal-to-frontend/">Adding joomla native modal to frontend</a></li><li><a rel="bookmark follow" href="http://manchumahara.com/2010/03/22/using-wordpress-native-thickbox/">Using wordpress native thickbox</a></li><li><a rel="bookmark follow" href="http://manchumahara.com/2010/06/13/adding-native-tooptip-in-jooma1-5/">জুমলাতে নেটিভ টুলটিপ এর ব্যবহার</a></li><li><a rel="bookmark follow" href="http://manchumahara.com/2009/12/02/home-made-tab-and-slider-module-for-joomla1-5/">Home made tab and slider module for joomla1.5</a></li></ul><p>Ok then let&#8217;s move for how we can use the main menu module  as &#8216;<em>top to bottom</em>&#8216; drop down menu like the joomla admin panel top menu. we will work on default template of joomla1.5<span id="more-570"></span></p><h4>Adding javascript file</h4><p>Create a new folder named js  in default template like this templates\rhuk_milkyway\js</p><p>Now copy two js files from admin default template from this location administrator\templates\khepri\js  or you can just copy the js folder from admin default template khepri to front end  default template rukh_milkway. That&#8217;s it. Btw, pls check you copied at least two files named menu.js and index.js. Now add the follow two lines in index.php file of default template before &lt;/head&gt;  tag like bellow</p><pre class="brush: xml; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $this-&gt;baseurl ?&gt;/templates/&lt;?php echo $this-&gt;template ?&gt;/js/menu.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo $this-&gt;baseurl ?&gt;/templates/&lt;?php echo $this-&gt;template ?&gt;/js/index.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
</pre><h4>Adding CSS or style code</h4><p>Open template.css file from your default template css folder i.e., templates\rhuk_milkyway\css   and  put this bellow css code at last or somewhere.</p><pre class="brush: css; title: ; notranslate">
#menu, #menu ul, #menu li { margin: 0; padding: 0; border: 0 none; }

#menu       { position:relative; z-index: 100;}
#menu li    { float:left;  position:relative; list-style: none; display: inline;}
#menu li a  { display:block; white-space: nowrap;  }
#menu li li { /*width: 100%;*/ clear: both;  /*FF 1.0.7 needs this */  }
#menu li ul { visibility: hidden; position:absolute; }

#menu li li ul {  top: 0; left: 0; }

#menu li.hover ul               {  visibility: visible; }
#menu li.hover ul li ul 		  {  visibility: hidden;  }
#menu li.hover li.hover ul      {  visibility: visible;  left: 100%; }

/* ---- Menu layout -------------------------- */

#menu li {
	border-left: 1px solid #fff;
	border-right: 1px solid #d8d8d8;
}
#menu li li { border: 0;}

#menu ul    { border: 0.1em solid #ccc; background: #f6f6f6 url(../images/bg-menu.gif) repeat-y left;}
#menu ul li.node { background: transparent url(../images/j_arrow.png) no-repeat right 50%; }
#menu ul li.separator { background: #DDE1E6 url(../images/bg-menu.gif);  height: 1px;  }

#menu a, #menu div {
	padding: 0.35em 1em 0.35em;
	margin: 0 1px 0 1px;
	color: #333333;
	line-height: 1.6em; vertical-align: middle;
	font-size: 11px; font-weight: bold; text-decoration: none;
	cursor: default;
	background-repeat: no-repeat; background-position: left 50%
}

#menu li.disabled a { color: gray; }

#menu ul a {
	font-size: 11px;
	font-weight: normal;
	padding-left: 25px;
	padding-right: 20px;
	line-height: 1.2em;
}

/* 1 level - hover */
#menu li.hover a {  background-color: #E7EDDF; border-left: 1px solid #6D9D2E;  border-right:1px solid #6D9D2E; margin: 0; }
/* 2 level - normal */
#menu li.hover li a { background-color: transparent; border: 0 none;   margin: 2px;  }
/* 2 level - hover */
#menu li.hover li.hover a { background-color: #E7EDDF; border: 1px solid #6D9D2E;  margin: 1px;   }
/* 3 level - normal */
#menu li.hover li.hover li a { background-color: transparent; border: 0 none;   margin: 2px;  }
/* 3 level - hover */
#menu li.hover li.hover li a:hover { background-color: #E7EDDF; border: 1px solid #6D9D2E;  margin: 1px;  }

/* submenu styling */
#submenu {
	list-style: none;
	padding: 0;
	margin: 0;
}

#submenu li {
	float: left;
	padding: 0;
	margin: 0;
}

#submenu li a,
#submenu span.nolink {
	cursor: pointer;
	padding: 0px 15px;
	border-right: 1px solid #ccc;
	font-weight: bold;
	color: #0B55C4;
	line-height: 12px;
	height: 12px;
}

#submenu span.nolink {
	color: #999;
}

#submenu a.active,
#submenu span.nolink.active {
	color: #000;
	text-decoration: underline;
}
</pre><p>I collected this css code from admin template khepri template css file. So we are still using the native resources <img src='http://manchumahara.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><h4>Configure Menu module</h4><p>If you are using default template then the topmenu is published in user3 position . So go to module manager and find tehe module for top menu published in user3 position and set configuration like bellow screenshots.<br /><dl id="attachment_573" class="wp-caption aligncenter" style="width: 489px"><dt><img src="http://manchumahara.com/wp-content/uploads/2010/06/jnativetopmenu3.png" alt="" title="jnativetopmenu3" width="479" height="237" class="size-full wp-image-573" /></dt><dd class="wp-caption-text">Menu module configuration</dd></dl><br /> Please check above image I set the menu tag id is &#8220;menu&#8221;, we need this as fixed for our current moving <img src='http://manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . Another is menu style is &#8220;list&#8221;. And certainly as u are trying to make drop down menus so you can set end level as u need like 3/4 etc. Pls before doing that create some sub or sub sub menus for top level menus in topmenu category from your menu manager.</p><h4>Changing template code to accomodate for our new style top menu</h4><p>In your rukh_milkway   default template open the index.php file fine a line near this html code &lt;div id=&#8221;tabarea&#8221;&gt; . Sorry I can not give line number exactly now as I changed my default template many times <img src='http://manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> Here is the code used in defailt templte and I make the comment except the module include line.</p><pre class="brush: xml; title: ; notranslate">
&lt;!--div id=&quot;tabarea&quot;&gt;
	&lt;div id=&quot;tabarea_l&quot;&gt;
		&lt;div id=&quot;tabarea_r&quot;&gt;
			&lt;div id=&quot;tabmenu&quot;&gt;
			&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;pill&quot;&gt;
				&lt;tr&gt;
					&lt;td class=&quot;pill_l&quot;&gt;&amp;nbsp;&lt;/td&gt;
					&lt;td class=&quot;pill_m&quot;&gt;
					&lt;div id=&quot;pillmenu&quot;--&gt;
						&lt;jdoc:include type=&quot;modules&quot; name=&quot;user3&quot; /&gt;
					&lt;!--/div&gt;
					&lt;/td&gt;
					&lt;td class=&quot;pill_r&quot;&gt;&amp;nbsp;&lt;/td&gt;
				&lt;/tr&gt;
				&lt;/table&gt;
			&lt;/div&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/div--&gt;
</pre><p>You can use a simple line for the replacement of the above codes and fix your css as u need like this</p><pre class="brush: php; title: ; notranslate">
&lt;div class=&quot;topmenu&quot;&gt;
   &lt;jdoc:include type=&quot;modules&quot; name=&quot;user3&quot; /&gt;
&lt;/div&gt;
</pre><p>Hei, we are about to done <img src='http://manchumahara.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><h4>Changing a <del datetime="2010-07-03T19:02:06+00:00">core</del> file of main menu module <img src='http://manchumahara.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></h4><p><del datetime="2010-07-03T19:02:06+00:00">Yes I am not happy any more at this point as we going to change a line in a core file but what to say &#8230; if we want to do something great we can do a little hack to core and shout like &#8220;hei ! I don&#8217;t care to hack core if I need <img src='http://manchumahara.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> &#8221;</del><br /> I am sorry I just forgot that we can ovverride the view part of any module and will do this now. Just check if there is any folder in your template named &#8220;html&#8221;, if not then create one. now created a folder in it named &#8220;mod_mainmenu&#8221;  and then <strong>copy</strong> modules\mod_mainmenu\tmpl\default.php  and modules\mod_mainmenu\tmpl\index.html file from this location and paste in the new created folder mod_mainmenu ie, template\{yourtempalte folder}\html\mod_mainmenu</p><p>and <strong>now</strong><br /> open file <del datetime="2010-07-03T19:02:06+00:00">modules\mod_mainmenu\tmpl\</del>template\{yourtempalte folder}\html\mod_mainmenu\default.php and look for near line 36  and change this line to</p><pre class="brush: php; title: ; notranslate">
	if (($node-&gt;name() == 'li') &amp;&amp; isset($node-&gt;ul)) {
		$node-&gt;addAttribute('class', 'node parent');
	}
</pre><p>Pls notice that I added an extra class name &#8216;node&#8217; in 2nd line. that what we need exactly to use the core css file and js. <img src='http://manchumahara.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>Here is another screenshot of the top  menu that we just made.</p><dl id="attachment_572" class="wp-caption aligncenter" style="width: 428px"><dt><img src="http://manchumahara.com/wp-content/uploads/2010/06/jnativetopmenu2.png" alt="" title="jnativetopmenu2" width="418" height="106" class="size-full wp-image-572" /></dt><dd class="wp-caption-text">joomla native drop down menu2</dd></dl>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2010/06/25/adding-joomla-native-dropdown-menu-in-frontend/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2010/06/25/adding-joomla-native-dropdown-menu-in-frontend/feed/</wfw:commentRss> <slash:comments>31</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 23/112 queries in 0.103 seconds using disk: basic
Object Caching 1076/1181 objects using disk: basic

Served from: manchumahara.com @ 2012-02-05 17:29:10 -->
