Flash file created by custom bbcode

Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here.
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
Post Reply
ItaloDancer
Registered User
Posts: 9
Joined: Tue Jun 06, 2006 8:23 am

Flash file created by custom bbcode

Post by ItaloDancer »

Since I don't get a proper reply at phpbb.com, I'll give it a try here. If that's something I'm not supposed to do, lock this topic, I'll get over it eventually ;) But I still like to get this thing solved.

So what's the problem? I can't get a flash file to work as custom bbcode. The flash file is configured via an html code (with some variables that can be edited). The code works perfectly in an html file.

Through bbcode I just need users to be able to edit one variable. So I made a custom bbcode which replaces the html code (which includes the flash file). But this does not work... it just outputs the bbcode as entered by the user...
So there are limitations on the use of html... or am I doing something wrong?

Thanks in advance :D
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Flash file created by custom bbcode

Post by Highway of Life »

First... this is phpBB3 not phpBB2.
So even something I post may not help you if you are running a phpBB2 board.

Now, IF you are running phpBB3
The way to use Flash BBCode is like this:

Code: Select all

[flash=width,height]url[/flash]
Example:

Code: Select all

[flash=600,400]http://mywebsite.com/media/flash.swf[/flash]
And then you have to make sure that:
  1. Flash is enabled board wide on your board.
  2. Flash viewing is enabled in your UCP.
Then it will work.
If it shows up as: [ FLASH ]

Then it means that you don't have flash enabled board-wide, or you don't have flash viewing enabled via your UCP.

Hope that helps.
- Highway 8)
Image
ItaloDancer
Registered User
Posts: 9
Joined: Tue Jun 06, 2006 8:23 am

Re: Flash file created by custom bbcode

Post by ItaloDancer »

Hey, thanks, but
1. of course I'm running a phpBB3 board ;)
2. I can get a flash file to play like that, but this way I can't change a variable. The flash file's output depends on variables which I would like to input via html.
This works fluently in a stand-alone html file; but not when I make it a custom bbcode. So that's why I wondered if there are limitations on the use of html for a custom bbcode. And if so, why is that?
User avatar
Acyd Burn
Posts: 1838
Joined: Tue Oct 08, 2002 5:18 pm
Location: Behind You
Contact:

Re: Flash file created by custom bbcode

Post by Acyd Burn »

I think it would greatly help determining the problem if you finally post your custom bbcode code (the bbcode text and the html replacement text). Enclose it within [code] tags.

Image
ItaloDancer
Registered User
Posts: 9
Joined: Tue Jun 06, 2006 8:23 am

Re: Flash file created by custom bbcode

Post by ItaloDancer »

Original html:

Code: Select all

<p><object id="audioplayer1" type="application/x-shockwave-flash" height="18" width="218" data="http://this.bigstereo.net/wp-content/plugins/audio-player/player.swf">
<param value="http://this.bigstereo.net/wp-content/plugins/audio-player/player.swf" name="movie" />
<param value="playerID=1&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x1CC600&soundFile=http://www.confidanza.com/m2-demo.mp3" name="FlashVars" />
<param value="high" name="quality" />
<param value="false" name="menu" />
<param value="transparent" name="wmode" /></object></p>
BBCode usage:

Code: Select all

[sound]{URL}[/sound]
HTML replacement:

Code: Select all

<p><object id="audioplayer1" type="application/x-shockwave-flash" height="18" width="218" data="http://this.bigstereo.net/wp-content/plugins/audio-player/player.swf">
<param value="http://this.bigstereo.net/wp-content/plugins/audio-player/player.swf" name="movie">
<param value="playerID=1&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x00ccff&soundFile={URL}" name="FlashVars">
<param value="high" name="quality">
<param value="false" name="menu">
<param value="transparent" name="wmode"></object></p>
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Flash file created by custom bbcode

Post by Highway of Life »

Try this instead...

HTML replacement:

Code: Select all

<p><object id="audioplayer1" type="application/x-shockwave-flash" height="18" width="218" data="http://this.bigstereo.net/wp-content/plugins/audio-player/player.swf"><param value="http://this.bigstereo.net/wp-content/plugins/audio-player/player.swf" name="movie"><param value="playerID=1&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x00ccff&soundFile={URL}" name="FlashVars"><param value="high" name="quality"><param value="false" name="menu"><param value="transparent" name="wmode"></object></p>
Eliminate the newlines, as this could cause a problem in the BBCode.
For example, your previous example would be parsed like this:

Code: Select all

<p><object id="audioplayer1" type="application/x-shockwave-flash" height="18" width="218" data="http://this.bigstereo.net/wp-content/plugins/audio-player/player.swf"><br /><param value="http://this.bigstereo.net/wp-content/plugins/audio-player/player.swf" name="movie"><br /><param value="playerID=1&bg=0xf8f8f8&leftbg=0xeeeeee&lefticon=0x666666&rightbg=0xcccccc&rightbghover=0x999999&righticon=0x666666&righticonhover=0xffffff&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x00ccff&soundFile={URL}" name="FlashVars"><br /><param value="high" name="quality"><br /><param value="false" name="menu"><br /><param value="transparent" name="wmode"></object></p>
Image
ItaloDancer
Registered User
Posts: 9
Joined: Tue Jun 06, 2006 8:23 am

Re: Flash file created by custom bbcode

Post by ItaloDancer »

Highway that's it! :o

Thanks so much!! 8)
soulcore
Posts: 8
Joined: Wed Jul 05, 2006 7:02 pm

Re: Flash file created by custom bbcode

Post by soulcore »

works great btw.
http://einherjer-guild.de/newforum/view ... ?f=16&t=15" target="_blank

thanks for the idea ^^
ItaloDancer
Registered User
Posts: 9
Joined: Tue Jun 06, 2006 8:23 am

Re: Flash file created by custom bbcode

Post by ItaloDancer »

soulcore wrote: works great btw.
http://einherjer-guild.de/newforum/view ... ?f=16&t=15" target="_blank

thanks for the idea ^^

Wow, respect for your forum lay-out! 8)
Post Reply