The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Embedding Code

3 posters

Go down

Solved Embedding Code

Post by doja August 27th 2009, 4:11 pm

So I want to embed code, but not within code brackets [].

This is not for displaying source, rather if i wanted to embed a flash based music player, or something of the sort. I want the following code below to be part of the html page, within a post. I don't see an option for this in posts..

any ideas other than the "custom html pages" feature? I want normal members to be able to do this.

Code:

<object width="409" height="40"> <param name="movie" value="http://listen.grooveshark.com/songWidget.swf"></param> <param name="wmode" value="window"></param> <param name="allowScriptAccess" value="always"></param> <param name="flashvars" value="hostname=cowbell.grooveshark.com&widgetID=14765880&style=water&p=0"></param> <embed src="http://listen.grooveshark.com/songWidget.swf" type="application/x-shockwave-flash" width="409" height="40" flashvars="hostname=cowbell.grooveshark.com&widgetID=14765880&style=water&p=0" allowScriptAccess="always" wmode="window"></embed></object>
doja
doja
New Member

Posts : 15
Reputation : 0
Language : English

Back to top Go down

Solved Re: Embedding Code

Post by AiKirika August 27th 2009, 7:41 pm

so you want to enable html on your forum...
right?

go to
> general
> messages and email: configuration
> allow html: yes

also in every post there are check boxes to turn on html
AiKirika
AiKirika
Forumember

Female Posts : 480
Reputation : 1
Language : english, german

Back to top Go down

Solved Re: Embedding Code

Post by doja August 27th 2009, 8:43 pm

i enabled html, and the checkbox is clicked so it doesn't disable html in the post.

it says "html is on" in the post, but the above code segment you can see in my first post doesn't show up properly still.

am i doing something wrong?
doja
doja
New Member

Posts : 15
Reputation : 0
Language : English

Back to top Go down

Solved Re: Embedding Code

Post by AiKirika August 27th 2009, 8:47 pm

what doesnt show up properly???
AiKirika
AiKirika
Forumember

Female Posts : 480
Reputation : 1
Language : english, german

Back to top Go down

Solved Re: Embedding Code

Post by doja August 27th 2009, 8:57 pm

do you see the code from my first post? that is html code used for embedding a flash based music player. i cannot get it to embed on my forum.
doja
doja
New Member

Posts : 15
Reputation : 0
Language : English

Back to top Go down

Solved Re: Embedding Code

Post by doja August 28th 2009, 8:57 pm

bump
doja
doja
New Member

Posts : 15
Reputation : 0
Language : English

Back to top Go down

Solved Re: Embedding Code

Post by Guest August 28th 2009, 9:19 pm

doja wrote:i enabled html, and the checkbox is clicked so it doesn't disable html in the post.

it says "html is on" in the post, but the above code segment you can see in my first post doesn't show up properly still.

am i doing something wrong?
Yeah, you're doing something wrong. By using the CODE tag, you're keeping the board software from executing your HTML code. Get rid of the CODE BBCode tags and the HTML code will work just fine.
avatar
Guest
Guest


Back to top Go down

Solved Re: Embedding Code

Post by RoNo August 29th 2009, 12:18 am

You don't need all of that code... Use this much
Code:
<embed src="http://listen.grooveshark.com/songWidget.swf" type="application/x-shockwave-flash" width="409" height="40" flashvars="hostname=cowbell.grooveshark.com&widgetID=14765880&style=water&p=0" allowScriptAccess="always" wmode="window"></embed>

Or... you can use [flash(width,height)] Player Url [/flash]

Here's how to make your player a bbcode flash version:
Spoiler:
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Solved Re: Embedding Code

Post by doja September 2nd 2009, 9:30 pm

Ahh RoNo you did it!

Im still trying to figure out how you did it though, when i just past what you have in the CODE section it displays as text and does not embed.

Dion im not sure what you are talking about. The code tag above was only to show the code I am working with. It is not like that on my forum.

The PlayerURL option doesn't seem to work for me because there are other parameters the flash player needs.
doja
doja
New Member

Posts : 15
Reputation : 0
Language : English

Back to top Go down

Solved Re: Embedding Code

Post by RoNo September 3rd 2009, 1:53 am

I combined these elements with "?" and "&"
Code:
http://listen.grooveshark.com/songWidget.swf
?&
hostname=cowbell.grooveshark.com&widgetID=14765880&style=water&p=0
<object width="409" height="40"> <param name="movie" value=" http://listen.grooveshark.com/songWidget.swf "></param> <param name="wmode" value="window"></param> <param name="allowScriptAccess" value="always"></param> <param name="flashvars" value=" hostname=cowbell.grooveshark.com&widgetID=14765880&style=water&p=0 "></param> <embed src="http://listen.grooveshark.com/songWidget.swf" type="application/x-shockwave-flash" width="409" height="40" flashvars="hostname=cowbell.grooveshark.com&widgetID=14765880&style=water&p=0" allowScriptAccess="always" wmode="window"></embed></object>


Since the issue appears to be resolved,
I will lock this topic. Glad to help.

Embedding Code Locked1Embedding Code Lock2
RoNo
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum