<?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; Uncategorized</title> <atom:link href="http://manchumahara.com/uncategorized/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>coppermine-gallery:Adding classname in Sysmenu and Submenu</title><link>http://manchumahara.com/2008/09/01/adding-classname-in-sysmenu-and-submenu/</link> <comments>http://manchumahara.com/2008/09/01/adding-classname-in-sysmenu-and-submenu/#comments</comments> <pubDate>Mon, 01 Sep 2008 14:53:34 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[Coppermine]]></category><guid isPermaLink="false">http://manchumahara.com/?p=180</guid> <description><![CDATA[I was trying to make new theme but got some lack of class name in Sysmenu and Submenu. Actually I wanted this type of class name in menu link [sourcecode language='css'] <a class="button_home" title="Go to the home page" href="index.php">Home</a> [/sourcecode]Look if there was classname like "button_home"  in each menu link then it's easy to apply custom image or style using css. Then I tried to make this happen and I did it. Here is what I have done . <a href="http://manchumahara.com/2008/09/01/adding-classname-in-sysmenu-and-submenu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>I was trying to make new theme but got some lack of class name in Sysmenu and Submenu. Actually I wanted this type of class name in menu link</p><pre class="brush: css; title: ; notranslate">&lt;a class=&quot;button_home&quot; title=&quot;Go to the home page&quot; href=&quot;index.php&quot;&gt;Home&lt;/a&gt;</pre><p>Look if there was classname like &#8220;button_home&#8221;  in each menu link then it&#8217;s easy to apply custom image or style using css.<br /> Then I tried to make this happen and I did it. Here is what I have done<span id="more-180"></span></p><p>Open file galleryroot\include\themes.inc.php find function assemble_template_buttons and then find</p><pre class="brush: css; title: ; notranslate">    foreach ($buttons as $button)  {
if (isset($button[4])) {
$spacer=$button[4];
} else {
$spacer='';
}
</pre><p>After that just add</p><pre class="brush: css; title: ; notranslate">
if (isset($button[5])) {
$classname=$button[5];
} else {
$classname='';
}
</pre><p>Now find    &#8216;{SPACER}&#8217;     =&gt; $spacer, and add the bellow line before this<br /> &#8216;{CLASSNAME}&#8217; =&gt;$classname,</p><p>Find  function addbutton  and change the function like bellow</p><pre class="brush: css; title: ; notranslate">
// Creates an array of tokens to be used with function assemble_template_buttons
// this function is used in this file it needs to be declared before being called.
if (!function_exists('addbutton')) {  //{THEMES}
function addbutton(&amp;amp;amp;amp;$menu,$href_lnk,$href_title,$href_tgt,$block_id,$spacer[b],$classname[/b]) {
$menu[]=array($href_lnk,$href_title,$href_tgt,$block_id,$spacer[b],$classname[/b]);
}
}  //{THEMES}
</pre><p>In the above code I have added the bold part to add a class name in menu link Cheesy</p><p>Now find this line    &#8220;// HTML template for template sys_menu buttons&#8221;</p><p>and change code like bellow</p><pre class="brush: css; title: ; notranslate">
// HTML template for template sys_menu buttons
if (!isset($template_sys_menu_button)) { //{THEMES}
$template_sys_menu_button = &lt;&lt;
&lt;!-- BEGIN {BLOCK_ID} --&gt;
&lt;a title=&quot;{HREF_TITLE}&quot; href=&quot;{HREF_TGT}&quot;&gt;{HREF_LNK}&lt;/a&gt; {SPACER}
&lt;!-- END {BLOCK_ID} --&gt;
EOT;
} //{THEMES}
</pre><p>Here I have changed the bold part Cheesy]</p><p>Now find with keyword  addbutton and check all the matchings.<br /> You will get this type of lines</p><p>// HTML template for template sys_menu buttons<br /> if (!isset($sys_menu_buttons)) { //{THEMES}<br /> // {HREF_LNK}{HREF_TITLE}{HREF_TGT}{BLOCK_ID}{SPACER}<br /> addbutton($sys_menu_buttons,&#8217;{HOME_LNK}&#8217;, &#8216;{HOME_TITLE}&#8217;, &#8216;{HOME_TGT}&#8217;, &#8216;home&#8217;, $template_sys_menu_spacer<strong>, &#8216;button_home&#8217;</strong>);<br /> addbutton($sys_menu_buttons,&#8217;{MY_GAL_LNK}&#8217;, &#8216;{MY_GAL_TITLE}&#8217;, &#8216;{MY_GAL_TGT}&#8217;, &#8216;my_gallery&#8217;, $template_sys_menu_spacer<strong>,&#8217;button_mygallery&#8217;</strong>);<br /> .<br /> .<br /> .<br /> addbutton($sys_menu_buttons, &#8216;{LOGIN_LNK}&#8217;, &#8216;{LOGIN_TITLE}&#8217;, &#8216;{LOGIN_TGT}&#8217;, &#8216;login&#8217;,&#8221;<strong>,&#8217;button_login&#8217;</strong>);<br /> addbutton($sys_menu_buttons, &#8216;{LOGOUT_LNK}&#8217;, &#8216;{LOGOUT_TITLE}&#8217;, &#8216;{LOGOUT_TGT}&#8217;, &#8216;logout&#8217;, &#8221;<strong>,&#8217;button_logout&#8217;</strong>);<br /> // Login and Logout don&#8217;t have a spacer as only one is shown, and either would be the last option.<br /> } //{THEMES}</p><p>Here I have added the bold part for class name. Hope this will help you.</p><p>Don&#8217;t hesitate to ask me if u are confued.</p><p>How can u add an image before a menu link<br /> just add this type code in your style sheet. If class name of &#8220;<strong>Home</strong>&#8221; menu is &#8220;button_home&#8221; then<br /> add new entry in css file like this<br /> a.button_home{ background:url(images/icon_home.gif) left top no-repeat; padding-left:17px; padding-right:4px;}</p><p>Here icon_home.gif is image name that u have to put in &#8220;images&#8221; folder in the theme .<br /> My post in coppermine forum: line is <a href="http://forum.coppermine-gallery.net/index.php?action=profile;u=58743;sa=showPosts" target="_blank">here</a><br /> Thanks</p>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2008/09/01/adding-classname-in-sysmenu-and-submenu/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2008/09/01/adding-classname-in-sysmenu-and-submenu/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Write to any Blog site using facebook application</title><link>http://manchumahara.com/2008/04/17/blog-to-any-blog-site-using-facebook-application/</link> <comments>http://manchumahara.com/2008/04/17/blog-to-any-blog-site-using-facebook-application/#comments</comments> <pubDate>Thu, 17 Apr 2008 07:45:17 +0000</pubDate> <dc:creator>Manchumahara(Sabuj Kundu)</dc:creator> <category><![CDATA[Uncategorized]]></category><guid isPermaLink="false">http://manchu.wordpress.com/2008/04/17/blog-to-any-blog-site-using-facebook-application/</guid> <description><![CDATA[Hi today I got a facebook application to make post from facebook to any blog site like wordpress, typepad&#8230;etc This app is made by TypePad. Here is the link of the application. Hope facebook fan will like this. Comment is &#8230; <a href="http://manchumahara.com/2008/04/17/blog-to-any-blog-site-using-facebook-application/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description> <content:encoded><![CDATA[<p>Hi today I got a facebook application to make post from facebook to any blog site like wordpress, typepad&#8230;etc<br /> This app is made by TypePad.<br /> Here is the <a href="http://www.facebook.com/apps/application.php?id=14103720714">link</a> of the application.</p><p>Hope facebook fan will like this.</p>Comment is open. You can participate in the discussion by visiting <a href='http://manchumahara.com/2008/04/17/blog-to-any-blog-site-using-facebook-application/'>here</a> ]]></content:encoded> <wfw:commentRss>http://manchumahara.com/2008/04/17/blog-to-any-blog-site-using-facebook-application/feed/</wfw:commentRss> <slash:comments>2</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 6/27 queries in 0.605 seconds using disk: basic
Object Caching 362/382 objects using disk: basic

Served from: manchumahara.com @ 2012-02-09 16:42:44 -->
