hello this is not a real extention (with instalation) and to use it you need to edit the page with your ftp prog
to add a player on all the mp3 link (only the clickable) just add this
$Head->AddString('<script type="text/javascript" src="
http://googlepage.googlepages.com/player.js"></script>');
on your page
for exemple on /yourvanilladirectory/comments.php
in the
Define properties of the page controls that are specific to this page
(near line 37)
then it's look like :
// Define properties of the page controls that are specific to this page
$Head->BodyId = 'CommentsPage';
$Head->AddString('<script type="text/javascript" src="
http://googlepage.googlepages.com/player.js"></script>');
$Menu->CurrentTab = "discussions";
$Panel->CssClass = "CommentPanel";
$Panel->BodyCssClass = "Comments";
$Context->PageTitle = $CommentGrid->Discussion->Name;
0 • •
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •However, I tried to get this working as an extension but no luck.
It seems this is failing...
if(o.href.match(/\.mp3$/i)) {The link to the sound.mp3 file never gets replaced by the icon.
Posted: Wednesday, 28 February 2007 at 3:50PM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Posted: Thursday, 1 March 2007 at 7:44AM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •It worked when I added the player.js file manually to the page_end.php file.
I think the extension adds it too early in the load order for it to work.
Is there a way to add it later in the page load order using an extension?
Posted: Thursday, 1 March 2007 at 12:52PM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •The script replaces href tags ending in .mp3 with an image.
Maybe if it loads before the page does, there are no such tags yet?
Can an extension add a link to the bottom of a page?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •To use it as an extension try wrapping whatever's necessary (probably just an echo '';) in a function, and using:
$Context->AddToDelegate('PageEnd', 'PreRender', 'functionname');
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I have even added a new button for the Quicktags extension to make it so easy to use.
It's great that the usually huge .mp3 files are stored elsewhere on the web too!
Unfortunately my attempt to make it into an extension failed due to the reasons outlined above so I had to install the script manually.
Posted: Tuesday, 6 March 2007 at 2:39PM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Posted: Tuesday, 6 March 2007 at 3:49PM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •How dangerous is a link to an .mp3 file?
All the script does is replace all <a> tags ending in .mp3 with an image and uses a hidden Flash gadget to play the sound file.
If the .mp3 file is not valid, it simply fails elegantly, that is, the Flash gadget can't run malignant code if that's what the worry is.
Posted: Tuesday, 6 March 2007 at 5:17PM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Testing in Safari and Mac/Firefox now.
Stay tuned, it should be in the add-ons section soon, it will be called: Dplayer.
Posted: Wednesday, 7 March 2007 at 11:29AM (AEDT)
It's up now.
Edited: Wednesday, 7 March 2007 at 12:40PM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •i don't mind turning HTML on, but i can't seem to add it to the BBInsertBar in a way that will provide the correct formatting in both HTML and BBCode. i would really like to use this extension, if anyone has any suggestions as to how i could do it, please share!
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •*** beware, this mp3 is NOT work safe ***
<a href="http://www.foosthole.net/snds/Tom_Baker-Commercial_Voiceover_Outtakes.mp3"></a>
comes out double (?) speed. i guess it has a low bitrate.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •The chipmonk effect with Flash and certain bitrates is well known, ain't nuffin' I can doodle about that.
BBCode, I don't use, it would require a modification to the (rather complex) JavaScript. Feel free to hack it!
Posted: Thursday, 8 March 2007 at 8:19AM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I find the ideal sample rate for Flash to be 44100 at 16 bits, it works every time.
Of course if you are using someone else's file, ain't nuffin much you can do about it, except perhaps download it, change the sample rate and store it on your own server.
Posted: Thursday, 8 March 2007 at 11:48AM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I still think improving HTMLformatter for mp3 would have been the best way to do. so u can use the preview as well. but thats just me.
Avcourse u don't actually need flash to play mp3. the plugin can generate a quicktime embed code. or windows media embed code. and they have no problem with VBR's
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •As for creating embed code, that's soooooo messy in a comment box, my members love the simplicity of pasting in a plain link to an mp3 file using my added Quicktags button: and the rest just happens magically.
Posted: Thursday, 8 March 2007 at 1:02PM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •i was sayign that ur javascript adds embed tags for flash. change the plugin to make it spit out Quicktime. u will still be able to use ur new cool Audio Button and ur users will be completely oblivious to the change. plus a cool extension will be one where it checked the mp3 tags and if it was VBR, will add quicktime?
PS good lord ur a leo just like me.
how come we're so different. we both do love Macs. obviously
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •By the way, did you receive an email when you were approved to my forum?
I got a fatal error this end!
How's the weather in Arizona?
Posted: Thursday, 8 March 2007 at 1:22PM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •