
This is a module to help non-coders add help text to the top of any path, much like the core Help module does. One problem with the core Help module is that it relies on using hook_help to add the help text to the top of the page. This means that if you want to add help to a page which does not already have it, you need to create a custom module. This means that only the developers of the site can easily add help text, although once the text is added, a user with sufficient privileges could 'translate' the help text string and reword it however they like.
This is a barrier of use for non-coders. My wife wanted to be able to add help text to pages, so I created a module which I call 'Add Help' which allows her to search for a path, and then add help text to that path.
Here is a screen-shot of the "Search for Path" form:

Here is a screen-shot of the "Add Help to Path" form:

There are some minor problems with the implementation, for one there is no way currently to keep track of which pages to which you have added help text so you have to keep track of this yourself. A second problem is that I haven't figured out how to execute php code properly in case the user has chosen the php filter.
Anyway I'm happy to release my code under the GPL, hopefully I'll find time to upload it to Drupal.org as well.
| Attachment | Size |
|---|---|
| add_help.tar.gz | 2.96 KB |
This module let's you take a Podcast view you have created (or probably ANY audio podcast) and allow the JW Media Player 4 module (from the SWF tools module ) to play the audio feed as a playlist, automatically embedding the player as a block. Note that this is built for Drupal 6.
It does not have a lot of configuration options yet, you pretty much need to open up swf_playlist.tpl.php and modify it to suit the location of your feed.
swf_playlist.tpl.php
<?php
// get the location of the JW Media Player
// this doesn't work, I'm not sure why
// $player = url(drupal_get_path('module', 'swftools'). '/shared/flash_media_player/player.swf', array('absolute', TRUE));
// you have to set this manually for now. yech.
$player = "http://localhost/skywyatt/sites/all/modules/swftools/shared/flash_media_player/player.swf";
// get the default settings
$flashvars = _wijering4_flashvars($settings['name']);
// set the flashvars
$flashvars['file'] = url($settings['path'], array('absolute', TRUE));
$flashvars['autostart'] = $settings['autostart'] ? 'true' : 'false';
$flashvars['repeat'] = $settings['repeats'] ? 'true' : 'false';
$flashvars['playlist'] = 'over';
$flashvars['playlistsize'] = '40';
// add the fancy random image stuff while the audio file is playing
$flashvars['plugins'] = 'revolt-1';
// unset the name of the playlist
// we don't want to confuse the JW Media player
$name = $settings['name'];
unset($settings['name']);
unset($settings['path']);
// change some default options
$settings['base'] = base_path();
$options = array(
'params' => $settings,
'flashvars' => $flashvars,
);
// requires SWF tools module and JW Media Player 4 modules
print swf($player, $options);
?>| Attachment | Size |
|---|---|
| swf_playlist.tar.gz | 3.59 KB |