drupal

G2Image in Drupal using TinyMCE with WYSIWYG API

UPDATE: This post is quite old now and wont work with the latest version of WYSIWYG API, will try to update this soon.

Gallery2 is one of the best galleries available which could be integrated with Drupal easily you would have read my post on integrating it earlier, after you have integrated it the bigger question is how get those images into your content or nodes so this posts answers it, after reading this post you would be able to integrate Gallery2 with your WYSIWYG (TinyMCE) Editor.

Prerequisites

The Steps

  1. Extract G2 Image Application in $DRUPAL_HOME/sites/all/modules/wysiwyg/tinymce/jscripts/tiny_mce/plugins/
  2. Open Gallery Setting in Web Browser from $SITENAME/admin/settings/gallery/g2image and enable G2Image for TimyMCE as shown in the image below
    gallery settings
  3. Once you have selected the Mode as TinyMCE add the following code in %drupal%sites/all/modules/wysiwyg/editors/tinymce.inc (function wysiwyg_tinymce_plugins($editor))

    'G2Image' => array(
            'path' => $editor['library path'] .'/plugins/G2Image',
            'buttons' => array('G2Image' => t('G2Image')),
            'internal' => TRUE,
            'load' => TRUE,
             ),

  4. Now enable G2Image button for TinyMCE from the editor profile at "admin/settings/wysiwyg/profile/edit/2"
  5. Thats it select G2Image button in TinyMCE

    it will popup a Galley as shown below for you to select images and insert them directly in your posts :)

    gallery Pop Up

Indic Touch to Drupal 6

Typing and display of any language other then English is always tough on the Internet to ease this we had various plugins coming in, i had also written a blog for akindic plugin for Drupal 5 last year, but what about the later and better versions of drupal, Gamabhana provides indic typing support but does not works with WYSIWYG API so this blog presents you a solution to type in Indic on Drupal using WYSIWYG API with TinyMCE

Prerequisites

The Steps

  1. Extract the Indic Plugin for TinyMCE in %drupal%sites/all/modules/wysiwyg/tinymce/jscripts/tiny_mce/plugin/indicime
  2. Add the following code in %drupal%sites/all/modules/wysiwyg/editors/tinymce.inc (function wysiwyg_tinymce_plugins($editor))

    'indicime' => array(
            'path' => $editor['library path'] .'/plugins/indicime',
            'buttons' => array('indicime' => t('indicime')),
            'internal' => TRUE,
            'load' => TRUE,
             ),

  3. Enable indicime button for Full HTML input format  from "admin/settings/wysiwyg/profile/edit/2"Adding indicime to TinyMce
  4. Enable rich text editor when creating Full HTML content and select the language from indicime dropbox as shown in the following image
    Adding indicime to TinyMce
  5. बस अब अपनी मन चाही स्थानीय भाषा मे टाइप् करे !

SMTP Authentication Support for your Drupal Sites

Drupal uses the php mail() function to send emails by default.
 
Here is a module which adds SMTP functionality to Drupal. More specifically, the ability for your site to send mail using an SMTP server that requires authentication.
 
Link to Module http://drupal.org/project/smtp
This module is currently in Beta stage for Drupal 6.x, i just tried it works fine and you can use this too. remember to read INSTALL.txt before installing this module as there are certain dependencies which are needed to have this module working.
 
This module uses the smtp and mail class’s from PHPMailer. http://phpmailer.sourceforge.net

Adding CAPTCHA to Drupal Guestbook Module

Guest book is one of the essential part for any website, To add a guestbook on your drupal site you can use the guestbook module, the problem you would face is adding a captcha to this now captcha is also very essential to control spam now how to add captcha its very simple just execute the following query

 

INSERT INTO `captcha_points` ( `form_id` , `module` , `type` ) 
VALUES
( 'guestbook_form_entry_form', NULL , NULL );

and you are done now go to /admin/user/captcha on your site and enable captcha on guestbook this would look something like this

गामाभाना

Need for phonetic editing has its roots in different keyboard layouts developed and used by different users and multiple fonts which in combination failed to produce unique easy to use compatible typing/editing solution. The problem is more in the area of software solutions being developed for different Indic Languages. Web based Direct editing or phonetic editing is an implementation which allows user to type in the context using phonetic key patterns across different keyboards, browsers and different Indic scripts.

What is gamabhana?

