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

PHP snippet debug request (help!)

Sorry to distract from the most-important Drupal 4.7B2 debugging efforts. I am in the thick of developing a site for a pro bono client, and they want to be able to generate traditional blogrolls (i.e., alphabetical lists linking to other websites) -- but broken down by taxonomy terms. I'll lay out the code. Maybe someone can see what I'm missing.

This code works on several 4.6 installations I have. This creates an alphabetized blogroll linking directly to the destination sites, using all published weblinks:

/* This php snippet generates an alphabetical blogroll list
* drawn from weblinks nodes on your site.
* Links connect to destination, not the weblink node.
* Limit is offered as an option.
*/
$nlimit = 100;
$result = db_query(db_rewrite_sql("SELECT n.title, w.lid
FROM {node} n
  INNER JOIN {weblinks_node} wn ON n.nid = wn.nid
  INNER JOIN {weblinks} w ON wn.lid = w.lid
WHERE n.type = 'weblink'
  AND n.status = 1
  AND n.moderate = 0
ORDER BY n.title
LIMIT $nlimit"));
$output = '<div class="item-list"><ul>';
while ($node = db_fetch_object($result)) {
  $output .= '<li>' . l($node->title, 'weblink/goto/' . $node->lid);
}
$output .= '</ul></div>';
return $output;

Drawing from that, I tried to add a restriction to the query so that output includes only weblinks of a certain taxonomy term:

<?php
/**
* This php snippet creates an alpha blogroll

How do I change the look of my forum?

I haven't really figured out how phptemplate theming works; How would I go about modifying the way my forum looks?

Modifying Feed Creation

I am working on getting a Drupal install ready for primetime and want to provide both RSS 2.0 and Atom 1.0 feeds. Is there a module that would change all of the places where feeds are displayed from just having the XML badge for the RSS 2.0 feed and instead have links for both RSS 2.0 and Atom 1.0 feeds using badges that I define (or at least something more attractive than the default XML badge)? If no such thing exists, where would I modify the Drupal code so this would be provided?

small change in php snippet

I found this code snippet on the php snippets page:

active class on main page primary link

For the active class for the primary links, I've used it 2 ways (the default active class assigned to the a tag, + my custom class, assigned to a span tag, so active is not link).

Either way fails to assign a class to the main page, which has an empty url alias. I'm wanting to style that nav item when that is the current page. Giving it an alias makes no difference.

I've read about different ways to identify the current page, but wondering if there's a simpler way since all other primary links are assigned the class just fine.

Any nudge greatly appreciated!

How can I email all users of our Drupal?

We've got Drupal up and running, and all is more or less well, but we'd like to be able to email all the registered members.

Is there an easy way to do that? Is there a module?

Tim

Pages

Subscribe with RSS Subscribe to RSS - Post installation