Lightbox2, hiding flash content

Having problem with Flash when using lightbox for overlay? Just add transparency to those flash embed codes and they will be in the dark.

<param name="wmode" value="transparent" />
<EMBED src="swf.swf" quality=best bgcolor=#FFFFFF wmode="transparent" WIDTH="550" ...

How to print Description under the each Imagefield

So you put description for your images but there are nowhere to be seen? You or your client wants to have descriptions of images under each one. Well you will have to do some theming, in fact you have to create content-field.tpl.php and put it in your theme directory. And the code should be like this

IE stylesheet Limit

There is a "31 stylesheet limit in IE 6 & 7" so sometimes your page will break in this browsers. You will go crayze, asking yourself whats going and, checking CSS and tags.

Node loading, simple variable passing to flash banner

So in previous post with made drupal custom block now lets make custom block with flash banner where data to banner is passed from node that has CCK fields.Make content type with 4 cck text fields, or just use one field, even body can do and then you can manauly manipulate string with PHP, just have some separator in your input.

Custom block

Sometimes you want to customize block more then its available through drupal admin, then you start themeing. Quickest way is to copy default block.tpl.php file and then edit its name to something you want to customize. Lets say we customize block number 4, which is block created with views, then you make your file name like "block-block-4.tpl.php" and then change its content.

Anatomy of perfect landing page

Sometimes i will post just interesting things for web design in general. For example, this is good link with visual how your front page should look. Unfortionatly not much drupal themes look like this. I only know of this two

Glossify Internal Links Auto SEO vs Link Inteligence

Both of this modules are still work in progress but you can make good use of them. Currently Glossify is my favourite because it links to taxonomy terms when needed. Link inteligence has maybe a bit better perspective and whole architetture behind SEO Tools module looks very promising but when you use it you won't be satisfied so much with results and links it makes, although there is high level of customization present and also bulk generating of links.

Remove new comments link in links section

Often you want to remove something from links section of nodes, best way is to intercept it in template.php and use UNSET on it, for example look here:

 

Use first image in imagefield gallery as teaser image or headline image

When you create imagefield gallery you can easily use first image to set it as teaser image if you use Views and Fields for row style but if you use NODE than you have a problem. Also with views you usually override or make lists of nodes but for full node display you need to use something else like Panels, or you can also try overriding nodes with views but that's not best practice.