Home
| Mods Development
| MP3
tscrosh
Posts: 67
Joined: 12 October 2007
Sunday, Oct 28, 2007 13:01
Hello I have added MP3 tag in BBCode
works good
Insert this in parse.php and upload the swf (in attachment) in your forum root directory
Search for
PHP CODE
<?php
$content = preg_replace ( "#\[youtube\](.*?)\[/youtube\]#is" , "<object width='425' height='350'>
<param name='movie' value='http://www.youtube.com/v/$1'></param>
<param name='wmode' value='transparent'></param>
<embed src='http://www.youtube.com/v/$1' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed>
</object>" , $content );
?>
and place next line
PHP CODE
<?php
$content = preg_replace ( "#\[mp3\](.*?)\[/mp3\]#is" , " <object type='application/x-shockwave-flash' data='dewplayer.swf?son=$1' width='200' height='20'>
<param name='movie' value='dewplayer.swf?son=$1' />
</object>" , $content );
?>
call in posts with [mp3] URL to MP3 [/mp3] exemple : [mp3]http://www.luxpost.com/forum/mp3/rire.mp3[/mp3]
mp3 swf from : http://www.estvideo.com/dew/in...-une-plume
This Topic Has Attachments
You do not have permission to download attachments in this forum
Last edited by: Caleyjag
- Thursday, Nov 08, 2007 15:29.
Rob
Posts: 167
Joined: 22 June 2007
Location: Potters Bar
Sunday, Oct 28, 2007 13:42
Got a demo for it?
Things like this are always better as add ons, you don't want the main installation being messy with loads of options, but you still want the flexibility to be able to do things like this should you wish to.
So i'd generally say its good, I won't use it and it shouldn't be added to the forum, but definitely keep it updated and offer it as a mod.
tscrosh
Posts: 67
Joined: 12 October 2007
Monday, Oct 29, 2007 09:25
yes see it here :
External Link
1 Guest(s), 0 Member(s) Viewing This Topic: