Previous Thread
Next Thread
Print Thread
Hop To
#226356 05/11/2009 12:14 AM
Joined: Nov 2006
Posts: 30
O
newbie
newbie
O Offline
Joined: Nov 2006
Posts: 30
anyone got the regex for Vimeo lying around? want to add it to my board. thanks.

olyclimber #226359 05/11/2009 4:01 AM
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235

ScriptKeeper #226362 05/11/2009 9:52 AM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #226365 05/11/2009 11:11 AM
Joined: Nov 2006
Posts: 30
O
newbie
newbie
O Offline
Joined: Nov 2006
Posts: 30
yeah Gizmo, thats what I meant. thanks!

olyclimber #226368 05/11/2009 1:22 PM
Joined: Nov 2006
Posts: 30
O
newbie
newbie
O Offline
Joined: Nov 2006
Posts: 30
(|.*clip_id=)([a-zA-Z0-9_-]{5,12})(|&.*)

olyclimber #226369 05/11/2009 1:22 PM
Joined: Nov 2006
Posts: 30
O
newbie
newbie
O Offline
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>

olyclimber #226377 05/11/2009 2:19 PM
Joined: Nov 2006
Posts: 30
O
newbie
newbie
O Offline
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>

olyclimber #226384 05/11/2009 6:38 PM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
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:
Code
<?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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #226385 05/11/2009 6:41 PM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
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


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #226386 05/11/2009 6:44 PM
Joined: Jun 2006
Posts: 16,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
Posted over at UBBDev


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Who's Online Now
0 members (), 296 guests, and 109 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)