This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

webform: mysql to postgres

i'm running postgres for the db and want to use the webform module.

unfortunately it seems to be using some mysql specific calls, ie:

$result = db_query("SHOW FIELDS FROM {webform}");

can anyone help me to get this compatible with postgres?

if put the whole function below for reference:


/**
* _webform_database_lazy_update - Lazy field adder for extra email fields
* The lazy update function adds any columns in the database that are not
* listed in its internal magic array.
* It was purpose constructed to add fields 'email_from' and 'email_subject' as part of the
* enhanced email patch.
* The function does not add or delete any data and the upgraded database is backwardly
* compatible with previous versions of webform.module
*/
function _webform_database_lazy_update() {

$lazy_update_output = '';
$field_list = '';
$table_altered = false;

// {webform}
$required_fields = array('nid' => false,'confirmation' => false,'email' => false,'email_from' => false,'email_subject' => false);
$result = db_query("SHOW FIELDS FROM {webform}");

// Mark fields that exist in table as true
while ($record = db_fetch_object($result)){
$required_fields[$record->Field] = true;
}

foreach($required_fields as $field_name => $required_field){
if(!$required_field){

Google Maps module

I've worked up a Google Maps module that interfaces with Drupal's built-in RSS functions and the locative data that is added to those RSS feeds by location.module.

http://choirgeek.com/gmap

It's a work in progress, and there is obviously room for much more functionality, including content filtering, usability improvements, plotting nodes from other RSS sources, etc....

Thanks in advance for your comments and suggestions.

-Bjorn

google maps api key

I'm working to hack together a module that will take locative data assigned to nodes with location.module and plot those nodes on a map using the Google Maps API.

Search hook for page callback

I have created a module that has a few pages, the menu callback kind. The content on one of these pages needs to be searchable. Is there any way to do this?

Story to Forum workflow

Hey y'all.

I have been itching to use a Story (and Blog) to Forum workflow with Drupal for the longest time. In my dream version, this is how it would work:

  • a user visits a story node (in this example, but this could be extended to any non-forum node).
  • instead of seeing the "add a comment" link, user is asked to "discuss this item."
  • clicking this link takes user to the "create content -> forum topic" page.
  • the category for this new forum topic is locked to the particular forum designated for story discussions in the admin screens.
  • when created, this post has a special "in reference to" link back to the story node.
  • on the original story page, a reverse list of links to all the forum topics discussing this page is displayed.
  • on index pages (home, category, etc.), a link that anchors to the reverse list is displayed as "1 discussion" as part of the node's listing (in the same way it would say "1 comment" if it had been commented on).

The problem I have with comments is that they are displayed in line with the story (and vice versa). Most sites that run comments directly under posts usually only generate discussions that should be branched into separate topics. Usually this is because the immediate response is to simply type into the first textbox you can find and hit submit. With this workflow, a user has the option not only to break any story-reply activity across pages, but also to expose the site's forums in general, utilize block layouts/contents that are different than the story's layout and encourage people to post beyond simply replying to front-page stories.

block with feed sources

hi everybody,
Any idea how to add a snippet to show only the feed sources?
Thanks

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions