Drupal is up and running but how do I ...?

email comment on reply to comment? i can't find where it is!

Hi all - I remember reading somewhere that people who comment can click a box to be notified if someone replies to their comment. I can't find it now for the life of me - anyone know how to do this?

Thanks,
Allen

creating a global variable.

Hi all, maybe i'm being thick, but I cant figure out how to create a global variable! I know how to do it in php...with the global keyword and all (or the $GLOBALS array). But where do i declare and initialize the variable in drupal!?!? I'm going crazy! I tried declaring and initializing my variable in index.php, settings.php, template.php, page.tpl.php... and then when i refer to it later in a function it is unset! what am i doing wrong?

A list of modules that are most resource consuming.

Hello there!

Reading this thread I think it would be nice to have a list made by users of which modules are the most resource intensive.
(you could also read this other post)

Of course that it all depends of server configuration, but this list could be a good hint for us -newbies-.

I´m gonna start it with:

  • locale
  • ecommerce
  • civicCRM

Please add more based on your own experience.

Clearing Watchdog

Hey,

I've watchdog on and there were some problems with my template so now I have 47 pages of watchdog that reported that there was something wrong, how do I clear this in my database? I'm not so familiair with mysql.

Thanks for the help

webform: return to calling node (2, no 3 questions)

Hi, (excuse the lengthy post)
Testing the webform module to have users edit data on a site I have two questions using this module:
First: after a successful submit of the form it displays a link to return to the form 'Go back to the form', using this code (line 1192 etc.)

/**
 * Themable function for webform submission confirmation
 */
function theme_webform_confirmation($node) {
  $node->body = check_markup($node->confirmation, $node->format, FALSE);
  $node->links[] = l(t('Go back to the form'), 'node/'.$node->nid);
  return theme('node', $node, FALSE, TRUE);
}

On returning to the form the data is gone which is annoying if you have prepopulated the 'Default value' or the 'Description' through one of the available variables passed by the URL.
Example Description: Mybeautifuldescription is this: %get[mykey]
gives "Mybeautifuldescription is this:howbeautiful". On return this gives "Mybeautifuldescription is this:blanc"
Also, if the user only had to fill out the form once this doesnt make sense either.
Wat would it take to have it display an (could be additional) link to return the user to the page that called the form in the first place?

Second:The overview at www.example.com/?q=admin/webform lets me export the collected data to a csv file, works fine. My question is: is there an easy way to transfer the data to a content node? The reason being that the data from the webform should UPDATE the data in a node. Is it by design that the admin can't edit the data from the submitted form? (hey, thats a 3rd question)

Listing nodes for a particular month

Hi guys

At the moment I’m using the script below to display a list of nodes from a particular category, nothing new here all for the snippets page

/**
* This php snippet displays nodes
* from a list of categories specified in the first line ($taxo_id)
*
* To increase/decrease the number of nodes listed
* change the $list_length value to suit.
*
* Works with drupal 4.6.x & 4.5.x
*
* Snippet submitted by Robert Garrigos (robertgarrigos)
* Updated by Sean Robertson (seanr)
*/
$taxo_id = "3,4,5"; /* comma seperated list */
$list_length = 1;
$sql = "SELECT * FROM {node} INNER JOIN {term_node} ON {node}.nid = {term_node}.nid WHERE {term_node}.tid in ($taxo_id) ORDER BY {node}.created DESC LIMIT $list_length";
$result = db_query($sql);
while ($anode = db_fetch_object($result)) {
$output .= theme('node', $anode, $teaser = FALSE, $page = FALSE);
}
print $output;

What I was wondering is that how can I change it around a bit so that I list all nodes for a particular month given the year and the month as input variables.

All I want to do is list the nodes for a particular month and year but I want to keep the code to the bare minimum. I’ve looked at the month module but things seem rather bloated for what I want to do. Also at the moment I’m checking the archive module to see if there are any ideas on how this can be easily completed.

Pages

Subscribe with RSS Subscribe to RSS - Post installation