Good afternoon!
I would like to see a modification for SMF (1.1.3) that allow users to post a tag like, let's say, [mp3tube]http://www.mp3tube.net/musics/Tigre-campeao-da-b-Tigre-campeao-da-b/17192/[/mp3tube] and this would return the embed code for the specific mp3.
Is it possible?
Best regards, thanks in advance.
There is one already for mp3 at http://custom.simplemachines.org/mods/index.php?action=download;mod=829;id=34711
Although it would allow any mp3 hosted anywhere on the net.
I already knew this mod, but it ain't what I'm looking for.
Anyway, thanks for your help.
I've had a look at that site.
If the mp3tube url was to the song that it would be very easy to make the mod
However the link (http://www.mp3tube.net/musics/Tigre-campeao-da-b-Tigre-campeao-da-b/17192/) does not link directly to the music (like the youtube does)
Exactly.
So, I think a mod using mp3tube TAG would only request a certain code (below) that changes in one mp3 to another.
Example 1 - http://www.mp3tube.net/musics/Tigre-campeao-da-b-Tigre-campeao-da-b/17192/
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="260" height="60" id="mp3tube" align="middle" border="0"><param name="movie" value="http://www.mp3tube.net/play.swf?id=01670c6936e19a15a4dfac93a903fa2c" /><param name="quality" value="High" /><param name="wmode" value="transparent"><param name="menu" value="false"><embed src="http://www.mp3tube.net/play.swf?id=01670c6936e19a15a4dfac93a903fa2c" quality="High" width="260" height="60" name="mp3tube" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" menu="false" /></object>
So, in example 1, we have mp3tube.net/play.swf?id=01670c6936e19a15a4dfac93a903fa2c
Example 2 - http://www.mp3tube.net/musics/Dirty-Dance-dance/21006/ (not that I am fan of dirty dance LOL)
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="260" height="60" id="mp3tube" align="middle" border="0"><param name="movie" value="http://www.mp3tube.net/play.swf?id=ae24f5bef2ecc4b6df72890a7a0a33c1" /><param name="quality" value="High" /><param name="wmode" value="transparent"><param name="menu" value="false"><embed src="http://www.mp3tube.net/play.swf?id=ae24f5bef2ecc4b6df72890a7a0a33c1" quality="High" width="260" height="60" name="mp3tube" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" menu="false" /></object>
In example 2, we have mp3tube.net/play.swf?id=ae24f5bef2ecc4b6df72890a7a0a33c1
Conclusion: My instincts tell me it's impossible, unless mp3tube releases some kind of "key" to the coders... Right?
OT: I quite like the DD song. I quite like power ballads
It would be possible to create a mod to do
[mp3tube]ae24f5bef2ecc4b6df72890a7a0a33c1[/mp3tube]
However it would not be possible to do
[mp3tube]http://www.mp3tube.net/musics/Dirty-Dance-dance/21006/[/mp3tube]
Thats because MP3tube gets the file name (ae24f5bef2ecc4b6df72890a7a0a33c1) by quering its database
The top example would be relatively easy to make into a mod, but it would require your users to find the stuff in the code
In fact I could even make the mod do both
[mp3tube]http://www.mp3tube.net/play.swf?id=ae24f5bef2ecc4b6df72890a7a0a33c1[/mp3tube]
and
[mp3tube]ae24f5bef2ecc4b6df72890a7a0a33c1[/mp3tube]
I appreciate your kindness, but if I'll need to teach my users (they are way more newbies than me), it just wouldn't be a useful mod.
Thanks again, but I pass your offer, karl (I'm sure this doesn't mean you won't make your idea happens).
ps.: I think Dailymotion MOD (http://www.simplemachines.org/community/index.php?topic=172257.0) is made in this exactly terms you said.
No worries.
The only alternative is to get mp3tube to add an extra field to their codes for bbcode.
Even if they set it to flash bbcode [flash]http://mp3tube.com/etc/swf?id= 8282789c2023nvc894[/flash]
It would be possible to alter the default flash behaviour to ONLY allow mp3tube files to be shown.
I've managed to write this mod.
On posting [mp3tube] bbcode it gets the content id from mp3tube.net and then alters it in the message before it is saved into the database.
So when the post is viewed, it will have the correct content id, ready to show the player with the content.
All the details can be found http://custom.simplemachines.org/mods/index.php?mod=915
But until its approved, you can download it from the attachment here.
EDIT: Removed attachment: Mod is now approved and can be downloaded from http://custom.simplemachines.org/mods/index.php?mod=915
Wow karl, it works like a charm, dude!!
Congratulations for this great job... I hope get this mod approved to be a very popular one!
installation error:
4. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test failed
I am using TP Style 11 theme + smf 1.1.4
I checked the particular file(Modifications.english-utf8.php). it is empty. pls help
if the Modifcations.english-utf8.php file is empty.
open Modifications.english.php and COPY and paste everything across into Modifications.english-utf8.php.