UBB.Dev
Posted By: Gizmo [7.3+] Custom Tag - Vimeo Video - 05/12/2009 12:43 AM
Tag - Vimeo (video:vimeo)
Usage -
Code
[video:vimeo]VideoID[/video]

Code -
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>',
),
);
?>

Install Instructions - Copy the above custom tag to a notepad document, then import this to your forum's Custom Tag panel (CP -> Tools and Info -> Content Rebuilder -> Custom Tag Editor)
Posted By: lightningrod Re: [7.3+] Custom Tag - Vimeo Video - 11/05/2009 9:49 PM
I can't get this Vimeo video embed to work

I got the youtube, google, etc. to work so I am not making a syntax error


Posted By: Gizmo Re: [7.3+] Custom Tag - Vimeo Video - 11/05/2009 11:19 PM
Well, what happens? Like, you enter the code on your forum [video:vimeo]videoid[/video]

Does anything show?
Posted By: lightningrod Re: [7.3+] Custom Tag - Vimeo Video - 11/05/2009 11:34 PM
Originally Posted by Gizmo
Well, what happens? Like, you enter the code on your forum [video:vimeo]videoid[/video]

Does anything show?

Hey Gizmo, hope you're felling better, bro


This is what shows:

http://www.demongov.com/ubbthreads/ubbthreads.php/topics/1822/


It just tries to load but it never loads

Posted By: Gizmo Re: [7.3+] Custom Tag - Vimeo Video - 11/06/2009 5:37 AM
I'm not sure why, but the embed code in your forum overwrote one of the \'s; go in and edit the video code and look for "\1", it should be in there several times; make sure that each "\1" shows as "\\1"
Posted By: lightningrod Re: [7.3+] Custom Tag - Vimeo Video - 11/06/2009 8:21 AM
Originally Posted by Gizmo
I'm not sure why, but the embed code in your forum overwrote one of the \'s; go in and edit the video code and look for "\1", it should be in there several times; make sure that each "\1" shows as "\\1"

I don't see that anywhere in the markup


This is what I typed in manually


Enables - yes

Show in Menu - yes

Menu Order - 4

Custom tag: video:vimeo

Menu Description: Vimeo Video

User prompt hint from text editor: Vimeo URL; eg: http://www.vimeo.com/xxxxxx

Matching regex: (.+?)

Resulting markup:


Posted By: Gizmo Re: [7.3+] Custom Tag - Vimeo Video - 11/06/2009 11:19 PM
Well, theres a problem there too, now its \\\\1 (which is how it's exported), you'll now need to replace all \\\\1's with \\1 (there are 2 occurrences in the "Resulting Markup")
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 11/06/2009 11:23 PM
Another post using a typewriter. DING!!!
Posted By: sirdude Re: [7.3+] Custom Tag - Vimeo Video - 11/07/2009 12:00 AM
(.+?) is not a good idea!!

that captures anything (other than linebreaks)... wide open frown

i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now).. wink

so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c
Posted By: lightningrod Re: [7.3+] Custom Tag - Vimeo Video - 11/20/2009 3:33 PM
Originally Posted by sirdude
(.+?) is not a good idea!!

that captures anything (other than linebreaks)... wide open frown

i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now).. wink

so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c


Thanks bro. It didn't work though

I just tried it


Also, I the Google Video code is not working

I have to login as Admin and use the full html embed to make it work

Posted By: lightningrod Re: [7.3+] Custom Tag - Vimeo Video - 11/20/2009 9:09 PM
Originally Posted by sirdude
(.+?) is not a good idea!!

that captures anything (other than linebreaks)... wide open frown

i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now).. wink

so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c


Just to let you know

I tried that and it didn't work

And than all posts and replies throughout the Forum were all blank

I asked for Help here:

http://www.ubbcentral.com/forums/ub...ll_postings_are_now_blan.html#Post231194

And than I noticed my Replies would show up if I chose in HTML or in HTML and UBBcode

So I deleted the entire Vimeo UBBCode Embed stuff

And now everything is working fine

weird

Posted By: sirdude Re: [7.3+] Custom Tag - Vimeo Video - 11/20/2009 10:09 PM
well, you prolly have the markup part wrong..

Code
<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=\\2&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" />
<embed src="http://vimeo.com/moogaloop.swf?clip_id=\\2&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>

works with
Code
(.*vimeo.com/)(\d{5,20})

note, the 1st part captures into \\1 and the 2nd part (what you want) captures into 2nd part.. \\2 (which is in the embed code)..

very important to do that and it works fine, lasts a long time.. i have it on 3 forums wink

if your markup is using \\1, it will essentially 'eat up' all the good stuff and never spit out any reasonable markup wink
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 11/20/2009 11:58 PM
I refuse to read this post as a typewriter anymore.
I was interested in trying this addon.
But I can't stand the horizontal scroll.
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 11/21/2009 4:20 AM
Originally Posted by sirdude
(.+?) is not a good idea!!

that captures anything (other than linebreaks)... wide open frown

i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now).. wink

so the full regex would be: (.*vimeo.com/)(\d{5,20}) which also handles if a person used www.vimeo.com or just vimeo.com in the url.. 2c
OKAY SD.
I tried this for both url formats. www and non www.
It still won't accept non www url's.
What gives?
Posted By: sirdude Re: [7.3+] Custom Tag - Vimeo Video - 11/22/2009 7:47 PM
[vimeo]http://vimeo.com/7410637[/vimeo]
[vimeo]http://www.vimeo.com/7410637[/vimeo]

