This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Playlist RSS feed not working properly

I just installed the audio module and the playlist module. These modules worked so nicely that I decided to transfer my pre-existing podcast to drupal. However, now that I have everything transferred, I noticed that the RSS feed created by the playlist module is confusing to RSS readers. I've tried subscribing to it through iTunes and Google Reader, but neither one has been able to read the RSS file properly. iTunes can only pick up the podcast title, and Google Reader picks up the title and details of each episode, but rather than linking to the audio file itself, it links to the node page, which means that it doesn't let you listen to the audio like it should.

Here's the link to my playlist, followed by the link to my RSS podcast feed:

http://treesong.org/yourcommunityspirit/?q=node/3
http://treesong.org/yourcommunityspirit/?q=node/3/podcast

At first, I couldn't figure out why it wasn't working. Now, upon further review, I think it may have something to do with the fact that I don't have "clean URLs" enabled. (Dumb hosting at GoDaddy.) Is it possible that iTunes etc. reject an enclosure's URL if it's got ?'s in it? Another possibility that comes to mind is that the makers of the module have formatted the RSS improperly. But it looks okay to me. To be honest, I'm kinda mystified as to why it's not working. The internal workings of the modules themselves are pretty smooth, but none of the readers seem to like the RSS feed.

member messaging functionality?

Does anyone know if there's a functionality or module for members to send messages to each other while logged in and get e-mail alerts when they receive a new message? I looked around in the module list, and didn't see one.

Meta tags are dead?

Hi, guys

I'd like to get back to the meta tags Drupal 4.7.* seems ignore by default. It was discussed already while ago on http://drupal.org/node/4647 , but first, it seems outdated (2003), second all important links on the thread are dead:

Worrying about secure code...

Hey all

I need some advice with this... The only sure fire way I can see to test for permissions with what I'm trying to accomplish is to not set any access restriction in the menu hook and test for permissions in the callback function itself. Here's my code to test, although tbh it's quite irrelevant as it's not what I'm worried about...:

/**
 * Edits one row in a table.
 */
function tablemanager_edit($edit) {
  global $user;
  if (!is_numeric($edit)) {
    drupal_access_denied();
  }
  $fetch = db_fetch_object(db_query('SELECT tm.tid, tm.uid AS tableuid, tm.name, tmd.uid, tm.header, tmd.data, tmd.format
                                     FROM {tablemanager} tm
                                       INNER JOIN {tablemanager_data} tmd ON tm.tid = tmd.tid
                                     WHERE tmd.id = %d',
                                     $edit));
  if (!$fetch) {
    drupal_not_found();
  }
  unset($flag);
  $flag = $user->uid == $fetch->uid && user_access("edit own '".$fetch->name."' content") ? TRUE : $flag;
  $flag = user_access('administer tables') || user_access("edit any '".$fetch->name."' content") ? TRUE : $flag;
  $flag = $user->uid == $fetch->tableuid && user_access('administer/ create own tables') ? TRUE : $flag;
  if (!$flag) {
    drupal_access_denied();
  }
...rest of code....

What I'm worried about is how easy this is to bypass? Everyone has permission to access this function, they're only denied once they're actually 'in it'... So if they pass POST variables to it will they get stopped at the access denied message or will they actually get as far as the validate or *gasp* the submit hook??? I'm assuming I have nothing to worry about, but as a few people use my module now I don't want to make a mistake and open up a huge security hole :o(

A feature enrichment idea : style.css editor module

I dont have PHP skills to do this, so I thought someoene else might be interested in the community

TextPattern has an .css editor module -screenshot is here
http://textpattern.com/screenshots/?s=css

would it be possible this feature in Drupal?

Will page caching affect banner ad view counts?

Because we have a large network of sites that share ads, I've placed all our advertising in one database, and all our LAMP-based sites call that database for banner ad information, sort of like my own version of DoubleClick.

I've put those calls into a very simple Drupal module. Each time the drupal module loads, it gets ad information from the database, but also logs a +1 to a traffic table to mark the count of the times that each banner ad had been loaded into the site.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions