Download Category widget for WP-DownloadManager plugin

I am using WP-DownloadManager plugin to manage downloads in my blog. It’s a very usefull plugin by Lester ‘GaMerZ’ Chan. I think , He made the most important plugins for wp :D. He already wrote 17 wordpress plugins ! I am a big fan of Lester Chan aka ‘GaMerZ’ Chan and sometimes I try to get help from his plugin .. I mean how to wrote such nice and clean plugins…

Ok, I just checked that WP-DownloadManager plugin can list category but with files in each. But I wanted something like a download category widgets and a list of download category (just list of download category). So I just wrote a plugin for WP-DownloadManager plugin :D. It will allow you to put a widget in sidebar showing all the Download Category as list with files and hits count as soon as you can use short code in post and pages. And this will make a download category list like bellow 😀
[page_download_cat] Continue reading

Tab/Sliders for wordpress posts/pages

Helo guys I am ready to show you a tab/slides plugin for wordpress. Let me tell u a tale. Once I did a site in joomla1.x for a client and that used the tab slides in content, a jooomla mambot of joomlaworks.gr. Somedays ago I made the same site in using wordpress and wordpress is better than joomla for blogging. So I needed to reuse the tabslide plugin for wordpress and I just converted that joomla mambot/plugin to wordpress plugin. I am releasing in same GPL licence and free. I think this will help some ppl to enable tab/slide in wordpress posts/pages.

Check live demo in gdpnetwork.com or u can give a try in your localhost 😛
Continue reading

Fix wp plugin “Post and Page Excerpt Widgets” not to break conditional tag

Post and Page Excerpt Widgets is a nice plugin to show post/page excerpt as as widget in sidebar position. You can download it from wp code from here. One I thing I noticed about this plugin is it has a common bug that I faced many times while using query_posts. When I use this query_posts it’s break some conditional loop like is_home(), is_category() etc but there is another function get_posts in wordpress that does the same thing but don’t have similar problem. Once I discussed about this problem in one of my old posts. Please check that posts for better sense from here is_home-is_single-is_category-is-not-working-in-wp!.

Let me focus to this writing again 😀
As Post and Page Excerpt Widgets is using the query_posts function for custom query it make’s problem for conditional tags. Let me show u solution and it’s like my that posts.
In you theme functions.php add a new function if not exists yet

Continue reading

Send ajax request in wordpress using wpnonce

wpsecuritythumblet’s send ajax request in wordpress using wpnonce

Hei, I am not going to discuss what is wpnonce and why you should use this in your plugin or how important to use this to secure your plugin 😛
But here I am going to discuss how you can use wpnonce in ajax request, I mean if your plugin handles ajax request.
Steps that we need to follow are:

One: Create wpnonce value.
Two: Send wpnonce value as an extra parameter with ajax requestion
Three: Check ajax referrer with the wpnonce value that was created in step one and sent in step two.

Ok, how to create a wpnonce value ?
we need to use wordpress function wp_create_nonce() . See wordpress codex here.
< ?php $my_wpnonce= wp_create_nonce (‘you-look-nice’); ?> // “you-look-nice” is just a string, u can use whatever u want. here $my_wpnonce will get a hash from wp_create_nonce. Oh that is not direct hash of “you-look-nice” but based on user id, time and that string. To know more about this function please check pluggable.php in wp-includes folder

Now send wpnonce value $my_wpnonce as an extra parameter while seding ajax req. Continue reading

āĻ“ā§ŸāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŸāĻŋāĻĒā§āĻ¸-ā§Š

āĻ¯āĻžāĻ°āĻž āĻāĻ‡ āĻ¸āĻŋāĻ°āĻŋāĻœā§‡āĻ° āĻ†āĻ—ā§‡āĻ° āĻĻā§āĻ‡āĻŸāĻž āĻĒā§‹āĻ¸ā§āĻŸ āĻĒāĻĄāĻŧā§‡āĻ¨āĻ¨āĻŋ āĻ¤āĻžāĻĻā§‡āĻ° āĻœāĻ¨ā§āĻ¯āĻƒ
āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŸāĻŋāĻĒā§āĻ¸-ā§§(āĻ†āĻŽāĻžāĻ° āĻŦā§āĻ¯āĻ•ā§āĻ¤āĻŋāĻ—āĻ¤ āĻŦā§āĻ˛āĻ—ā§‡)
āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŸāĻŋāĻĒā§āĻ¸-ā§¨(āĻ†āĻŽāĻžāĻ° āĻŦā§āĻ¯āĻ•ā§āĻ¤āĻŋāĻ—āĻ¤ āĻŦā§āĻ˛āĻ—ā§‡)

