How to use hook_theme and hook_node_load in drupal 7

Drupal makes me Happy

Recently I had a requirement of having social networking icons like Facebook share, Retweet, Google plus on all node pages of a site. So, I decided to have my own SNS module and use hook_theme() function to theme my variables.That is I don’t have to put any SNS codes in the node tpl and everything can be managed from one place. Continue reading “How to use hook_theme and hook_node_load in drupal 7”

Using drupal features: example of a custom blog module

Drupal makes me Happy

Drupal features is a module which allows you to create your own modules where you can include your own views, content types and many other features. With features you don’t have to go through the pain of making same views and features for some common type of features on your site like blogs, forums etc.Drupal feature is a module which can make life easy for people who are making websites based on Drupal day in day out. One of the biggest advantages of feature which I personally feel is re usability. Continue reading “Using drupal features: example of a custom blog module”

CSS hack/fix for Google chrome and Safari

CSS Hacks Chrome and Safari

This time it is a small one about how to fix a css issue. I was working on the theme of my website when I came across this strange problem. One of my div container with an image had some negative margin. This was working wonders on Firefox and Opera, but somehow Google chrome was not in a mood to co-operate. I could have used some server side code to check the browser and things like that, but then, it would have been an overkill for a small problem which can be take care with CSS hack.
By the way, I have not even mentioned about Internet Explorer because personally, I don’t support it. If it is working, then well and good 😛 (a way to say no to IE). Continue reading “CSS hack/fix for Google chrome and Safari”

Road trip to Durshet

Destination Durshet

Planning the trip:
It was around 2 AM when suddenly I got a message from my friend to come online. We decided to go for a short road trip… thanks to Facebook updates on mobile which woke me up ;). With only 3 hours of sleep, we were suppose to start early at around 6:30 AM towards Durshet. Where is it? What are the things to see? I was not at all sure about that… the only thing I knew was that I have not been to a trip for quite some time now and I was bored of my daily routine. Continue reading “Road trip to Durshet”