gc-editor-none

So far we have created a very basic plugin that simply shows our predefined text in articles. You probably have noticed that while we were configuring the plugin there was no other parameters to configure, we have simply enabled the plugin. But many other plugins have many parameters to configure, and how we can have such parameters be added to our plugin? Yes, we are going to learn that now.

Let us modify the plugin so that instead of ‘Hello World’ we can show anything we want. We will specify our desired text through a parameter, and that text will be displayed in article. Continue reading “Adding parameters to a Joomla 2.5 plugin” »

joomla_logo

Very recently I am impressed by Markdown and in all my writing using Markdown. Thanks to Leanpub I am writing some of my books in Markdown and planning to write all my blog posts in Markdown too.

As a first step, I have installed WP-Markdown plugin for my wordpress blog and happily using that.

But I am a Joomla! guy and usually support my clients managing and building sites with Joomla!. I was searching an extension for Joomla! that can easily transform an article written in Markdown syntax to HTML. In JED, with keyword markdown nothing returned what I was searching. So I decided to develop a plugin.

Great Google helped me finding PHP Markdown, it has two files – I downloaded PHP Markdown Extra 1.2.5. This file contains a readme and license text, and the main file markdown.php. The file contains classes to transform markdown’d text into HTML using PHP. Based on this, I created a content plugin for Joomla! 2.5, and fololowing are the steps which you may use as a Tutorial. Continue reading “How to create a content plugin (Markdown) for Joomla! 2.5 in 10 minutes” »

joomal2.5

মড‍্যুলের জন‍্য এভাবে আমরা প‍্যারামিটার নির্ধারণ করে দিতে পারি XML ম‍্যানিফেস্ট ফাইলে। এরপর ব‍্যাকএন্ডে সেই মড‍্যুলের প্রোপার্টিজ থেকে এসব প‍্যারামিটারের মান নির্ধারণ করে দিতে পারেন। কিন্তু তারপর কী? সেসব প‍্যারামিটারকে ব‍্যবহার করবেন কীভাবে? আমাদের মড‍্যুলে আমরা প‍্যারামিটার হিসেবে যেসব মান কনফিগার করবে সেগুলির মান মড‍্যুলের আউটপুটে দেখাতে চাই। সেজন‍্য আমরা মড‍্যুল ফাইল mod-about.php এ নিচের মতো কোড যোগ করব: Continue reading “মড‍্যুলে প‍্যারামিটারের মান দেখানো” »

joomal2.5

As you know, content plugins for Joomla! mainly deals with content items. It searches the content items and performs some actions on the content. For example, when shubmitting an article, content plugin may check for valid markups and remove invalid markups. Similarly, when displaying the article, another content plugin may perform some activities to display the article in a special format. In this chapter, we will learn how to develop content plugins for Joomla!. In this chapter, you will learn:

মড‍্যুলের জন‍্য বিভন্ন অপশন নির্ধারণ করে দেয়া যায় যদি সেই মড‍্যুলের জন‍্য আমরা প‍্যারামিটার নির্ধারণ করে দিতে পারি। আপনি কোনো মড‍্যুল, যেমন Login Form, দেখলে সেখানে নিচের চিত্রের মতো বেশ কিছু প‍্যারামিটার কনফিগার করার অপশন দেখতে পাবেন।

Joomla module development

যেকোনো মড‍্যুল তৈরির সময় আপনি এরকম প‍্যারামিটার নির্ধারণ করে দিতে পারেন। এরকম প‍্যারামিটার নির্ধারণ করা হয় XML ম‍্যানিফেস্ট ফাইলের মাধ‍্যমে। আমরা আগেই এই ফাইল তৈরি করেছি। সেখানে নিচের মতো কর <config> … </config> ব্লক যোগ করুন। Continue reading “জুমলা মড‍্যুলে প‍্যারামিটার যোগ করা” »

joomla_logo

আগের পর্বে আমরা জুমলা মড‍্যুলের গঠন কেমন হয় – তাতে কোন কোন ফাইল ও ফোল্ডার থাকে সে সম্পর্কে ধারণা পেয়েছি। তা জানার পর এখন আমরা জুমলা মড‍্যুল তৈরির কাজে হাত দেব। এই পর্বে আমরা একটি xml ম‍্যানিফেস্ট ফাইল তৈরি করব।

জুমলার যেকোনো এক্সটেনশন তৈরির জন‍্য আগে সেটির জন‍্য একটি ম‍্যানিফেস্ট ফাইল তৈরি করতে হবে। এই ম‍্যানিফেস্ট ফাইল আসলে একটি XML ফাইল। এই ফাইলে সেই এক্সটেনশন সম্পর্কিত কিছু তথ‍্য থাকে, এবং তাতে এক্সটেনশনের জন‍্য বিভিন্ন প‍্যারামিটার নির্ধারণ করে দেয়া হয়। আসুন, আমরা প্রথমে এমন একটি মড‍্যুল তৈরি করব যার কোনো ব‍্যক্তির নাম, ঠিকানা, মোবাইল নম্বর ও ছবি নেবে এবং সাইটে প্রকাশ করবে। এই মড‍্যুলটি বিভিন্ন কারণেই সাইটে ব‍্যবহারের দরকার হতে পারে। যেমন সাইটের মালিক তার সম্পর্কে কিছু তথ‍্য এতে প্রকাশ করতে পারে। ধরা যাক, আমরা এই মড‍্যুলের নাম দিচ্ছি, About। Continue reading “জুমলা মড‍্যুল ডেভেলপমেন্ট পর্ব ২: ম‍্যানিফেস্ট ফাইল তৈরি” »

Joomla_logo

জুমলা এক্সটেনশন নিয়ে লেখার জন‍্য অনুরোধ অনেকেই করে আসছেন। তাই এবার শুরু করে দিলাম।

জুমলা এক্সটেনশনের মধ্যে কয়েক প্রকার আছে তা আপনার নিশ্চয় জানেন। এর মধ্যে প্রধান হচ্ছে কম্পোনেন্ট। আর মড্যুল ব্যবহার করা হয় কোনো তথ্য বিশেষ কোনো স্থানে প্রদর্শনের জন্য। কম্পোনেন্ট তৈরি বোঝার জন্য জুমলা ডেভেলপমেন্টের বিশেষ কিছু নিয়মকানুন জানা দরকার। কম্পোনেন্ট তৈরির কাজ একটু জটিল হওয়ায় আমরা জুমলা ডেভেলপমেন্টের হাতেখড়ি করব একটি মড্যুল ডেভেলপ করে। এই টিউটোরিয়াল  জুমলা মড্যুল ডেভেলপমেন্ট সম্পর্কে ।

এ টিউটোরিয়ালে কয়েক পর্বে যা জানবেন:

  • মড‍্যুলের স্ট্রাকচার কেমন?
  • মড‍্যুল ইনস্টলেশনের জন‍্য xml ম‍্যানিফেস্ট ফাইল কেমন হবে?
  • স্বাগত জানাবে এমন মড‍্যুল কীভাবে তৈরি করবেন?
  • কেবল টেক্সট ও ছবি দেখাবে এমন মড‍্যুল কীভাবে তৈরি করবেন?
  • ডাটাবেজ থেকে তথ‍্য নিয়ে মড‍্যুলে কীভাবে দেখাবেন?

এই টিউটোরিয়াল পুরোটি শেষ করে আপনি বিভিন্ন ধরনের জুমলা! মড‍্যুল তৈরি করতে সক্ষম হবেন। Continue reading “জুমলা মড‍্যুল ডেভেলপমেন্ট – শুরুর পর্ব” »

13922.png.scaled500

Very recently one of my sites was hacked. Nothing dangerous, but the intruders just changed the index.php file. The main file was showing message that it was hacked! So I had to take it off and check each and every file for change. Luckicly found only two other files changed. The hackers injected code to those files and that code was showing the message on index page. That day I understood how difficult it is to find changed files. Continue reading “Check your Joomla! files” »

Joomla_logo

Are you a Joomla! developer? If Yes, you know how repetitive copying and pasting it is. When you are developing a component following Model-View-Controller (MVC) design pattern, you need to do the same thing many times in Joomla!. Often you need to copy and paste the codes. While doing work on some components, I was tired doing this copy and paste, and was thinking how to avoid this. And fortunately found this component at Joomla! Extension Directory. It’s named Just Another Component Creator or JACC. Continue reading “Just another component creator?” »

joomla_logo

বড় বড় নিউজ সাইটে কিংবা যেখান অনেক নিবন্ধ দেখা যায় সেরকম সাইটে সেখানকার লেখকদের পরিচিতি খুঁজে পাবেন। সেসব লেখক নির্বাচন করার পর সেই সাইটে ওই লেখকের সকল লেখা দেখার সুযোগও পাবেন। জুমলা দিয়ে তৈরি আপনার সাইটেও এরকম লেখক তালিকা ও লেখক ব্লগ প্রদর্শন করতে পারেন Author List নামের এক্সটেনশন ব্যবহার করে। এটি পাবেন জুমলা এক্সটেনশন ডিরেক্টরির http://extensions.joomla.org/extensions/news-display/ authors/17561 লোকেশন থেকে। এতে একটি কম্পোনেন্ট ও একটি প্লাগইন আছে। দুটিই ডাউনলোড ও ইনস্টল করুন। এরপর প্লাগইন ম্যানেজারে গিয়ে Content – Authors প্লাগইনটি সক্রিয় করুন। Continue reading “জুমলা নিবন্ধের লেখক তালিকা দেখানো” »