āĻ“āĻ•ā§‡ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻ†āĻœāĻ•ā§‡āĻ° āĻŸāĻŋāĻĒā§āĻ¸ āĻļā§āĻ°ā§ āĻ•āĻ°āĻž āĻ¯āĻžāĻ•āĨ¤ āĻāĻ° āĻ†āĻ—ā§‡ āĻ˛āĻŋāĻ–ā§‡āĻ›āĻŋāĻ˛āĻžāĻŽ āĻ•āĻŋāĻ­āĻžāĻŦā§‡ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄāĻĒā§āĻ°ā§‡āĻ¸ āĻ•āĻžāĻ¸ā§āĻŸāĻŽ āĻĒā§‡āĻœ āĻ¤ā§ˆāĻ°āĻŋ āĻ•āĻ°āĻž āĻ¯āĻžāĻ¯āĻŧ āĻ¯āĻž āĻ›āĻŋāĻ˛ā§‹ āĻ•āĻžāĻ¸ā§āĻŸāĻŽ āĻŸā§‡āĻŽāĻĒā§āĻ˛ā§‡āĻŸ āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°ā§‡āĨ¤ āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻāĻ•āĻ¤ā§āĻ°ā§‡ āĻ¯āĻž āĻšāĻ¯āĻŧ āĻĒāĻžāĻ¤āĻžāĻŸāĻž āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻĄāĻžāĻŸāĻžāĻŦā§‡āĻœ āĻĨā§‡āĻ•ā§‡ āĻ†āĻ¸ā§‡, āĻŽāĻžāĻ¨ā§‡ āĻĒāĻžāĻ¤āĻžāĻ° āĻ•āĻ¨ā§āĻŸā§‡āĻ¨ā§āĻŸāĨ¤ āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻ¯āĻĻāĻŋ āĻāĻŽāĻ¨ āĻšāĻžāĻ‡ āĻ¯ā§‡ āĻāĻ•āĻŸāĻž āĻ¸ā§āĻŸā§āĻ¯āĻžāĻŸāĻŋāĻ• āĻĒāĻžāĻ¤āĻž āĻšāĻŦā§‡ āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻ­ā§‡āĻ¤āĻ°ā§‡ āĻĨā§‡āĻ•ā§‡ āĻāĻŦāĻ‚ āĻ āĻĒāĻžāĻ¤āĻžāĻ¯āĻŧ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻ¯āĻžāĻŦāĻ¤ā§€āĻ¯āĻŧ āĻŸā§‡āĻŽāĻĒā§āĻ˛ā§‡āĻŸ āĻŸā§āĻ¯āĻžāĻ— āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°āĻž āĻ¯āĻžāĻŦā§‡āĨ¤ āĻ§āĻ°ā§āĻ¨ āĻ†āĻĒāĻ¨āĻŋ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻ‡āĻ¨āĻ¸ā§āĻŸāĻ˛ā§‡āĻļāĻ¨ā§‡āĻ° āĻ°ā§āĻŸ āĻĄāĻŋāĻ°ā§‡āĻ•ā§āĻŸāĻ°ā§€āĻ¤ā§‡ āĻāĻ•āĻŸāĻž āĻĢā§‹āĻ˛ā§āĻĄāĻžāĻ° āĻŦāĻžāĻ¨āĻžāĻ˛ā§‡āĻ¨ āĻ¯āĻžāĻ° āĻ¨āĻžāĻŽ myfolder. āĻ¤āĻžāĻšāĻ˛ā§‡ āĻāĻ‡ āĻĄāĻŋāĻ°ā§‡āĻ•ā§āĻŸāĻ°ā§€āĻ° āĻ˛āĻŋāĻ™ā§āĻ• āĻšāĻŦā§‡ http://yoursite.com/myfolder āĻĻā§‡āĻ–ā§āĻ¨ āĻāĻŸāĻž āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻĢā§‹āĻ˛ā§āĻĄāĻžāĻ° āĻ¨āĻ¯āĻŧāĨ¤
āĻāĻ–āĻ¨ āĻāĻ‡ āĻĢā§‹āĻ˛ā§āĻĄāĻžāĻ°ā§‡ āĻāĻ•āĻŸāĻž php āĻĢāĻžāĻ‡āĻ˛ā§‡ āĻ¤ā§ˆāĻ°āĻŋ āĻ•āĻ°ā§āĻ¨āĨ¤ āĻ§āĻ°ā§āĻ¨ myfile.phpāĨ¤
āĻĢāĻžāĻ‡āĻ˛ā§‡āĻ° āĻļā§āĻ°ā§āĻ¤ā§‡āĻ‡ āĻ˛āĻŋāĻ–ā§āĻ¨ āĻāĻ‡ āĻ°āĻ•āĻŽāĻƒ

