MP3 MOD?

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/68765?pagenum=1
05 November 2025, 09:07

Topic


leatherlips
MP3 MOD?
11 July 2009, 18:29


I'd love to have an mp3 mod. I use the free player from www.longtailvideo.com on my site. My vision would be to have a tag like [mp3]www.whatever.com/song.mp3[/mp3] and have my player automatically be embeded in the post able to play the file.
I'll try to do it but in the meantime if anyone else more skilled could figure it out I'd really appreciate it! shy

 

Replies ...


Carefree
11 July 2009, 20:32


Look at this mod.
leatherlips
11 July 2009, 22:32


Carefree, yes, thank you. I have that mod on my forum and it works great. However, what I am wanting is a new tag: [mp3][/mp3] that would allow a user to place a url to an mp3 file in the middle of the tag and have it play in the jwplayer from longtailvideo.com.
An example of their code is:

Code:
<script type='text/javascript' src='/embed/swfobject.js'></script>

<div id='mediaspace'>This div will be replaced</div>

<script type='text/javascript'>
var s1 = new SWFObject('/jw/upload/player.swf','ply','470','300','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addParam('flashvars','file=http://www.longtailvideo.com/jw/upload/bunny.mp3');
s1.write('mediaspace');
</script>
Or
Code:
<embed
src="/jw/upload/player.swf"
width="470"
height="300"
bgcolor="#ffffff"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=http://www.longtailvideo.com/jw/upload/bunny.mp3"
/>
I'm not sure which version of the code would work best with Snitz and I'm also not sure how to make the above links know how to recognize what a user would put in the mp3 tags.
leatherlips
11 July 2009, 22:51


I was searching the net and came across exactly what I want but the instructions are for a different type of forum software. Maybe this will provide a clue: http://www.phpbb.com/community/viewtopic.php?f=46&t=607524
leatherlips
11 July 2009, 23:07


More searching... tongue
I just came across this forum and they have exactly what I want! (but with a different player)

I emailed them to see if they'll send me their code.
kyodai
13 July 2009, 13:52


I have a custom embed for wmv, but as it uses media player embedding it should work fine for mp3, too. It is a bit complicated though as i wanted the embedded object NOT to be available for users not logged in plus i did it with an iframe that fetches the content from another domain (my backend). As i use my own backend server as a streaming media server i have made the tag so it reads only the filename and puts it after the domain/path of my backend. Sounds odd but that way you ensure users only embed content uploaded to your own backend and can't embed from phishy 3rd party sites or so. Plus you get all the media files yourself. If you want a demo just log in to hiddenbelow.com and look at the cinema (We stream public domain movies for members there). If you like it i could go through the pain of writing a mod instruction sheet for this, but it is a tad more complicated then some otehr solutions.
leatherlips
16 July 2009, 08:05


Well, I've figured it out! smile I'm currently not using the jwplayer, but that is not a big deal.
I will write this up as a mod soon so others can use it if they want.
leatherlips
16 July 2009, 14:00


I'm going to write two sets of instructions for this MOD. Because I modeled after the Online Video MOD, my first set of instructions are an add on to that mod. I am waiting to post this on Snitzbitz until someone can test it out for me. If it works OK then I'll post it there along with a "stand alone" version that does not require the Online Video MOD.
If you have the Online Video MOD and want to add this MP3 feature to it, you can get the directions from here.
If you want to see a working example, you can see it on my test forum here.
Please provide feedback here if you try it out. That way I can work out any bugs before posting it at Snitzbitz. Thanks!
Carefree
16 July 2009, 19:41


I've tested it and got it working. I'll send you mail with comments.
leatherlips
16 July 2009, 22:55


I've finished the MP3 MOD.
The standalone version is here.
The addon version for the Online Videos MOD is here.
Let me know what you think!
Carefree
17 July 2009, 07:20


SnitzBitz is down.
Etymon
17 July 2009, 08:05


Thank you leatherlips for both of your MODs. The family will love it!
HuwR
17 July 2009, 08:23


Originally posted by Carefree
SnitzBitz is down.
seems to be ok for me
Giumer
17 July 2009, 14:14


hi leatherlips i am have instalad yuo mod for mp3 ok and me post have this error :error: illegal use of audio tag! ok and me click for MP3 link is this [mp3]http://www.giumer.it/MP3/01-kelly_rowland-work_(freemasons_radio_edit).mp3[/mp3]
problem is link ? or is name MP3 ?
Giumer
17 July 2009, 14:21


ok ok ! problem is name MP3 look http://www.giumer.it/forum/topic.asp?TOPIC_ID=53 thx ! and sorry !
leatherlips
17 July 2009, 14:27


Giumer, you must have already fixed it. I can see the player fine and hear the mp3. smile
Giumer
17 July 2009, 14:39


heheheh i am look yuor presence and me forum nice vertigo ! hehe
Carefree
17 July 2009, 15:29


seems to be ok for me
Working here again too.
thelodger
17 July 2009, 17:45


How does this work? does a member have to download the MP3 to the forum? if not I am not sure where the MP3 thats playing comes from.
Carefree
17 July 2009, 18:50


All you have to do is surround the URL path to the mp3 with [mp3] & [/mp3] codes, like this: [mp3]http://mysite/mysong.mp3[/mp3]. If the mod is installed, the [mp3]&[/mp3] will not be displayed (like the other forum codes).
thelodger
17 July 2009, 19:07


Ah, I see, so your MP3 has to be hosted online somewhere.
leatherlips
17 July 2009, 19:49


Originally posted by thelodger
Ah, I see, so your MP3 has to be hosted online somewhere.
Yes. You have to have a direct link to the mp3 file. I was looking around online and I found this site - www.kiwi6.com. They let you host files for free with no signup and give you a direct link to the file. For my site, I let my users upload files to my drop.io account and then I host them on my site. There may be an easier way but that works for me for now.
Davio
20 July 2009, 04:01


Originally posted by Carefree
SnitzBitz is down.
seems to be ok for me
It was down for a few hours for me as well.
© 2000-2021 Snitz™ Communications