Adding CCK Fields Through Modules

Original Credit to Drewish from http://drewish.com/node/118, and of course the CCK team for such a fantastic tool. I'm just adding it here for reference, and expanding a bit with the uninstall knowledge.

Tags: 

Collapsible Form Item Descriptions

emfluence™ needed to start including fairly lengthy descriptions on some of their fields today, without taking all the screen real estate or bothering the users that already knew the system. The answer everyone agreed would be best would be to allow the form items to have collapsible descriptions. I traced out a way to do this by overriding the form_item theme provided by the basic form.inc from Drupal. This could be done through your template file, or a module by overriding the theme function (I explained this in another fragment a couple weeks ago) in case you're running multiple themes.

Cleaning Up Shorthand PHP Syntax

This one is more than a personal gripe, there's a valid server related issue when you write shorthand PHP code. If you are one of those people doing <? ?> stop now. You get into an issue of "is this php or xml" since you share the same opening tag. There's also a number servers out there that have the shorthand coding option turned off. Stop with the shorthand, all you do is create instability.

Tags: 

Tracking External Links

Google Analytics doesn't track external page links by default, you have to setup a small bit of javascript to delay the website exit, and trigger a virtual page hit. The code for doing that involves a small bit of jquery, and the newer version of the google tracking code.

Pages

Subscribe to Fragmented Thought RSS