[code language=”php”]< ?php
define(‘WP_USE_THEMES’, false);
require( dirname(__FILE__) .’/../wp-blog-header.php’);
?>[/code]

āĻ¯āĻĻāĻŋ myfile.php āĻāĻ•āĻĻāĻŽ āĻ°ā§āĻŸā§‡ āĻ°āĻžāĻ–ā§‡āĻ¨ āĻ¤āĻžāĻšāĻ˛ā§‡

[code language=”php”]< ?php
define(‘WP_USE_THEMES’, false);
require( dirname(__FILE__) .’/wp-blog-header.php’);
?>[/code]

Continue reading

āĻ“ā§ŸāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŸāĻŋāĻĒā§āĻ¸ā§¨

āĻ—āĻ¤āĻ•āĻžāĻ˛ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻ¨āĻŋāĻ¯āĻŧā§‡ āĻ˛āĻŋāĻ–ā§‡āĻ›āĻŋāĻ˛āĻžāĻŽ āĻāĻ‡ āĻŸāĻĒāĻŋāĻ•ā§‡ āĻāĻŦāĻ‚ āĻ†āĻŽāĻžāĻ° āĻŦā§āĻ˛āĻ—ā§‡ āĻāĻ–āĻžāĻ¨ā§‡āĨ¤ āĻ†āĻœāĻ•ā§‡ āĻ†āĻŦāĻžāĻ° āĻ¨āĻ¤ā§āĻ¨ āĻ•āĻŋāĻ›ā§ āĻ¨āĻŋāĻ¯āĻŧā§‡ āĻ˛āĻŋāĻ–āĻŦā§‹ ,āĻ¸āĻžāĻĨā§‡ āĻ¸āĻžāĻĨā§‡ āĻ—āĻ¤āĻ•āĻžāĻ˛ā§‡āĻ° āĻ§āĻžāĻ°āĻŦāĻžāĻšāĻŋāĻ•āĻ¤āĻž āĻšāĻ˛āĻŦā§‡āĨ¤ āĻ†āĻŽāĻ°āĻž āĻāĻ‡ āĻ¸āĻŋāĻ°āĻŋāĻœā§‡āĻ° āĻŽā§‚āĻ˛ āĻ‰āĻĻā§āĻĻā§‡āĻļā§āĻ¯ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻ¨āĻ°āĻŽāĻžāĻ˛ āĻ‡āĻ‰āĻœāĻžāĻ° āĻĨā§‡āĻ•ā§‡ āĻļā§āĻ°ā§ āĻ•āĻ°āĻž āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŦā§‡āĻ¸āĻĄ āĻ“āĻ¯āĻŧā§‡āĻŦ āĻĄā§‡āĻ­ā§‡āĻ˛āĻĒāĻžāĻ° āĻ¸āĻŦāĻžāĻ° āĻœāĻ¨ā§āĻ¯ āĻ†āĻŽāĻžāĻ° āĻœāĻžāĻ¨āĻž āĻŸā§āĻ°āĻŋāĻ•ā§āĻ¸ āĻ“ āĻ¤āĻĨā§āĻ¯āĻ—ā§āĻ˛ā§‹ āĻļā§‡āĻ¯āĻŧāĻžāĻ° āĻ•āĻ°āĻžāĻƒ
āĻ¤āĻŋāĻ¨āĻƒ ‘āĻĨā§€āĻŽā§‡ āĻ¸āĻžāĻŦ āĻĨā§€āĻŽ āĻĢāĻžāĻ‡āĻ˛ āĻ¯ā§āĻ•ā§āĻ¤ āĻ•āĻ°āĻž’

