Drupal - 'You have already submitted...
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:
- Kevin's blog
- 1 comment
- Read more
- 3350 reads
Are you quitting Facebook?
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.
- Shane's blog
- 3 comments
- Read more
- 1853 reads
Drupal - Lightbox2 on all Links Problem
Q: Help, I just installed the lightbox2 module and now nearly every link I click on results in a lightbox appearing, what do I do?
A: Upgrade to the dev version of the lightbox2 module and the problem should go away...
- Kevin's blog
- 4 comments
- Read more
- 2723 reads
Drupal - Forum Container / New Topic
Q: How do I remove or delete the forum container entries from the 'Forums:' dropdown on the 'New Topic' form? If a user chooses a forum container rather than an actual forum and then tries to create a post an error message like 'The item [Container Name] is only a container for forums. Please select one of the forums below it.' is displayed - this is really annoying the client!
- Kevin's blog
- 4 comments
- Read more
- 429085 reads
Drupal - Get View results in PHP code
Q: How can I programmatically invoke a view and retrieve its result/output data in PHP?
A: Use the new(ish) views function - views_get_view_result(), and access the result data in the array that it returns.
- Kevin's blog
- 3 comments
- Read more
- 29388 reads
Drupal - PHP Add Taxonomy Term
Q: How can I programmatically create or add new Taxonomy Terms using PHP code?
A: Call the function taxonomy_save_term() passing in the details of the new taxonomy term.
- Kevin's blog
- 1 comment
- Read more
- 7030 reads
Drupal - Get View Display Id
Q: How do I get the 'display id' ($display_id) of a view display so that I can pass it to views_embed_view() when programmatically showing a view?
A: View display ids follow a pattern like page_1, page_2, block_1, block_2 etc., depending on the display type - they do not follow the display's title (I spent a lot of time trying to plug in variations of the display name with no success!) The documentation for views_embed_view() does not explain what the display id is or where it comes from....
- Kevin's blog
- 1 comment
- Read more
- 13427 reads
Google profits boost web sector
In this gloomy climate it's great to see some good news - and the Irish Times reports here that Google has seen a sharp rise in its profits for the first quarter of this year - more evidence they say that the online advertising and technology sectors are bouncing back from the recession. It seems that revenue rose 28% which is the the biggest rate of growth since the third quarter of 2008.
- Kevin's blog
- 1 comment
- Read more
- 931 reads
Drupal - Content Profile Node from UID
Q: How do I load a user's Content Profile node in PHP given their UID or user object?
A: Use the function content_profile_load() to load the associated profile node.
- Kevin's blog
- 4 comments
- Read more
- 11087 reads
Drupal - Location Change <H3> Title
Q: How do I change the very LOUD <H3> Location title in a node view to something more suitable?
A: This can be easily changed through theming by copying locations.tpl.php to your theme folder, editing it and clearing the theme cache.
- Kevin's blog
- 2 comments
- Read more
- 3588 reads















