January 17, 20102 Comments

Today I will show how to play with wordpress permalink. If you are just working with a fresh wordpress installation then certainly you need to do some work with wordpress permalink structure. Just check in admin left menu Settings->Permalinks
Here is first look of your default permalink structure. Check your post and page url is like:

wpdefaultpermalink
Post: http://sitename.com/?p=N, where N = post id
Page: http://sitename.com/?page_id=N, where N = page id
Category: http://sitename.com/?cat=N , where N = category id
Tag: http://sitename.com/?tag=TAG SLUG, pls check bellow what is slug
Author:http://sitename.com/?author=N, where N = author id


Now, let’s change the permalink structure to any custom format… here I am choosing the Month and name format and see screenshot bellow
wpcustompermalink
Oh, check another thing before and after changing permalink structure,if you are in edit more of any post or page, check bellow the subject box
For default permalink: there is a option “Change permalinks”
For custom permalink: there is a option “Edit”
Check the screenshot bellow:

wpcustompermalink2

Please check here what we are editing or getting automatic after saving first time(or auto save) the post … is called slug for that article, we use article name alias for joomla same way. if seo enabled in joomla then that alias is used. Ok ,now check after changing permalink to any custom format what happened to all permalinks like posts, page, author, category, tags etc. Let’s check
Post and Page will get as the screenshot above (example http://localhost/blog/2010/01/playing-with-wordpress-permalinkslug-quick-seo/)

Category: http://localhost/blog/category/category slug/
Tag: http://localhost/blog/tag/tag slug/
Author: http://localhost/blog/author/author username(nick name) is here/

Check here for category,tag, author etc the bold part we are telling base like catgory base, tag base or author base. and the italic part is slug, Sometimes that base is also called slug for simplicity.

Making post link .html
If think you cheked some wordpress site has post link as .html … more like static and more friend for google .. I mean search engines. No worry, it’s just easy. Put a .html in the custom permalink format of your post.
Just write this in custom field
/%year%/%monthnum%/%postname%.html
and my current blog post url is now
http://localhost/blog/2010/01/playing-with-wordpress-permalinkslug-quick-seo.html
Making the url more short
I think now our url got too long and sometimes that is bad for serach engines. So while we write blog post we can keep the title long(not more than 160 may be… 160 length is good for search engines) but we will edit post or page slug as short as possible. That the trick … taking specially care as do for your girl friend or your baby.
Oh another way we can make the url short… let’s change the permalink again. Let change custom permalink as
/%postname%.html
and my post link is more short now
http://localhost/blog/playing-with-wordpress-permalinkslug-quick-seo.html
for news site we can use like this

/newid%post_id%/%postname%.html
now link is like

http://localhost/blog/newid160/playing-with-wordpress-permalinkslug-quick-seo.html


So I think we played too much with post permalink and now we know how to change the post permalink as we need. Isn’t it easy ?

Chaning page link to .html
There is no easy way to change page link .html like post from wordpress but we can do it via a plugin, acutally wordpress has that support to change permalink for page or others … so plugin authors can hack easily. To change page link like .html you can use this pluginCustom Page Extensions

Working with Category,Tag and Author base
Let’s play with category and tag base that is available in wp permalink.

categorytagbase
So now tag link be like
http://localhost/blog/postbytag/tag slug
Category link
http://localhost/blog/topics/category slug

Hei we are not finished yet. How about removing category base from category permalink ?
let me explain if you don’t change category base that means default is “category” then
http://sitename.com/category/category slug
and for child cateogory
http://sitename.com/category/parent category slug/child category slug

and now what I want to do is like bellow

http://sitename.com/category slug
http://sitename.com/child category slug

Yes we can do that I mean remove category base using plugin. I like to use No category parents. I have tested in a client’s site and it’s working fine.

Yap we can change author slig(base actually) too ,,, not remove, just change default author base “author” to any custom word like “blogger”, “contributors” etc.

Old: http://www.sitename.com/author/manchupagla/
New: http://www.sitename.com/contributors/manchupagla/

For this so many wordpress plugins are available. But I like to use Author Slug, in codex check here. You can search codex for such plugins.

Heh heh talked too much today. I will recommend you to use another two plugins

Note: Check this post in bengali in amaderprojukti forum from here.

thank you for having patience to read this blog. Don’t forget to click share in social network and I like donation(check right col donation box :D )

December 29, 20091 Comment

Hello! 2010 is just knocking at door :D .Hope to write lots of blog with my day2day thinking, learning and the problems I face every day.

Let me clear about this blog post: I think, you know that in wordpress we can add new coasdl in posts listing area. Check the bellow image of my post edit panel/listing(http://(yoursitename)/wp-admin/edit.php)
…continue reading Fix wordpress plugin “GT post approval”

December 26, 20091 Comment

Here I am back with tinybn(bangla writing plugin for popular wysiwyw editor tinymce). Oh please don’t think that I am trying to show you smiley face with new version of tinybn but new installation instruction for joomla 1.5.14+. Today a new user informed that the raw installation instruction for joomla 1.5.x is not correct … code is not matching :(
…continue reading New installation instruction for tinybn in joomla1.5.14+

December 25, 2009Leave a Comment

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 :D
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 Fix wp plugin “Post and Page Excerpt Widgets” not to break conditional tag

ডিসেম্বর ১৪, ২০০৯2 টি মন্তব্য

হয়তো চাইলেই গল্প- কবিতার মত
এক ঝাঁক বুনো হাঁসের দলে মিশে যাওয়া যায় না। কিন্তু
স্বপ্ন দেখতে তো কোন দোষ নেই, শুধু লাগে সামান্য টুকু সাহস।

উৎসর্গঃ স্বপ্ন দেখার সামান্য টুকু সাহস যাদের নেই

December 2, 200953 Comments

Change Log:

Update 14, January, 2010

WOW, This extension has been approved by JED Team. Pls visit it and place you rating.

Update 8, June, 2010(Must see)

  • Fixed a bug for php error, it was a typo error
  • Transition parameter was missing for slider, it’s fixed now
  • Download file is updated! Please reinstall or update the files only. Changes are in the mod_simplejoomlatabslider.xml, mod_simplejoomlatabslider.php and helper.php file

tabIf you check joomla1.5.x backend(joomla1.x had same) in any component or module configuration the right col accordian slider is common. In some components u should see tab too.To make such tab and slider is just so easy !

I think you are thinking about my post title, why I used the words “home made”. Because I am going to show you how u can make such a tab/slider module for front end just using joomla own resource. Joomla gives some execillent api to make html grid, tab, slider etc within a moment. JPane is such an api to make tab and slider. Here you will get some code example about how to make tab using JPane.

…continue reading Home made tab and slider module for joomla1.5

November 18, 20097 Comments

I think you guys who are familiar with joomla also know about it’s popular extension joomfish.Don no about joomfish ? ok let see what joomfish is:

The Joom!Fish is your key for providing multilingual content to your visitors! International (i8n) portals, companies or projects require content in different languages and processes which help to keep track of the translations. The Joom!Fish extension for the CMS Joomla! does exactly this.

Ya I like another extension for joomla to manage faq easily and it’s easyfaq.

Easy FAQ is a small and simple component that allows you to add a simple “Frequently Asked Questions” sections to your Joomla site. It allows you to specify categories and subcategories and add FAQ to it. It’s allows tagging to create a second level of categorization.

* Define categories and subcategories
* Add FAQ to a categorie
* Add tags to your FAQ
* Show a tag cloud on your site

Now ? I made joomfish plugin(contentelement) for easyfaq so that you can translate easyfaq faqs, categories, tags etc via joomfish translalation panel. that’s it. See the attach file bellow for download . LEt me know if you get any problem.
Note: This is upgraded version of old plugin that I did for earlier version of joomla, joomfish and easyfaq. So you can use this new version for joomla1.5, easyfaq2+, joomfish2+

  Easyfaq2 contentelement for joomfish2 (1.1 KiB, 638 hits)


November 16, 200917 Comments

Hello, this is my another work for bangla computing. I just made a small plugin to show english date in bengali in joomla1.5. Please don’t think that it will show bangla date everywhere in joomla. This plugin is just for the component com_content which shows the content/article. I gave name for this plugin is Bangla(bn-bd) date or Joomla Bangla date. This will show article create and modification date in our local language bengali. Here is screenshot for backend.

Idea52 LAB - Administration_1257927094816

To make this plugin flexible, I tried to give so many options to configure for your joomla site to show dates in bangla. You can use this plugin as multi lingual mode easily as it has some advanced features like detect language or force to show bangla date. Even you can filter or configure for home page(front page or com_frontpage), full article mode, category filtering etc. Please check my post in post in amaderprojukti forum for details in bengali.

…continue reading Show bangla date in joomla1.5

November 8, 20091 Comment

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 :P
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 Send ajax request in wordpress using wpnonce

নভেম্ভর ৬, ২০০৯মন্তব্য করুন

ফায়ারফক্সের ডিফল্ট সার্চ ইঞ্জিন গুগল, আর সেই সাথে আরো কিছু লিস্টে থাকে যা সিলেক্ট করে নিতে পারি এবং চাইলে আরও অনেকগুলো সার্চ ইঞ্জিন আমরা এডঅন হিসাবে যোগ করে নিতে পারি। আজকে ভোর রাতে মাথায় চিন্তা আসলো আমাদের প্রযুক্তির জন্য এই রকম এডঅন বা সার্চ প্লাগিন বানানো যায় কিনা। কিছুক্ষন চেস্টা করার পর হয়ে গেলো। এখন কেউ চাইলে প্লাগিনটি এড করে রাখলে, যে কোন সময় ফায়ারফক্সের সার্চ বার থেকেই আমাদের প্রযুক্তিতে সার্চ করতে পারবে। উল্লেখ্য যে, আমাদের প্রযুক্তিতে অনেক গুলো সার্চ ইঞ্জিন দিয়ে সার্চ করার অপশন আছে কোর সার্চ ফিচার এর পাশাপাশি। তবে এখানে শুধু মাত্র গুগল কাস্টম সার্চ ফিচার এর সাথে লিঙ্ক করা।
কিভাবে প্লাগিনটি যুক্ত করবেন আপনার ফায়ারফক্সের সার্চ লিস্টে তাই তো ? আচ্ছা,
প্রথমে আমাদের প্রযুক্তি ফায়ারফক্স দিয়ে ভিজিট করুন। এরপর নিচের ছবিটি অনুসরণ করুন

apsearch1

…continue reading আমাদের প্রযুক্তিতে সার্চ করুন ফায়ারফক্স থেকেই

feedback