āĻ†āĻ—ā§‡āĻ° āĻĻāĻŋāĻ¨ āĻŦāĻ˛ā§‡āĻ›āĻŋāĻ˛āĻžāĻŽ āĻ•āĻŋāĻ­āĻžāĻŦā§‡ āĻ¨āĻ¤ā§āĻ¨ āĻšā§‡āĻĄāĻžāĻ° āĻĢāĻžāĻ‡āĻ˛ āĻ¯ā§āĻ•ā§āĻ¤ āĻ•āĻ°āĻž āĻ¯āĻžāĻ¯āĻŧāĨ¤ āĻšāĻžāĻ‡āĻ˛ā§‡ āĻ¨āĻŋāĻšā§‡āĻ° āĻŽāĻ¤ā§‹ āĻ•āĻ°ā§‡āĻ“ āĻ†āĻŽāĻ°āĻž āĻ¨āĻ¤ā§āĻ¨ āĻĢāĻžāĻ‡āĻ˛ āĻĨā§€āĻŽā§‡āĻ° āĻ¯ā§‡ āĻ•ā§‹āĻ¨ āĻœāĻžāĻ¯āĻŧāĻ—āĻžāĻ¯āĻŧ āĻ¯ā§āĻ•ā§āĻ¤ āĻ•āĻ°āĻ¤ā§‡ āĻĒāĻžāĻ°āĻŋāĨ¤ āĻ•āĻžāĻ°āĻŖ āĻāĻ•āĻ‡ āĻĢāĻžāĻ‡āĻ˛ā§‡ āĻ…āĻ¨ā§‡āĻ• āĻ•āĻŋāĻ›ā§ āĻ˛āĻŋāĻ–āĻ˛ā§‡ āĻŸā§āĻ°āĻžāĻ• āĻ°āĻžāĻ–āĻž āĻ¸āĻŽāĻ¸ā§āĻ¯āĻž āĻšāĻ¯āĻŧāĨ¤

[code language=”php”]< ?php include (TEMPLATEPATH . ‘/yourfilename.php’); ?>[/code]

yourfilename.php āĻ¨āĻžāĻŽā§‡āĻ° āĻĢāĻžāĻ‡āĻ˛āĻŸāĻŋ āĻ†āĻĒāĻ¨āĻžāĻ° āĻŦāĻ°ā§āĻ¤āĻŽāĻžāĻ¨ āĻāĻ•ā§āĻŸāĻŋāĻ­ āĻŦāĻž āĻ¯ā§‡ āĻĨā§€āĻŽ āĻ¨āĻŋāĻ¯āĻŧā§‡ āĻ•āĻžāĻœ āĻ•āĻ°āĻ›ā§‡āĻ¨ āĻ¤āĻžāĻ° āĻ­ā§‡āĻ¤āĻ° āĻ°āĻžāĻ–ā§āĻ¨āĨ¤ āĻ†āĻ° āĻ…āĻ¨ā§āĻ¯ āĻĨā§€āĻŽ āĻĢāĻžāĻ‡āĻ˛ā§‡āĻ° āĻ¯ā§‡āĻ–āĻžāĻ¨ā§‡ āĻĻāĻ°āĻ•āĻžāĻ° āĻ¸ā§‡āĻ–āĻžāĻ¨ā§‡ āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°ā§āĻ¨āĨ¤ TEMPLATEPATH āĻ†āĻĒāĻ¨āĻžāĻ° āĻŦāĻ°ā§āĻ¤āĻŽāĻžāĻ¨ āĻĨā§€āĻŽā§‡āĻ° āĻĄāĻŋāĻ°ā§‡āĻ•ā§āĻŸāĻ°ā§€āĨ¤ āĻĒā§āĻ°āĻļā§āĻ¨ āĻ•āĻ°āĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĻ¨ āĻāĻŽāĻ¨ āĻāĻžāĻŽā§‡āĻ˛āĻž āĻ•ā§‡āĻ¨ āĻ•āĻ°āĻŦā§‹ āĻŦāĻž āĻāĻŸāĻžāĻ° āĻ¸ā§āĻŦāĻŋāĻ§āĻž āĻ•āĻŋ āĻ¤āĻžāĻ‡ āĻ¤ā§‹ ? āĻšā§āĻŽ… āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻĻāĻŋāĻ¯āĻŧā§‡āĻ‡ āĻ†āĻĒāĻ¨āĻŋ āĻšāĻžāĻ‡āĻ˛ā§‡ āĻœā§āĻŽāĻ˛āĻžāĻ° āĻŽāĻ¤ā§‹ āĻ¸āĻžāĻ‡āĻŸā§‡ āĻŦāĻžāĻ¨āĻŋāĻ¯āĻŧā§‡ āĻĢā§‡āĻ˛āĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĻ¨āĨ¤ āĻœā§āĻŽāĻ˛āĻžāĻ¤ā§‡ āĻ†āĻŽāĻ°āĻž āĻŽāĻĄā§āĻ˛ āĻĒā§āĻ˛ā§‡āĻ¸ āĻšāĻŋāĻ¸āĻžāĻŦā§‡ āĻ¯āĻž āĻŦāĻ˛ā§‡ āĻĨāĻžāĻ•āĻŋ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡ āĻ¤āĻžāĻ•ā§‡ āĻŦāĻ˛āĻž āĻšāĻ¯āĻŧ āĻ¸āĻžāĻ‡āĻĄāĻŦāĻžāĻ°(sidebar) āĻ†āĻ° āĻŽāĻĄā§āĻ˛ āĻ—ā§āĻ˛ā§‹āĻ•ā§‡ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻ­āĻžāĻˇāĻžāĻ¯āĻŧ(āĻŦāĻ˛āĻž āĻ¯ā§‡āĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡) āĻ‰āĻ‡āĻœā§‡āĻ¸(widget). āĻ†āĻĒāĻ¨āĻŋ āĻšāĻžāĻ‡āĻ˛ā§‡ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡ āĻ¯āĻ¤ āĻ‡āĻšā§āĻ›āĻž āĻ¸āĻžāĻ‡āĻĄ āĻŦāĻžāĻ° āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°āĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĻ¨ āĻ¤āĻŦā§‡ āĻ†āĻĒāĻ¨āĻžāĻ° āĻĨā§€āĻŽā§‡ āĻ¸ā§‡āĻ‡ āĻ¸āĻžāĻĒā§‹āĻ°ā§āĻŸ āĻĨāĻžāĻ•āĻ¤ā§‡ āĻšāĻŦā§‡āĨ¤ āĻāĻ‡ āĻŦāĻŋāĻˇāĻ¯āĻŧāĻŸāĻž āĻ¨āĻŋāĻ¯āĻŧā§‡ āĻĒāĻ°ā§‡āĻ° āĻĒā§‹āĻ¸ā§āĻŸā§‡ āĻ˛āĻŋāĻ–āĻŋ āĻ¤āĻžāĻšāĻ˛ā§‡āĨ¤

