CSS for iphone

When you decide to make page for iphone, or maybe just make additional css to change how its views on iphone you should add this code, as iphones ignore other code. With this you set it depending on the size of the screen, so you hide sidebar for all devices that have screen smalled than 480px (widescreen iphone format). More info can be found on linke below

Custom field available data - Views

To find out which fields are available in custom fields in views, put following code in custom PHP field.

print var_export($data, false);

Online site when transfered to offline(localhost) doesn't work

Few times i transfered online site to my localhost and site wouldnt work, no response form page. What i realized is that main problem were cache tables in database. After clearing them everything was fine. Best way to do that would be to use backup and migrate module and just select all cache tables to be emptied in advanced settings and then backup database and import it to your localhost.

Views and Global:Null argument

Today I made a view from which 3 menu links derive, problem was that all had the same title as it was only one view. Way to solve this was to pass argument to view trough Global that would be ignored in query.

Setting a form value with jQuery

If you want to select form value, for example hidden field for subject in mail form you can set the form values with jQuery using the val() function.

If the form element is <input id="subject" name="subject" type="hidden" value="someweb.com" /> you set it with  $('#subject').val(itemId);

so put it in function

Mailhandler

Today i stumpled upon mailhandler module, cant wait to try it out. Creating content from email client could boost content production in many sites, mainly aiming for classifieds sites and community sites.

http://drupal.org/project/mailhandler

Taxonomy image duplicate nodes in views

Recently i had a problem with taxonomy image and nodes. When using it with views you get every node listed twice, even when using dinstinct filter.