As told in my previous micro blog post, I was looking for an easy way to format the code that I was putting on my site based on drupal. I wanted it to be quick and easy to integrate with Drupal. And yes, I wanted something which would work on the client side and not on the server side. So, no PHP code or things like that. Continue reading “SyntaxHighlighter with Drupal 7”
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”
In my last tutorial on Yii framework, I explained how to create a basic web application using the Yii framework with the help of command line. This time we are going to extend more on that. We will see how Yii work on the MVC principal and how we can make use of that using a very simple example. Continue reading “Yii framework: Introduction to MVC”
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”
Today we are going to learn how to make use of the Yii framework and make a web app. I have been doing a bit of reading at my office on different frameworks available for PHP and in the end, the decision was Yii. So, will be diving into the Yii framework and check the possibilities. Continue reading “Making a simple web app with Yii framework”
With the web 2.0 style web designs, minimalist designs etc, one thing is certain – fonts are playing a very important part of the visuals of the site. Gone are those days where big images, boxy buttons were “The thing to do”. And another aspect is the different mediums through which our websites are accessed now. Continue reading “CSS font size and its units explained”
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”
Google has just released their new version of Google chrome – Chrome 10 beta. So, let’s check out what are the new features or advancements to the new very popular browser.
This tutorial is to show how to install a drupal installation with clean URL and image cache on a wamp server. Continue reading “Install drupal with clean URL and imagecache”
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”