āĻšāĻžāĻ°āĻƒ ‘āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡ āĻ¯āĻ¤ āĻ‡āĻšā§āĻ›āĻž āĻ¸āĻžāĻ‡āĻĄ āĻŦāĻžāĻ° āĻ¯ā§āĻ•ā§āĻ¤ āĻ•āĻ°āĻž’

āĻĒā§āĻ°āĻĨāĻŽā§‡āĻ‡ āĻŦāĻ˛ā§‡ āĻ°āĻžāĻ–āĻŋ āĻ¨āĻ¤ā§āĻ¨ āĻ•āĻŋāĻ›ā§ āĻœāĻžāĻ¨āĻžāĻ° āĻ†āĻ—ā§āĻ°āĻš āĻ¨āĻž āĻĨāĻžāĻ•āĻ˛ā§‡ āĻŦāĻž āĻāĻ•ā§āĻ¸āĻĒā§‡āĻ°āĻŋāĻŽā§‡āĻ¨ā§āĻŸ āĻ•āĻ°āĻžāĻ° āĻ‡āĻšā§āĻ›āĻž āĻ¨āĻž āĻĨāĻžāĻ•āĻ˛ā§‡ āĻāĻ–āĻ¨āĻ‡ āĻŽāĻžāĻ¨ā§‡ āĻŽāĻžāĻ¨ā§‡ āĻ•ā§‡āĻŸā§‡ āĻĒāĻĄāĻŧāĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡āĻ¨ āĻ¨āĻž āĻšāĻ˛ā§‡ āĻĒāĻ°ā§‡ āĻĒāĻ¸ā§āĻ¤āĻžāĻŦā§‡āĻ¨āĨ¤ :ttt:

‘āĻ¤āĻŋāĻ¨’ āĻ¨āĻ‚ āĻŸāĻŋāĻĒā§āĻ¸ā§‡āĻ° āĻ•āĻŋāĻ›ā§ āĻŦāĻ˛āĻž āĻĻāĻ°āĻ•āĻžāĻ°āĨ¤ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄāĻĒā§āĻ°ā§‡āĻ¸ā§‡ āĻ†āĻŽāĻ°āĻž āĻ¨āĻŋāĻšā§‡āĻ° āĻ•ā§‹āĻĄ āĻŸā§āĻ•ā§ āĻĻāĻŋāĻ¯āĻŧā§‡ āĻ¸āĻžāĻ‡āĻĄāĻŦāĻžāĻ° āĻĢāĻžāĻ‡āĻ˛āĻŸāĻŋ āĻ˛ā§‹āĻĄ āĻ•āĻ°āĻŋāĨ¤

[code language=”php”]< ?php get_sidebar(); ?>[/code]

āĻāĻŸāĻž āĻ¯āĻž āĻ•āĻ°ā§‡ āĻ¤āĻž āĻšāĻ˛ā§‹ āĻĨā§€āĻŽā§‡āĻ° āĻ­ā§‡āĻ¤āĻ° sidebar.php āĻĢāĻžāĻ‡āĻ˛āĻŸāĻž include āĻ•āĻ°ā§‡āĨ¤ āĻāĻ–āĻ¨ āĻ¯āĻĻāĻŋ āĻ†āĻĒāĻ¨āĻžāĻ° āĻŦāĻŋāĻļā§‡āĻˇ āĻĒāĻžāĻ¤āĻžāĻ¯āĻŧ āĻŦāĻŋāĻļā§‡āĻˇ āĻ•ā§‹āĻĄ āĻ˛ā§‡āĻ–āĻž āĻ¸āĻžāĻ‡āĻĄ āĻŦāĻžāĻ° āĻĻāĻ°āĻ•āĻžāĻ° āĻšāĻ¯āĻŧ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻ•āĻŋ āĻ•āĻ°āĻŦā§‡āĻ¨ āĻ¸ā§‡āĻŸāĻž āĻ¯āĻĻāĻŋ āĻāĻ–āĻ¨āĻ“ āĻ¨āĻž āĻ­ā§‡āĻŦā§‡ āĻĨāĻžāĻ•ā§‡āĻ¨ āĻ¤āĻžāĻšāĻ˛ā§‡ āĻ†āĻĒāĻ¨āĻžāĻ° āĻ‰āĻĒāĻ° āĻ†āĻŽāĻŋ āĻāĻ–āĻ¨āĻŋ āĻ•āĻŋāĻ¨ā§āĻ¤ā§ āĻ–ā§‡āĻĒā§‡ āĻ—ā§‡āĻ›āĻŋāĨ¤ >:D< āĻšā§āĻ¯āĻžāĻ āĻ¸ā§‡āĻ‡ āĻ†āĻ—ā§‡āĻ° āĻŸā§āĻ°āĻŋāĻ•ā§āĻ¸ āĻāĻ–āĻ¨ āĻ¯ā§‡ āĻ¸āĻžāĻ‡āĻĄ āĻŦāĻžāĻ° āĻĢāĻžāĻ‡āĻ˛āĻŸāĻž āĻ†āĻ›ā§‡ āĻ¸ā§‡āĻŸāĻž āĻ•āĻĒāĻŋ āĻ•āĻ°ā§‡ āĻ¨āĻ¤ā§āĻ¨ āĻĢāĻžāĻ‡āĻ˛ā§‡ āĻšāĻŋāĻ¸āĻžāĻŦā§‡ āĻ¸ā§‡āĻ‡āĻ­ āĻ•āĻ°ā§āĻ¨ āĻ†āĻ° āĻ¨āĻžāĻŽ āĻĻāĻŋāĻ¨ āĻ†āĻ—ā§‡āĻ° āĻ¸ā§‡āĻ‡ āĻĢāĻ°āĻŽā§āĻ¯āĻžāĻŸā§‡ āĻ¯ā§‡āĻŽāĻ¨ sidebar-mycustomsidebar.php āĻ†āĻ° āĻāĻ‡ āĻĢāĻžāĻ‡āĻ˛ā§‡ āĻ¨āĻŋāĻœā§‡āĻ° āĻ‡āĻšā§āĻ›āĻž āĻŽāĻ¤ā§‹ āĻĒāĻ°āĻŋāĻŦāĻ°ā§āĻ¤āĻ¨ āĻ•āĻ°ā§āĻ¨āĨ¤ āĻ†āĻ° āĻāĻŸāĻž āĻ˛ā§‹āĻĄ āĻ•āĻ°ā§āĻ¨ āĻāĻ‡ āĻ­āĻžāĻŦā§‡

[code language=”php”]<?php get_sidebar(‘mycustomsidebar’); ?>[/code]

āĨ¤ āĻŽāĻœāĻž ?

Continue reading

āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŸāĻŋāĻĒā§āĻ¸-ā§§

“āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŸāĻŋāĻĒā§āĻ¸” āĻ āĻ§āĻžāĻ°āĻžāĻŦāĻžāĻšāĻŋāĻ• āĻ­āĻžāĻŦā§‡ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŦāĻŋāĻˇāĻ¯āĻŧāĻ• āĻ›ā§‹āĻŸ āĻ›ā§‹āĻŸ āĻ¤āĻĨā§āĻ¯ āĻĻā§‡āĻ“āĻ¯āĻŧāĻžāĻ° āĻšā§‡āĻ¸ā§āĻŸāĻž āĻ•āĻ°āĻŦā§‹āĨ¤
āĻ¨ā§‹āĻŸāĻƒ āĻ•āĻŋāĻ›ā§ āĻ•āĻŋāĻ›ā§ āĻŸāĻŋāĻĒā§āĻ¸ āĻāĻĄāĻ­āĻžāĻ¨ā§āĻ¸āĻĄ āĻ˛ā§‡āĻ­ā§‡āĻ˛ā§‡āĻ° āĻšāĻ¤ā§‡ āĻĒāĻžāĻ°ā§‡ āĻ¯āĻž āĻĒā§āĻ°āĻĢā§‡āĻļāĻ¨āĻžāĻ˛ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻŦā§‡āĻ¸āĻĄ āĻ“āĻ¯āĻŧā§‡āĻŦ āĻĄā§‡āĻ­ā§‡āĻ˛āĻĒāĻžāĻ°āĻĻā§‡āĻ° āĻœāĻ¨ā§āĻ¯ āĻ•āĻžāĻœā§‡ āĻĻāĻŋāĻŦā§‡ āĻ†āĻļāĻž āĻ•āĻ°āĻŋāĨ¤

āĻāĻ•āĻƒ āĻ•āĻžāĻ¸ā§āĻŸāĻŽ āĻšā§‡āĻĄāĻžāĻ° āĻĢāĻžāĻ‡āĻ˛ āĻŦāĻž header.php āĻĢāĻžāĻ‡āĻ˛ āĻ•ā§‹āĻ¨ āĻĒāĻžāĻ¤āĻžāĻ¯āĻŧ āĻ¯ā§āĻ•ā§āĻ¤ āĻ•āĻ°āĻžāĻƒ
āĻ¸āĻžāĻ§āĻžāĻ°āĻŖāĻ¤ āĻ†āĻŽāĻ°āĻž āĻāĻŽāĻ¨ āĻ­āĻžāĻŦā§‡ āĻĨā§€āĻŽ āĻŦāĻžāĻ¨āĻžāĻ¯āĻŧ āĻ¯ā§‡ āĻ¸āĻžāĻ‡āĻŸ āĻ¯ā§‡āĻ¨ āĻšā§‡āĻĄāĻžāĻ°, āĻŦāĻĄāĻŋ, āĻĢā§āĻŸāĻžāĻ° āĻāĻ‡ āĻ­āĻžāĻŦā§‡ āĻĨāĻžāĻ•ā§‡āĨ¤ āĻ†āĻ° āĻāĻ‡ āĻšāĻŋāĻ¨ā§āĻ¤āĻž āĻĨā§‡āĻ•ā§‡āĻ‡ āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ āĻĨā§€āĻŽ āĻāĻ° āĻ•ā§‹āĻ° āĻĢāĻžāĻ‡āĻ˛ āĻšāĻŋāĻ¸āĻžāĻŦā§‡ header.php , footer.php āĻĢāĻžāĻ‡āĻ˛ āĻĻā§āĻ‡āĻŸāĻž āĻĨāĻžāĻ•ā§‡āĨ¤ āĻ†āĻ° header.php āĻĢāĻžāĻ‡āĻ˛ āĻ¯ā§āĻ•ā§āĻ¤ āĻ•āĻ°āĻžāĻ° āĻœāĻ¨ā§āĻ¯ index.php, category.php āĻ‡āĻ¤ā§āĻ¯āĻžāĻĻāĻŋ āĻĢāĻžāĻ‡āĻ˛ā§‡ āĻ†āĻŽāĻ°āĻž āĻ“āĻ¯āĻŧāĻžāĻ°ā§āĻĄ āĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻāĻ•āĻŸāĻž āĻŸā§‡āĻŽāĻĒā§āĻ˛ā§‡āĻŸ āĻĢāĻžāĻ‚āĻļāĻ¨ āĻ˛āĻŋāĻ–āĻŋāĻƒ

[code language=”php”]< ?php get_header(); ?>[/code]

āĻ¯āĻž header.php āĻĢāĻžāĻ‡āĻ˛āĻŸāĻž āĻ˛ā§‹āĻĄ āĻ•āĻ°ā§‡
āĻāĻŦāĻ‚ āĻāĻ•āĻ‡ āĻ­āĻžāĻŦā§‡ footer.php āĻĢāĻžāĻ‡āĻ˛ā§‡ āĻ¯ā§āĻ•ā§āĻ¤ āĻ•āĻ°āĻžāĻ° āĻœāĻ¨ā§āĻ¯ āĻ˛āĻŋāĻ–āĻŋ āĻāĻ‡ āĻ°āĻ•āĻŽāĻƒ Continue reading

A poor or faster way to add wptinybn support to wp TinyMCEComments plugin

3Ok let me at first tell why this post ?
I have a wp plugin named wptinybn which enables users to write in unicode bangla for different types of bengali keyboard in wp visual editor which is based on tinymce. Actually my wp plugin is based on my tinymce plugin tinybn. That means besides the wptinybn the tinybn plugin is a standalone tinymce plugin. So it should work with everywhere with tinymce. ok.. I am 25% done 🙂

