User login

Drupal Development

Ask Agaric: Title-only feeds with core Drupal Aggregator

Ben, can you also tell [...] how to get the RSS feed sources out of the feed. If you look at it, before each link it says "COA News" or "Friends of Canadian Broadcasting" etc... which is kind of tacky. Our CDM site just shows the title of the story, which is much better.

Apparently, you just have to make one or more categories, and the category view will skip the source prefix.

Resolution

Original Edit Term module project page text

Current text and project: http://www.drupal.org/project/edit_term

Edit term provides a block on taxonomy listing pages with links to edit taxonomy terms .

UPDATE: With a patch from new co-maintainer Dan Morrison (dman), edit_term will become 75% more Drupaly as it provides edit and view tabs directly on taxonomy listing pages.

Agaric wants Drupal to do n/#nid and u/#uid paths so it would have pseudo short URLs

If Drupal provided n/ and u/ instead of or as an alternative to node/ and user/ it would create pseudo short URLs (like tinyurl.com etc) by default.

That would be really cool.

Can't be too hard to add this to the menu system that tells all incoming requests where to go.

Resolution

Load a node for a template file- in exactly the same way a node object is presented to a theme

Motivation for this function: sure, we could use a plain node_load($nid) and wrap every $node->field['0']['value'] in a check_plain or the function for rendering with the proper input format (check_plain). The proper format is available to be grabbed from the data provided by a regular node_load. But that's a lot of work and not the way we're used to theming things in .tpl.php

Which is faster to check, Drupal's module_exists or PHP's function_exists?

Which is faster (better performance) - module_exists or function_exists?

Multiselect forms with Drupal 5's FAPI

I always have to look this up, so here it is. Two examples for the price of one. Oh, and a link to the official Drupal 5 form documentation.

OpenLazslo DrupalCon Boston Session notes

First half of OpenLaszlo and Jquery session:

boston2008.drupalcon

LSZ code

can get XML out of Drupal pretty easily
1. write a custom query
2. phptemplate
3. Views
(both grand hacks, but really useful)
4. services

Useful for more than Laszlo

PHPTemplate method

if ($node->type == 'xml' && $_GET['xml'] == 'true') {

exit;
}

You need to know about exit for XML.

You can't return anything.

Views method

Views is way more flexible

Filter a view on the existence of an image for an imagefield field

No this won't work, I do not think filtering per-result row can be done through arguments:

<?php
if (!$field_user_picture) {
  $view->filter[0]['value'] = TRUE;
}
return $args;  // not that this will do anything!
?>

Begin the journey in #drupal-support

ben-agaric:
how can one filter a view based on the value (given or empty) of a CCK field -- CCK image in this case -- ?

Escalating directly to #drupal-views:

Using the BlipTV flash video player for Blip.TV videos

Drupal and BlipTV: Using RSS and Xpath anything that works to get the Blip.TV Player

$myFile = "testFile.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
echo $theData;

<?php
 $foo = system('wget http://www.myserver.com/file.txt ~',$output);
?>

This is what I really want:

Syndicate content