Previous Thread
Next Thread
Print Thread
Hop To
Video In Post #244508 07/23/2011 3:40 PM
Joined: Dec 2006
Posts: 184
Stephen G Offline OP
member
OP Offline
member
Joined: Dec 2006
Posts: 184
I'm trying to put the following code into a post to djow a video hosted on my own server

Code
<script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
 
<div id='mediaspace'>This text will be replaced</div>
 
<script type='text/javascript'>
  jwplayer('mediaspace').setup({
    'flashplayer': '/jwplayer/player.swf',
    'file': '/cgtv/Ironclad.flv',
    'image': '/cgtv/ironclad.jpg',
    'backcolor': '000000',
    'frontcolor': 'FFFFFF',
    'stretching': 'exactfit',
    'controlbar': 'bottom',
    'width': '518',
    'height': '384'
  });
</script>


Now, it works in a test page uploaded to the server ( here) but not in a post ( here).

I have the markup set to allow HTML in the post.

Is there anything I can do to make this work?

I'd like to be able to insert the code in the posts for videos on my own hosted server.

I use the normal tags for videos elsewhere.

Re: Video In Post [Re: Stephen G] #244509 07/23/2011 3:47 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
ensure you are inserting as HTML only not HTML + bbcode for that post

otherwise the newline characters will be converted to the <br /> character and essentially break your javascript

if you use Firebug and view source, that is what is happening

2c

Re: Video In Post [Re: Stephen G] #244510 07/23/2011 4:21 PM
Joined: Dec 2006
Posts: 184
Stephen G Offline OP
member
OP Offline
member
Joined: Dec 2006
Posts: 184
Great stuff, thanks SD

It doesn't work when I try to Preview it but it works once posted. smile

Re: Video In Post [Re: Stephen G] #244512 07/23/2011 4:26 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
yeppers.. that is a semi-buglet in the preview markup

i need to semi-fix that in 7.6 laugh

Re: Video In Post [Re: Stephen G] #244513 07/23/2011 4:28 PM
Joined: Dec 2006
Posts: 184
Stephen G Offline OP
member
OP Offline
member
Joined: Dec 2006
Posts: 184
laugh


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Who's On Line Issue
by Larry Miller - 09/21/2019 9:37 PM
ubb.threads 7.7.3 install error on create tables
by andrewjs18 - 09/17/2019 3:39 AM
Horizontal Image Attachment
by ECNet - 09/11/2019 12:17 PM
user profile, after I click Update nothing happens
by PianoWorld - 09/10/2019 12:38 PM
Who's Online Now
2 registered members (isaac, Gizmo), 58 guests, and 416 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.3