There is another wp plugin named TinyMCEComments which enables wp users to write comments through tinymce editor. I am 50% done. Cool na ?

One of my reader asked me how to add the tinybn support to TinyMCEComments. I just check that plugin’s code and I have that plugin installed in my own blog too though not enabled! Yes my answer is yes … that means it’s possible. It can be done in different ways. As a quick thinking I am giving a poor or faster (whatever u think) way to do that. I am 75% done… wait a bit man.

Download the wptinybn and TinyMCEComments plugin and install them. (if u want not to install wptinybn to do that then it’s ok, I mean no dependency). Check wptinybn(unzip first!) folder and you should find a folder in it named “banglafkb”.Copy this and paste in wp-includes/js/tinymce/plugins folders in your blog wp installation. Done ? ok now …

hmm now you have to be more brave to edit the TinyMCEComments plugin… not much in deed. Open file tinyMCEComments.php and find the word “pls”. Stop to it’s first occurance the word will be like $pls and it’s a array and here parts of code is like
[code=’php’]$pls = array(‘separator’,’bold’,’italic’,’underline’,’strikethrough’,’justifyleft’,’justifycenter’,’justifyright’,’justifyfull’,’bullist’,’numlist’,’outdent’,’indent’,’cut’,’copy’,’paste’,’undo’,’redo’,’link’,’unlink’,’cleanup’,’help’,’code’,’hr’,’removeformat’,’sub’,’sup’,’forecolor’,’backcolor’,’charmap’,’visualaid’,’blockquote’,’spellchecker’,’fullscreen’);[/code]
now place // before this line and it will be like bellow
[code=’php’]
//$pls = array(‘separator’,’bold’,’italic’,’underline’,’strikethrough’,’justifyleft’,’justifycenter’,’justifyright’,’justifyfull’,’bullist’,’numlist’,’outdent’,’indent’,’cut’,’copy’,’paste’,’undo’,’redo’,’link’,’unlink’,’cleanup’,’help’,’code’,’hr’,’removeformat’,’sub’,’sup’,’forecolor’,’backcolor’,’charmap’,’visualaid’,’blockquote’,’spellchecker’,’fullscreen’);[/code]
we just kept the old code .
now in new line put this bellow code
[code=’php’]
$pls = array(‘separator’,’bold’,’italic’,’underline’,’strikethrough’,’justifyleft’,’justifycenter’,’justifyright’,’justifyfull’,’bullist’,’numlist’,’outdent’,’indent’,’cut’,’copy’,’paste’,’undo’,’redo’,’link’,’unlink’,’cleanup’,’help’,’code’,’hr’,’removeformat’,’sub’,’sup’,’forecolor’,’backcolor’,’charmap’,’visualaid’,’blockquote’,’spellchecker’,’fullscreen’,’banglafkb’);
[/code]

If you check the above code what I have added new here ? just that ,’banglafkb’

I am 90% done. Now to to your admin panel activate tinymcecomments plugin then from menu Settings go to it’s(that plugin’s) setting page and check (if you done above copy pase and code editing) ‘banglafkb’ is in the button list and in the available plugin list. Just click both banglafkb to add from button list and plugin list. For button list click seperator before banglafkb that will be make a | seperator in editor. Now save this new option and check your comment form.

Angry one me ? You have done every thing properly but nothing new in the editor and u don’t see any change in the preview editor int the plugin options page. Don’t worry. The plugin keeps the setting in cache for 10 days. So to get the changes within one sec just open the tinyMCEComments.php file and pls check from top few liens code

there is a line like
$mcecomment_expiresOffset = 3600 * 24 * 10; // Cache for 10 days in browser cache
make this line comment I mean like
//$mcecomment_expiresOffset = 3600 * 24 * 10; // Cache for 10 days in browser cache
and now put a new line bellow it like
$mcecomment_expiresOffset = 1; // Cache for 1 sec in browser cache

now save this file and check the option’s page’s preview editor.

I think I am 100% done now. mu ha ha.

Oh I forgot to say currently I am working on a joomla plugin to make the dates in bangla for front end for articles, actually it will work with com_content …hope to release this on the eid-durga puja vacation.

Again here is some screenshot(one is above) of this post’s summary.MCEComments Options ‹ Let’s start againâ€Ļ — WordPress_1251930556673MCEComments Options ‹ Let’s start againâ€Ļ — WordPress_1251930589424MCEComments Options ‹ Let’s start againâ€Ļ — WordPress_1251930628482