[url=www.theregister.co.uk]The Register[/url] 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:
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...
[b]Q:[/b] 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?
[b]A:[/b] 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...
[b]Q:[/b] 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 [url=http://drupal.org/project/imagecache]ImageCache[/url] and respects the default user picture?
[b]A:[/b] 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.
Q: How do I get the user id that is associated with a [url=http://drupal.org/project/content_profile]Content Profile[/url] node, it doesn't seem to have any obvious referenced user field?
A: The user that a Content Profile [http://drupal.org/project/content_profile] node refers to is given by the node's author field! It can be accessed as
We think we've just coined a phrase! 'Keep me texted'! Makes sense doesn't it?! Haven't heard it used before. Have you?
[b]Q:[/b] How can I override my theme's node template file, node.tpl.php, just for one specific node id?
[b]A:[/b] In your theme, override [i]phptemplate_preprocess_node()[/i] and provide a template suggestion for 'node-[nodeId]', and then flush cache.
It is easy to provide an alternative [i]node.tpl.php[/i] 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.
[b]Q:[/b] How can I remove the 'You have already submitted this form. View your previous submissions' message from my webform?
[b]A:[/b] There is no setting to get rid of this message, however it can be quite easily removed by overriding: [i]theme_webform_view_messages()[/i] 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 [email protected], here:
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.