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

Testing jstools - tabs

Hi,

I'm testing tabs (from jstools). This is the example given for readme.txt file:


  $tabs .= theme('tabs_tab_page', t('First tab'), t('This is the first tabbed page'));
  $tabs .= theme('tabs_tab_page', t('Second tab'), t('This is the second tabbed page'));

  $output = theme('tabs_tabset', 'example', $tabs);

  print $output;

...but, how could I insert any snippet like this one in one of these two tabs?

/**
* 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.
* The Snippet ignores terms with no nodes.
*
* Tested and works with Drupal 4.6
* To change the vocabulary references, change the $vocabulary_id value to suit.
*/
$vocabulary_id = 4;
$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) .'<br />'. t('%time ago', array('%time' => format_interval(time() - $category->updated)));
  }
print theme('item_list', $items);

));

$output = theme('tabs_tabset', 'example', $tabs);

Views: Matching Taxonomy Terms?

Servus.

I got two types of nodes -- both are CCK structures.
One node holds all the page's content, the other holds quotes of people.
I set up a vocabulary "reference" where I put terms 'adults' and 'kids'.
I set the proper term for every record.

Now I'd like to use views' filtering to display matching nodes. Such as:

When the user goes to page "kids::balloons", the page is categorized "kids" and a quote in the same categorie should be included on that page.

Webform error message in Drupal 4.6

Hi all,

I am getting an error when trying to view a webform on a Drupal 4.6 website. The address of the form is: http://www.plattelandsparlement.nl/node/47

The error message is

Fatal error: Call to undefined function: filter_xss() in /home/httpd/vhosts/plattelandsparlement.nl/httpdocs/modules/webform/webform.module on line 1041

Directory files is not writable.

Gives me that error, the fact is, it doesn't tell me with what combination I should CHMOD it.

What should I do?

Display voting control from Voting Module

Hi there,

I have been banging my head againt the wall trying to call a basic function from the voting module. I have a variety of themed content types (created with CCK) and I want to diplay the voting control. The code from the voting module is:

How do I prevent authoring info from appearing?

Since each post on my site will start with a byline of the author, it's redundant (not to mention space consuming) for the home page to attach info that IDs the author and the date/time the content was added. (I also would like to remove the info that informs visitors how many times that specific piece of content has been viewed).

Can anyone tell me how to remove this?

Pages

Subscribe with RSS Subscribe to RSS - Post installation