Drupal

Fri

22

Jan

2010

Wordpress to Drupal

I know I have not posted at KalaaLog.com for quite a long time (a little more than a year). The reason for this, is not the subject matter of this post. The things that I started to ponder when I was upgrading the Wordpress installation is the subject matter.

Thu

21

Jan

2010

ದ್ರುಪಾಲ್ ಮತ್ತು ಕನ್ನಡ

ನಿನ್ನೆ ನಾನು ಹೀಗೆ ದ್ರುಪಾಲಲ್ಲಿ ಕನ್ನಡ ಬರೆಯುವುದರ ಬಗ್ಗೆ ಯೋಚಿಸುತ್ತಿರಬೇಕಾದರೆ ಗ್ರಹಣ ಬ್ಲಾಗ್ ನಲ್ಲಿ p6 ಬರೆದ ಎಂಟ್ರಿ ಸಿಕ್ಕಿತು: Help Translate Drupal to Kannada (ದ್ರುಪಾಲನ್ನು ಕನ್ನಡಕ್ಕೆ ಅನುವಾದ ಮಾಡಲು ಸಹಾಯ ಮಾಡಿ)

ದ್ರುಪಾಲ್ ಕೋರ್ ಪ್ರಾಜೆಕ್ಟ್ ನಲ್ಲಿ ೬೦೫೮ ಪದಗಳು ಅನುವಾದ ಮಾಡಲಿಕ್ಕಿದೆ (6058 untranslated words). ಇದರಲ್ಲಿ ಕೆಲವು ಶಬ್ಧಗಳನ್ನು ಈಗಾಗಲೇ ಅನುವಾದ ಮಾಡಿಯಾಗಿದೆ. ಆದರೆ ಇನ್ನೂ ಹಲವು ಶಬ್ದಗಳು ಬಾಕಿಯಗಿವೆ.

Mon

02

Feb

2009

deviantART Embed - Drupal Module - Beta Release 2

The deviantART Embed Drupal module version 1.0-beta2 is released.

In terms of user features, there is nothing new. But in terms of going the Drupal way, a major overhaul has been done on the module.

The dependancy list now includes the CCK, Embedded Media Field and Views modules. The project itself is split into two modules: deviantART Embed, and deviantART blocks.

deviantART Embed project architectture

This project is mainly the glue between core Drupal and the other reliable contributed modules. In fact, all the current features of deviantART module can be installing and enabling these dependent modules and manually configuring them. The module aims at providing the 'out of the box' experience in terms of integration with deviantART.com with a Drupal powered website.

The 6.x-1.0-beta2 release is usable, and I would release the final 1.0 version after some feedback.

The next item on my TODO list for this project is to provide user account association with a deviantART account.

Mon

26

Jan

2009

deviantART Embed - Drupal Module - Beta Release

Just checked in the custom Drupal 6 module - deviantART Embed.

Further progress can be tracked over at the Drupal.org deviantART Embed project page.

The deviantART Embed 6.x-1.0-beta1 release is ready for download and feedback.

Fri

23

Jan

2009

Use Twitter module - not Twitter Block

Yes, you are right. I am asking you to shift to using Twitter module instead of Twitter Block that I developed.

The reason is simple - Twitter module does a lot more than provide a Twitter block. It allows you to post directly to Twitter from your Drupal site. Just note that to use Twitter module as a Twitter block, you will need to install and activate Views and Views UI module.

It may seem like complicating things, but if you need flexibility and reliablity of a large team of Open Source enthusiasts, you should opt for the one that gets more effort put into.

You may not notice any change on my homepage sidebar, but I have shifted to using the Twitter module and it looks as my custom module with minimal change to the CSS. (I just changed the class to id supplied by the View).

Perhaps, I will write some basic documentation of what I got using the Twitter module.

Wed

21

Jan

2009

deviantART Embed - Drupal Module

This is the second custom module, after Twitter Block, called the deviantART Embed module.

Unlike the last, this module creates another content type, which is similar to a Page or Story types except for another field called embed-id. This is the string of numbers at the end of the deviantART entry.

The module generates the embed code during display of a page. It also generates the required CSS class names so that it can be styled any way you want. For example, check out the first deviantART embed entry here.

Download: deviantART Embed

The module also gives a block that displays links to the latest published deviantART embed nodes. The number of links can be configured through Administer » Site configuration » deviantART module settings.

I have done some preliminary testing. If you find any bugs, do not hesitate to mention in the comments below.

Mon

12

Jan

2009

Twitter Block - Drupal Module

This is related to the Twitter status you see on my homepage.

Update: There will be no support for Twitter Block module. Please use Twitter module instead. Read the reasoning here.

I was browsing around, when I came across Aaron's on adding Twitter to a Drupal site. Since I am in the process of redesigning my site, I was a little more aware of the closure variable and hence I commented so on his post. He nudged me on his respone through Twitter.

Thus, I created the Twitter Block module. It is quite minor and straight forward at this moment and advanced modules have already been coded. (See the modules download page over at Drupal.org).

Download module: Twitter Block

I am yet to put the license files, but it is provided under GPL. The installation is simple - just copy to your modules or sites/all/modules folder. You should get the Twitter Block menu in the admin/settings once you enable it. It lets you configure:

  • Twitter User Account
  • Twitter Block Title
  • Disable/Enable Follow Me link
  • Text of the Follow Me link

As far as the comment goes, I was able to add the Javascript references to the $closure variable. For a background, you can see from Twitter page, that putting the Javascript references near the footer increases the page load times.

Hot tip! To ensure loading of your page even in the case of twitter.com non-loading, move the two lines that start with <script type="text/javascript"... to the bottom of your page (just above </body>).

While coding this module, I took a wrong turn with the drupal_add_js() function, and after some trial and error, use the hook_footer() to get these Javascripts into the $closure variable properly.

Once you install and configure this module, you can sytle it by lathcing on to the block-twitterblock class. You can see the result of my current theming on the Twitter Block:

Styled Twitter Block

Credit goes to DryIcon via SmashingMagazine for providing the Twitter icon.

Mon

12

Jan

2009

Drupal Theme Tweak

After taking the plunge to design a new Drupal theme, I decided to clean up and start tweaking the theme a little bit.

You will note that now it has a good grid like setup, along with the added extra column on the side. Earlier layout allowed for only region. This one has a total of six different regions - he two sidebars, one region on top of it and three footer regions. I would not have thought of venturing out to such a complex structure had it not been for the Blueprint CSS framework. It reduced a lot of time I would have spent on tweaking the layout before even attempting to style.

The layout is currently tested in Firefox and Opera - both from Linux. I will be doing the testing on IE soon - meanwhile, if you find any layout aberrations, do drop in a comment.

Also, you will see that, current entries have nice little calendar icons, that is created fully using CSS - I took quite a bit of direction from . There are no images. Infact, as of this moment, apart from the feed icon, and the logo, there are no images. (It will be changing shortly).

So keep expecting changes.

Mon

05

Jan

2009

New Drupal 6.x Theme

Finally, I got to the point where I upgraded to Drupal 6 for this website.

The regular readers might have noticed that there is a starking change in the theme. Earlier, I was using another theme, Alek 2.0. A beautiful theme, but it seemed to have problems with Drupal 6.x - or atleast with the set of modules I had installed.

Hence, I thought I would do "a quick and simple" theme myself. The result is here, and it can be called to be in a beta state - not sure if I would release it or not because the CSS is a bit messy. It turned out to be not that simple.

There are a few things I will be fixing in terms of styling the links (you can see a lot of blue and purple sprinkled around currently) which would all go monotone and be harmonized. Drupal, striving towards flexibility gives a lot of class attributes to the numerous elements and I am yet to have a full understanding of the theming architecture to do it efficiently.

I still remain impressed though - the theme as it is currently requires only one style CSS file, one tempate file (page.tpl.php) and the .info file.

Expect few more changes around here.

Mon

18

Aug

2008

Blogging through Ubuntu + BloGTK + Drupal

I am attempting to blog through desktop client for Ubuntu called BloGTK.

The install was a breeze through the Synaptic Package Manager of Ubuntu. Activating the BlogAPI module in Drupal was as simple as checking one box to turn it on, and then selecting the list of contents I should be able to post through the Desktop client.

It took me a bit of search to find out the exact URL to be put in the account settings (server address + xmlrpc.php), but once done it is pretty straight forward.

One notable limitation of using BloGTK is that I am not able to choose multiple categories. I use categories extensively and attach the same post to multiple applicable categories. Not sure if I am missing any settings. I even tried Drivel Journal Editor (search for "drivel" in Ubuntu's package manager) and that too seems to have the same limitation.