Drupal - node.tpl.php override broken

in

Q: Help! I have overridden node.tpl.php for my content type (like node-my_type.tpl.php) in my drupal theme but it is not working, it is having no effect at all, none of my changes are being displayed when I view nodes of that type!

A: There are a few reasons why drupal will not pick up on your new node template, the most common is just that the cache is out of date and needs to be cleared, but if your theme doesn't have a node.tpl.php file drupal won't use your overridden template either.

Facebook - Publish to wall Without Registering Application

Q: Is there a way that my website can post to a users Facebook wall without having to register an application?

A: Yes there is, on way is to call FB.UI() from Javascript, it will pop up a window to ask the user if it is ok to post etc (a good thing), but otherwise you won't have to register a facebook application!

It is very hard to find information about how you website can post to the facebook wall without having to register a facebook app first, nearly all the articles out there start with - 1.) Register your application with facebook!

Latest Browser Numbers

The Register writes about browser stats for July, it seems that Firefox has lost a small amount of 'market share' while Chrome and IE8 have both made gains:

http://www.theregister.co.uk/2010/08/02/browser_market_share_july/

Chrome seems to be steadily climbing month on month, Firefox is becalmed in the doldrums while IE is still way ahead of all of them...

Drupal - Taxonomy Description in View

in

Q: How do I arrange for the taxonomy term description text to be displayed when I use the built in 'taxonomy_term' view to handle the display of my taxonomy lists?

A: You can get the text to display by enabling the view's header and adding in some PHP code which queries and displays the text...

Drupal - Display user picture/avatar

in

Q: How can I theme and display a user picture or avatar in a page, block or content template with PHP in a way that works with ImageCache and respects the default user picture?

A: One easy way to embed a user picture into your content is to create a user view to output the picture and then just embed this view into your content by calling views_embed_view() passing in the user id as an argument.

Drupal - User from Content Profile

in

Q: How do I get the user id that is associated with a Content Profile node, it doesn't seem to have any obvious referenced user field?

A: The user that a Content Profile node refers to is given by the node's author field! It can be accessed as $node->uid

This one had me scratching my head for a while, the answer when you think about it is kind of obvious and was staring me in the face all along...

Keep me texted

in

We think we've just coined a phrase! 'Keep me texted'! Makes sense doesnt it?! Have'nt heard it used before. Have you?

Drupal - node.tpl.php by Node Id

Q: How can I override my theme's node template file, node.tpl.php, just for one specific node id?
A: In your theme, override phptemplate_preprocess_node() and provide a template suggestion for 'node-[nodeId]', and then flush cache.

It is easy to provide an alternative node.tpl.php template for your different content types by naming your new node template file along the lines of node-[nodeType].tpl.php, placing it in your theme folder and then clearing you cache. Drupal automatically handles all of this for you.

Drupal - 'You have already submitted...

in

Q: How can I remove the 'You have already submitted this form. View your previous submissions' message from my webform?
A: There is no setting to get rid of this message, however it can be quite easily removed by overriding: theme_webform_view_messages() in your theme.

Here is a handy way of removing the (sometimes) annoying webforms message - 'You have already submitted this form. View your previous submissions', see comment #11 by kees@qrios, here:

http://drupal.org/node/321870

Are you quitting Facebook?

in

Are you thinking of quitting Facebook? Quite a few people seem to be annoyed at Facebook advertising to them! (imagine! Trying to make some revenue from providing a service, the cheek of it!), others are uneasy with the privacy issues.

We have a simple rule of thumb: You don't want the world to see something? Then don't post it on the internet! Especially not on a Social Networking website! There are plenty of secure photo sharing sites out there if you want to password protect your holiday snaps.

Proud member of the:
Irish Internet Association

phone-number.png