Add UTM tag to links, so other people know when users come from your site

So this is some marketing stuff I do, but it is useful. When you click a link on some site, to give some message to that site and owner or whoevere is taking care of marketing you can add some UTM tags to links so in their google analytics they see that message. So what do we do is I use display suite, create custom code field and use entity data to make new fields that look like this:

Re-ordering Webform Component Descriptions

Webform is great but fails sometimes at some basic things. Like you want to display description before the field, YOU CAN'T!! seems stupid but it is like that. You can do some nasty jquery overrides or CSS if you can (put both as absolute position and move them). But to do this "DRUPAL WAY" you need to make a custom preprocess function for this in your theme.

Mass enable/disable comments

If you created nodes and then enabled comments module after that you will have all those nodes without comments. Even if you enable comments for that content type, this will only help on the new nodes created. So to do that you would probably either run some code in phpmyadmin or make action to use with VBO module.

So for drupal 6 we go to phpmyadmin and run this query

Microdata and Fivestar

Microformats are going to be big, they are big even today. Drupal is caching up but modules don't work properly. First thing you would probably do is ratings/review formating. You can try with microformat and fivestar module but it will not work properly. So I themed the fivestar summary function differently and added few lines and not it works and you can check it with google tool

Hide an Empty Panel in Drupal (Views pane, mini panels)

I had this problem with view panes in panels. I create a view pane, add it to panel and it works nicely when there is data. But when there is not I got just some empty html data, problem is that this html data was wrapper data and it showed some CSS elements even when there was no data.

Simplenews Content Selection - sorting of nodes

In this module default sort is just terrible, terrible idea. If you are creating newsletter, chances are you will want to put newest content in it. Currently you have oldest nodes first and newest on 10th page. So you will have to change sort each time you create NL. This is just bad design.

Drupal 6 to drupal 7 migration tips

However you choose to do a migration from drupal 6 to drupal 7 if you have any complexity in your site it is going to be ugly. Lots of errors and leaps of faith :-).

I choose to do it with drush. So after the drush made what it could do. I tested the site. Not working at all, not even logging in possible. What I did is: