SunitesLounge

Blogging Information & Resources
RSS icon Email icon Home icon
  • Localize.drupal.org: More improvements on the staging site, feedback is still welcome

    Posted on March 10th, 2010 drupal.org aggregator No comments

    I've announced our staging site for localize.drupal.org two weeks ago, and some people did take on the opportunity to test out the site and provided valuable feedback. Fixes and improvements are rolled out continually on the site. Since the staging site was set up with a completely revamped user interface to translate text, the following changes made their way onto the staging site:

    read more

  • Dries Buytaert: City of Athens using Drupal

    Posted on March 10th, 2010 drupal.org aggregator No comments

    The City of Athens has launched a new Drupal site to serve as its official website, along with a Drupal-based site at http://www.breathtakingathens.com/ that provides visitor and tourism information.

    Athens is a large city (3.5 million residents and 6 million tourists each year), with a large tourism base due in part to its role in the 2004 Olympic Games. To support the city's needs, the site includes a large calendar of city events, a comprehensive map-based index of city services and interactive tools that allow citizens to access city resources. The site builds on Drupal's multilingual capabilities to provide information in both Greek and English.

    City of athens
    Breathtaking athens
  • Stella Power: Migrate module: migrating a node’s taxonomy terms

    Posted on March 10th, 2010 drupal.org aggregator No comments

    One of the issues I encountered when migrating nodes to Drupal, using the migrate module, was that I couldn't associate nodes with more than one taxonomy term. Actually in this example, I'm migrating content from one Drupal database to another, so I'm going to assume everyone is already familiar with the database structure, specifically the node and term_node tables.

    When I first started using the migrate module, I ran into a similar problem with migrating a user's roles. It's not possible to just create a Views relationship (aka LEFT JOIN) between the node and term_node tables using the node id. This will produce one row for each node and taxonomy combination, but the migrate module is only able to handle data sets that contain one row for each entity. With the above solution, I have more than one row for each node, which causes the migrate module to import the same node more than once, causing all sorts of problems.

    Like with the user roles example before, we can overcome this by implementing a migrate hook, specifically hook_migrate_prepare_node().

    read more

  • Justin Miller: Drupal module: Advanced Comment Trigger

    Posted on March 9th, 2010 drupal.org aggregator No comments

    I have to admit that I've got it pretty good in the website spam department. The Mollom project, started by some of the same folks who started Drupal, uses content analysis to keep spam users from registering accounts on my site, leaving blog & forum comments, and using my site's contact form to spam me via email as well.

    The only problem that I've really seen is the rise of spammers who will post blog comments containing text from the blog post itself, almost entirely unchanged, along with one or more links to their sites. Content-based analysis is of no use here, since the majority of the comment is actual text that I would want on my site -- after all, I blogged it!

    Until now, I've been following all blog comments to my site via built-in RSS feeds, noticing spam comments some time after they were posted, and going back and deleting them. Drupal allows for comment moderation, but I want comments to go out there right away.

    read more