as an example works fine for me... note the only difference being that i just allow vimeo as the tag and not video:vimeo...

all else is same..

[Linked Image]
Click for full image, since the resize makes it look ghey

screenie of regexbuddy.. note: one small change i made is to specify a . between vimeo and com.. so i escaped it... but that won't change www or non www results smile
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 11/23/2009 7:42 PM
Well SD I gave up and changed it back to Gizmo's regex tag it would not work for me. In fact it was acting a little flaky sometimes where it would not load.
Could have been operator error.
Maybe you handle the object embed a little different.
Thanks anyway.
Posted By: sirdude Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 1:00 AM
no problem.. weird it works on all 3 of my sites it is installed on and not yours :shrug:

i assume you are copy/pasting my code into the admin cpanel and not doing an import of a text file..
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 1:27 AM
Yes I did. In fact I even tried your regex tag from your last post.
Cut and paste in the control panel
Still no joy.
Oh well.
BTW I know with my host I am a little behind on apache and php versions. But I am on a shared plan.
Posted By: sirdude Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 1:40 AM
a regex is a regex in whatever version of php and apache isn't really in the mix..

i'll export my working one and send it to you.. PM me your email addy wink
Posted By: sirdude Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 3:02 AM
all working now.. perty hard to read these threads without the help of greasemonky to alter the CSS for code tags.. *hint*
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 3:09 AM
greasemonky????????????
Posted By: sirdude Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 3:18 AM
Firefox add-on.. it allows me to change the CSS for any site.. in this case, i use it to not allow the code tags to screw up the forum screens...

for a place like ubbdev, this should be a big dealio, since when code is posted, the thread (many times) blows up.. wink
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 3:26 AM
Okay I give up. Ding
Where is that addon at. Ding
Can't seem to find it. Ding
And how do you use it. Ding
Posted By: sirdude Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 3:29 AM
https://addons.mozilla.org/en-US/firefox/addon/748

they have a forum on 'how to', but its quite easy (for a geek type)
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 3:37 AM
I guess I need to restart to see something to use.
Posted By: Gizmo Re: [7.3+] Custom Tag - Vimeo Video - 11/24/2009 11:04 AM
So, propose a css edit, with code, to the "Developers Discussion" forum and I'll nag AA tipsy
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 11/25/2009 12:07 AM
Greasemonkey with the Pre-Wrap script is now my best buddy.
No more typewriter mode.
It fixed this topic at least
It does run a little slow when it addresses the long text first draw,but at least it is readable. And I don't hear the ding anymore.
Posted By: Ruben Rocha Re: [7.3+] Custom Tag - Vimeo Video - 12/02/2009 1:19 AM
Good job Gizmo. Especially since correcting the export script. For what ever reason it would not work when first posted. We did have some off line discussion on a possible bug on the export, But it works now.

But since vimeo does not have a redirect for the url.
I prefer to use Sirdude's method. Not due to any security issues, but so it accepts www.vimeo.com and vimeo.com and http:// requests as well.
I posted some issues with this code but you really need to read Sirdudes complete post to figure out what is going on with his code. But it does work also.
Posted By: lightningrod Re: [7.3+] Custom Tag - Vimeo Video - 02/07/2010 6:46 AM
I still do not understand what the final answer was here.

I re-read this thread and cannot comprehend what the final answer was here

The Import Custom Tag button does not work for me. I get an error

So I was trying to just type it in manually

Also, the Liveleak embed does not work

And my Google Vids embed does not work

Only my youtube embed works


Posted By: Gizmo Re: [7.3+] Custom Tag - Vimeo Video - 02/08/2010 6:28 AM
Well, if all of them don't work (including the stock ones with the UBB) I think theres a problem other than the tags... Every site is independent of the others, so if they all don't work it's something other than the tags...

So, go try one of the stock UBB tags and let me know.

Also, how are you importing? Are you coping the code(s) to a text file and importing that? IF so, post all of what is in a text file you're trying to import and I'll try to diagnose what's the problem.
Posted By: sirdude Re: [7.3+] Custom Tag - Vimeo Video - 02/08/2010 8:14 AM
Originally Posted by sirdude
well, you prolly have the markup part wrong..

Code
<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=\\2&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" />
<embed src="http://vimeo.com/moogaloop.swf?clip_id=\\2&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>

works with
Code
(.*vimeo.com/)(\d{5,20})

note, the 1st part captures into \\1 and the 2nd part (what you want) captures into 2nd part.. \\2 (which is in the embed code)..

very important to do that and it works fine, lasts a long time.. i have it on 3 forums wink

if your markup is using \\1, it will essentially 'eat up' all the good stuff and never spit out any reasonable markup wink

this works.. i use it .. smile
Posted By: Gizmo Re: [7.3+] Custom Tag - Vimeo Video - 02/08/2010 9:12 AM
Well, the original works, I use it... seems his issues aren't from the tag not working, since he said elsewhere that others aren't working
Posted By: StanCA Re: [7.3+] Custom Tag - Vimeo Video - 02/24/2013 12:06 AM
I should have been more specific in my posts.

You tube only provided this now, http://youtu.be
Posted By: Gizmo Re: [7.3+] Custom Tag - Vimeo Video - 02/24/2013 5:04 PM
SD has a rather nice YouTube BBCode here
© UBB.Developers