PDA

View Full Version : Insert Audio Player


mark350
11-26-2009, 03:35 PM
I want to embed our music player in forum posts, but not sure how to do it. Here's an example of an embed code I want to use:

<object width="306" height="66"><param name="movie" value="http://www.true2ourselves.com/video/musicplayer.swf?configXmlPath=http://www.true2ourselves.com/video/musicconfigxmlcode.php?viewkey=dfaecdc212708f721b7 8&playListXmlPath=http://www.true2ourselves.com/video/musicplaylistxmlcode.php?viewkey=dfaecdc212708f721 b78"></param><param name="wmode" value="transparent"></param><embed src="http://www.true2ourselves.com/video/musicplayer.swf?configXmlPath=http://www.true2ourselves.com/video/musicconfigxmlcode.php?viewkey=dfaecdc212708f721b7 8&playListXmlPath=http://www.true2ourselves.com/video/musicplaylistxmlcode.php?viewkey=dfaecdc212708f721 b78" type="application/x-shockwave-flash" wmode="transparent" width="306" height="66"></embed></object>

How can I make this work in the forums? Thanks.

garretbyrne
11-27-2009, 01:01 AM
The code won't work because it would work in HTML and vb disables html.. So best bet would be to enable html just for admins and post it in... or create a new page and add this in... https://vborg.vbsupport.ru/showthread.php?t=228112

mark350
11-27-2009, 10:57 PM
The code won't work because it would work in HTML and vb disables html.. So best bet would be to enable html just for admins and post it in... or create a new page and add this in... https://vborg.vbsupport.ru/showthread.php?t=228112

Thanks for the reply. I tried allowing html for my user group, however, when I tried to embed it in a post (html wrap) it did not work. Here's what happened:
http://www.true2ourselves.com/forum/general-questions/3496-my-posts.html#post64401

Charlie98902
11-27-2009, 11:07 PM
Enter the HTML code without hitting the button to post html.

Charlie98902
11-27-2009, 11:09 PM
Works for me. See pic.

mark350
11-27-2009, 11:46 PM
Enter the HTML code without hitting the button to post html.

Hmmm... that's the first thing I tried. I activated html for my user group "allow html" then I posted. It looks like this:

http://www.true2ourselves.com/forum/general-questions/3496-my-posts.html#post64415

Charlie98902
11-28-2009, 12:35 AM
You didn't happen to click on the html button to post that did you? I just copied and pasted your code on my test site but HTML in post is either on or not unlike the blogs and CMS.

mark350
11-28-2009, 12:36 AM
Ok, I think I figured it out now....

One problem left... when I embed the player in the forum, it does not work (it shows up, but no music)... any ideas? Thanks.

Charlie98902
11-28-2009, 12:37 AM
Not sure there as I think you need to have it coded to a folder in you root area to call up the songs? Just a guess.

mark350
11-28-2009, 12:41 AM
I really appreciate your help... I have just one more question. I see how to activate html for a specific forum. However, if I do that, then everyone can use html in that forum. How can I make it so only admin, for example, can use html in a specific forum - but no one else can?

Thank you.

Charlie98902
11-28-2009, 01:34 AM
We need a mod to do that and I want that as well to allow only admins to use HTML.

--------------- Added 1259380112 at 1259380112 ---------------

4 year old mod made for 2.5 and it works so far in vb4 beta 4.

https://vborg.vbsupport.ru/showthread.php?t=96926

Allow HTML per usergroup. Just tested works :)

mark350
11-28-2009, 02:15 AM
I'll check it out, thanks again for the help.

Charlie98902
11-28-2009, 02:19 AM
No problem I was glad to be pointed to it as well. :)

garretbyrne
11-28-2009, 03:02 AM
Cheers also Charlie I've installed this on my site also... nice one.