You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 64 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Podcast Module - Incorporating externally stored mp3s (etc!) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
peeriebryan
Nuke Cadet
Nuke Cadet


Joined: Feb 07, 2006
Posts: 2


PostPosted: Wed Aug 09, 2006 8:07 am Reply with quoteBack to top

I have a couple of questions regarding the Podcast module from www.jaieproductions.com (download from http://www.jaieproductions.com/downloads.php - live demo at http://fbc.jaieproductions.com/modules.php?name=Podcasts)

We got the module installed on our site without too much hassle and everything seems to be functioning as it should, but there’s a couple of changes I’d like to make….

Currently, the Podcast module only allows the use of mp3s stored in the same root directory as the Nuke installation. However, I would like to be able to incorporate mp3s stored on external servers

At the moment, there are two tiers of folders that must be specified in the podcast admin section to hold the mp3s.

1. In the Podcast Config section, a ‘starting directory’ inside the base Nuke installation is set. By default, this is ‘podcasts’ i.e. www.yournukesite.com/podcasts

2. In the Podcast ‘Add a channel’ section, a ‘sub-directory’ within the base is specified i.e. . www.yournukesite.com/podcasts/channeltitle

3. In the Podcast ‘Add an episode’ section, the file name is specified i.e. www.yournukesite.com/podcasts/channeltitle/file.mp3

I would like to be able to add an mp3 URL directly into the “Add an episode” section, bypassing the Nuke root directory hierarchy, such as http://www.podcastnetworkname.com/podcastshowtitle/file.mp3





If the full URL was added into the "Add an episode" section, the resultant invalid filepath would be www.yournukesite.com/podcasts/channeltitle/www.yournukesite.com/podcasts/channeltitle/podcastfile.mp3

I have had some success in fixing this by adjusting the following code in the modules/podcasts/index.php file

Removed the www.yournukesite.com prefix
Code:
$nukeurl


from this section of code
Code:
."\t\t<enclosure url=\"[b]$nukeurl[/b]/"
            .eregi_replace("%2F","/",urlencode("$startingdir".( ( substr($row2['subdir'],-1,1)=="/" ) ? $row2['subdir'] : $row2['subdir']."/")."$enclosure"))
            ."\" length=\""
               .filesize("$startingdir".( ( substr($row2['subdir'],-1,1)=="/" ) ? $row2['subdir'] : $row2['subdir']."/")."$enclosure") ."\" type=\"";   //enclose the file


I then simply left the 'starting directory' and 'sub directory' input fields blank in the admin section. The external file URL was then copied directly into the ‘Add an episode’ input field (for some reason the http:// prefix must be left out or the RSS feed doesn’t function)

The RSS feeds all work as they should. Good stuff I thought! However, the “Download” and “Play” functions no longer work. Clicking the “Download” link resulted in the following invalid path (‘-‘s instead of ‘/’s) www.podcastnetworkname.com-podcastshowtitle-file.mp3 and the “play” function doesn’t work (it launches the flash player, but nothing else)

Anyone have any ideas how to sort the download and play functions?
Find all posts by peeriebryanView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.449 Seconds - 290 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::