gamabhana is an open source implementation that uses purely client side java script to enable phonetics in editable html tags such as div (not editable in mozilla firefox) , iframe, input, textarea, document so that you can type in the context phonetically in the selected Indic script with transliteration capabilities that support unicode fonts with the help of  pre-designed gamabhana maps.

With gamabhana library and gamabhana phonetic maps you can:

  • Attach phonetics to editable html tags such as iframe and/or input (single line) and/or textarea and/or document.
  • Design your own transliteration maps for any language/script.
  • Achieve Unicode support across browsers, applications, platforms.
  • Type in the context phonetically ( direct input method) in IE ( V 5 above) and Firefox Mozilla.

गामाभाना is now available @ drupal.org

Project Page http://drupal.org/project/gamabhana_drupal

 

Drupal Camp India Pune

Drupal Camp India Pune 09, 2nd of its kind in India first Drupal Camp was held last year in Ahmedabad i registered for it but was unable to attend due to tight schedule, and guess what this time i am one of the Organizers of Drupal Camp. I have been using Drupal since 50 weeks almost a year, have also taken lectures on Drupal at various places/events including phpcamp, DKTE Engg College Ichalkaranji, my own College and a few other places. In this Drupal Camp as planned i would be one of the Speakers for the Beginner Track and would also be managing the Code Lab in which we would be working on Localization Of Drupal. Our team is already listed as Hindi Team for Localization on Drupal.org. Lokking forward for a good Camp would get an opportunity to solve many of my questions. More Information about the event at http://punedrupalcamp09.drupalindia.in
[ad#460]

Disabling Drupal Module via database

I assume phpMyAdmin is installed on your server

  1. Login to your Drupal Database

  2. Access the ’system’ table.  If you added a table prefix: , the table will be listed as ‘system’

  3. Browse the table entries, and find the entry for the target module

  4. Edit the table entry, and change the status from ‘1′ to ‘0′

  5. The module is now disabled!!
[ad#460]

Hindi Localization Server Project

Good News !!!!!!!!!!!

Now We are listed by Drupal as Hindi Team for Localization in their Localization Project which can be viewed at http://drupal.org/project/l10n_server. I request you all to contribute to http://l10n.kashipur.in and make the First Hindi Localization Possible for Drupal this is totally a Community Driven Project.

The Current Status says that there is no Translation available for Drupal in Hindi which is very well shown on http://l10n.kashipur.in, so lets contribute and make this Open-Source Project Happen.

Contributing to this project is very simple just register at http://l10n.kashipur.in and start posting suggestions to words and phrases the more suggestions we get the work would move even faster.

[ad#460]

Open Source and Free Puppies

Seth Gottlieb reported that Annie Weinberger of Interwoven, a proprietary CMS vendor, launched some good old Open Source FUD comparing Open Source to a free puppy: "We look differently at the cardboard box full of free puppies outside the super market once we become adults. As children what could be more fun than to get a puppy who is going to be your friend for life? Why not mom…it’s FREE!! But as adults we have learned the truth. We know that taking home that puppy is going to cost us in the end. The free price tag hides all the costs we are going to spend on food, training, shots, and a new couch once the puppy discovers you are not coming home at 5:00 every night to walk him. Open source WCM solutions are very similar. The free price tag is attractive at first, but for online strategies that have multiple initiatives (intranet, extranet, portal, landing pages, micro-sites, etc.), the hidden fees lie in the heavy customization, maintenance and engineering work." Puppy analogies -- especially those with free puppies -- are powerful stuff. Is Open Source more expensive than proprietary systems? It depends. You can't generalize. Open Source implementations can be more expensive if you try to bend the software too much. However, you don't have to be a genius to understand that because there are no licensing costs, Open Source has the potential to be much cheaper than proprietary solutions, and that Open Source solutions come with freedom and flexibility not found in proprietary products. Implementation cost is an important factor, but it is in providing freedom and flexibility that Open Source wins and commercial vendors lose. Open Source puppies are "free" as in "free speechbark". One thing is for sure: puppies attract attention; these days, Open Source does as well and proprietary vendors tend to be of the jealous type. The great thing about FUD, though, is that it validates our work in the Open Source community. Blog posts like Annie's trigger the competitive gene in hundreds of Open Source developers around the world, and in the end, makes Drupal stronger. A free puppy, anyone? This Blog Post is taken from Dries Buytaert's Website and is licenced under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License [ad#460]