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

how can i create a group of textfields similar to the checkboxes or radio groups?

Drupal has some handy plumbing available, that obviates the need to write your own code. An excellent example would be the checkboxes. One can group a series of checkboxes together , available in one array variable. This is good because one can then name the group of checkboxes some meaningful variable name, which will assist in processing later. I've seen this article:

http://drupal.org/node/37862

about extending types , and this one:

MassMailer: I have done everything right but...

I have dealt with the CLI problem. It passes the phplist bash. I can execute files in the phplist/admin directory using php-cli in the shell. I have hardcoded paths that I know are correct in PHPList's index.php. I am now at a point where the phplist queue trigger (send messages) does nothing. The message box remains empty. Messages stay at "submitted" and are not sent. Is there something I can do to test what might be happening at this point?

A second question: what is the relationship between MassMailer, PHPList and cron, if any?

Thanks,

evan

Q: Book navigation, next, prev, up?

I don't know why but I cannot get these links to shop up after creating a book. Is there some type of code I need to use in order for these links to appear?

Thanks!

Theming a snippet better?

How can I change this code so that it prints out better? There is a huge gap between the edge of the block and the list bullets:

/**
 * Creates a list of node titles selected from multiple vocabularies
 * in descending chronological order (most recent first).
 * Titles link to full node.
 *
 * To change vocabularies to select from,
 * edit the $vocab_id numbers, retaining the "" marks.
 * Value should be a comma separated list of vocabulary id's
 *
 * To change the number of node titles, edit the $list_no number.
 *
 * This snippet is tested with Drupal 4.6.x
 *
 */
$vocab_id = "36";
$list_no =15;
$sql = "SELECT DISTINCT(node.nid), node.title, node.created FROM node INNER JOIN term_node ON node.nid = term_node.nid JOIN term_data ON term_node.tid = term_data.tid WHERE term_data.vid in ($vocab_id) AND node.status = 1 ORDER BY node.created DESC LIMIT $list_no";
$output .= "<ul>";
$result = db_query($sql);
while ($anode = db_fetch_object($result)) {
$output .= "<li>".l($anode->title, "node/$anode->nid")."</li>";
}
$output .= "</ul>";
print $output;

In another snippet, instead of all the $ output etc above, I saw just

print theme('item_list', $items);
?>

and it does not have the huge gap.

Here is the full code of the latter snippet:

<?php
/**
* This php snippet displays a themed summary list of vocabulary term titles(x) from a specific category
* Where (x) is the number of nodes in each term
*
* Tested and works with Drupal 4.6
* To change the vocabulary references, change the $vocabulary_id value to suit.
*/
$vocabulary_id = 11;
$result = db_query("SELECT d.tid, d.name, MAX(n.created) AS updated, COUNT(*) AS count FROM {term_data} d INNER JOIN {term_node} USING (tid) INNER JOIN {node} n USING (nid) WHERE d.vid = $vocabulary_id AND n.status = 1 GROUP BY d.tid, d.name ORDER BY updated DESC, d.name");
$items = array();
while ($category = db_fetch_object($result)) {
$items[] = l($category->name .' ('. $category->count .')', 'taxonomy/term/'. $category->tid) .'

paypal

I have installed paypal subscription module with ecommerce.

Ecommerce module is working fine but user did not get doawnload file link after successfull payment on paypal.

I need to go to admin and set order status as completed than only my user get download link option in "file download"

I have activated IPN on paypal account

Any help

Event enabled content - Turning off display of Start date/time...

If I don't want the Start date/time and the Timezone to display in the posting of an Event enabled content type, how do I turn it off or otherwise prevent it from displaying? I couldn't find a way to do it through the admin menu, so I'm assuming it has to be done through the theme template somehow.

Roger

Pages

Subscribe with RSS Subscribe to RSS - Post installation