2012-02-22, 06:56 PM
Hi,
I am only new to mybb, so I am just starting to feel my round. Please be gentle!
Any way, I am trying to implement a mycode for JWPlayer(v5.9), so far I have it working to this stage:
http://www.justwushu.info/Thread-Xiayang...Gongfu-Fan
The mycode I have is this:
Now what I can't seem to work out, is how do I place a second variable in the 'regular expression' for a preview image?
I am grabbing the .flv file, and the preview image file from a phpmotion site I own. The JW Player replacement code, will look like this: 'image':'file url',
Can anyone please point me in the right direction for achieving this. Any guidance would appreciated.
By the way, if the above code can be improved, please feel free to correct me!
I am only new to mybb, so I am just starting to feel my round. Please be gentle!
Any way, I am trying to implement a mycode for JWPlayer(v5.9), so far I have it working to this stage:
http://www.justwushu.info/Thread-Xiayang...Gongfu-Fan
The mycode I have is this:
Regular Expression: \[jw\](.*?)\[/jw\]
Replacement: <script type='text/javascript' src='http://www.justwushu.info/jwplayer/jwplayer.js'></script><div id='mediaspace'>This text will be replaced</div><script type='text/javascript'>jwplayer('mediaspace').setup({'flashplayer': 'http://www.justwushu.info/jwplayer/player.swf','file': '$1','controlbar': 'over','stretching': 'fill', 'width': '640','height': '380'});</script>
Now what I can't seem to work out, is how do I place a second variable in the 'regular expression' for a preview image?
I am grabbing the .flv file, and the preview image file from a phpmotion site I own. The JW Player replacement code, will look like this: 'image':'file url',
Can anyone please point me in the right direction for achieving this. Any guidance would appreciated.
By the way, if the above code can be improved, please feel free to correct me!