Custom BBCode Error

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
robdocmagic
Registered User
Posts: 41
Joined: Sat Jan 14, 2006 4:07 pm

Custom BBCode Error

Post by robdocmagic » Fri May 01, 2009 3:04 pm

Hi Guys,

I have setup a bunch of custom BBCodes that are all working great. However, I think I have been staring at this one too long and can't see the problem.

When I post this in my forum it just shows the actual "BBcode" in my post instead of rendering the HTML replacement text.

What I post:

Code: Select all

[flashvideo=320,240,http://www.formationskydivers.com/events/texas_team_elite_jan_2009/dive9_thumbnail.jpg,http://www.formationskydivers.com/events/texas_team_elite_jan_2009/dive9_thumbnail.jpg]http://www.formationskydivers.com/events/texas_team_elite_jan_2009/dive9.flv[/flashvideo]
Here is how I have the bbcode setup:

Code: Select all

[u][b]USAGE[/b][/u]

[flashvideo={NUMBER1},{NUMBER2},{URL1},{URL2}]{URL3}[/flashvideo]

[u][b]REPLACEMENT[/b][/u]

<script type='text/javascript' src='/javascript/swfobject.js'></script>

  <div id='mediaspace'><img src = "{URL2}"></div>

  <script type='text/javascript'>
  var s1 = new SWFObject('/player.swf','ply','{NUMBER1}','{NUMBER2}','9','#ffffff');
  s1.addParam('allowfullscreen','true');
  s1.addParam('allowscriptaccess','always');
  s1.addParam('wmode','opaque');
  s1.addParam('flashvars','file={URL3}&fullscreen=true&backcolor=000000&frontcolor=ffffff&image={URL1}');
  s1.write('mediaspace');
</script>
<i>Tip: Press the <img src="http://www.formationskydivers.com/images/full_screen.jpg" /> to watch the video in full screen mode.</i>

[b]HELP LINE[/b]
Flash Video File:

Code: Select all

[flashvideo=width,height,thumbnailurl,digestimageurl]http://file.flv[/flashvideo]
Thanks for your help!

-Rob
Last edited by camm15h on Fri May 01, 2009 4:27 pm, edited 1 time in total.
Reason: Code tags added.

robdocmagic
Registered User
Posts: 41
Joined: Sat Jan 14, 2006 4:07 pm

Re: Custom BBCode Error

Post by robdocmagic » Fri May 01, 2009 6:40 pm

More info:

It seems like when the data is stored in the DB the other BBCODES look like this:

Code: Select all

[i:1u8mgnwp][b:1u8mgnwp]rob[/b:1u8mgnwp][/i:1u8mgnwp]
Yet, mine looks "plain":

Code: Select all


[flashvideo=320,240,http://www.formationskydivers.com/events/texas_team_elite_jan_2009/dive9_thumbnail.jpg,http://www.formationskydivers.com/events/texas_team_elite_jan_2009/dive9_thumbnail.jpg]http://www.formationskydivers.com/events/texas_team_elite_jan_2009/dive9.flv[/flashvideo]

Locked

Return to “[3.0.x] Support Forum”