|
|
Joined: Nov 2006
Posts: 30
newbie
|
|
newbie
Joined: Nov 2006
Posts: 30 |
anyone got the regex for Vimeo lying around? want to add it to my board. thanks.
|
|
|
|
|
Joined: Dec 2006
Posts: 1,235
veteran
|
|
veteran
Joined: Dec 2006
Posts: 1,235 |
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
I think he means one for the UBB's custom tags; if so, I'll try to build one up later today.
|
|
|
|
|
Joined: Nov 2006
Posts: 30
newbie
|
|
newbie
Joined: Nov 2006
Posts: 30 |
yeah Gizmo, thats what I meant. thanks!
|
|
|
|
|
Joined: Nov 2006
Posts: 30
newbie
|
|
newbie
Joined: Nov 2006
Posts: 30 |
(|.*clip_id=)([a-zA-Z0-9_-]{5,12})(|&.*)
|
|
|
|
|
Joined: Nov 2006
Posts: 30
newbie
|
|
newbie
Joined: Nov 2006
Posts: 30 |
markup:
<object width="400" height="225"> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=\\2&server=vimeo.com" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=\\2&server=vimeo.com" type="application/x-shockwave-flash" wmode="transparent" width="400" height="225"> </embed> </object>
|
|
|
|
|
Joined: Nov 2006
Posts: 30
newbie
|
|
newbie
Joined: Nov 2006
Posts: 30 |
I found the above to be too small so enlarged the video to what Vimeo is running (312X520):
<object width="520" height="312"> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=\\2&server=vimeo.com" /> <embed src="http://vimeo.com/moogaloop.swf?clip_id=\\2&server=vimeo.com" type="application/x-shockwave-flash" wmode="transparent" width="520" height="312"> </embed> </object>
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
Weird, I wanted to set it up to do a url based match (since vimeos videos can be url based) but i can't get 7.5 to match; though i think it's due to an earlier glitch in the regex matching in 7.5 so it may be that lol... I have: <?php
$export_tags = array (
0 =>
array (
'tag' => 'video:vimeo',
'descrip' => 'Vimeo Video',
'prompt' => 'Vimeo URL; eg: http://www.vimeo.com/xxxxxx',
'regex' => 'http://www.vimeo.com/(.+?)',
'markup' => '<object width="425" height="350"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=\\\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=\\\\1&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="350"></embed></object>',
,
);
?>I set the size to match up with all of the rest of the video tags; you can adjust as you see fit.
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
Yeh, that should work, I put a copy of the bbcode.inc.php from 7.4.2 into my 7.5.1 install and it's working; not sure if this is fixed in 7.5.2 or will be addressed in 7.5.3
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
|
|
|
|
0 members (),
296
guests, and
109
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
|