Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Tag - Vimeo (video:vimeo)
Usage -
[video:vimeo]VideoID[/video] 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)
Last edited by Gizmo; 11/29/2009 1:34 AM .
Joined: Oct 2009
Posts: 41
User
User
Joined: Oct 2009
Posts: 41
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
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Well, what happens? Like, you enter the code on your forum [video:vimeo]videoid[/video] Does anything show?
Joined: Oct 2009
Posts: 41
User
User
Joined: Oct 2009
Posts: 41
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
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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"
Joined: Oct 2009
Posts: 41
User
User
Joined: Oct 2009
Posts: 41
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:
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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")
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
Another post using a typewriter. DING!!!
There is no such thing as stupid questions. Just stupid answers.
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Joined: Nov 2003
Posts: 482
(.+?) is not a good idea!!
that captures anything (other than linebreaks)... wide open
i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now)..
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
Joined: Oct 2009
Posts: 41
User
User
Joined: Oct 2009
Posts: 41
(.+?) is not a good idea!!
that captures anything (other than linebreaks)... wide open
i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now)..
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
Joined: Oct 2009
Posts: 41
User
User
Joined: Oct 2009
Posts: 41
(.+?) is not a good idea!!
that captures anything (other than linebreaks)... wide open
i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now)..
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
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Joined: Nov 2003
Posts: 482
well, you prolly have the markup part wrong..
<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
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
if your markup is using \\1, it will essentially 'eat up' all the good stuff and never spit out any reasonable markup
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
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.
There is no such thing as stupid questions. Just stupid answers.
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
(.+?) is not a good idea!!
that captures anything (other than linebreaks)... wide open
i'd use something more stringent like (\d{5,20}) instead, which only allows numbers (few as 5, much as 20 for now)..
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?
There is no such thing as stupid questions. Just stupid answers.
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
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.
There is no such thing as stupid questions. Just stupid answers.
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Joined: Nov 2003
Posts: 482
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..
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
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.
There is no such thing as stupid questions. Just stupid answers.
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Joined: Nov 2003
Posts: 482
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
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Joined: Nov 2003
Posts: 482
all working now.. perty hard to read these threads without the help of greasemonky to alter the CSS for code tags.. *hint*
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
There is no such thing as stupid questions. Just stupid answers.
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Joined: Nov 2003
Posts: 482
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..
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
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
There is no such thing as stupid questions. Just stupid answers.
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
I guess I need to restart to see something to use.
There is no such thing as stupid questions. Just stupid answers.
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
So, propose a css edit, with code, to the "Developers Discussion" forum and I'll nag AA
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
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.
There is no such thing as stupid questions. Just stupid answers.
Joined: Jan 2000
Posts: 254
Likes: 4
Beta Tester
Beta Tester
Joined: Jan 2000
Posts: 254
Likes: 4
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.
There is no such thing as stupid questions. Just stupid answers.
Joined: Oct 2009
Posts: 41
User
User
Joined: Oct 2009
Posts: 41
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
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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.
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Joined: Nov 2003
Posts: 482
well, you prolly have the markup part wrong..
<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
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
if your markup is using \\1, it will essentially 'eat up' all the good stuff and never spit out any reasonable markup
this works.. i use it ..
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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
Joined: Jul 2002
Posts: 79
Power User
Power User
Joined: Jul 2002
Posts: 79
I should have been more specific in my posts.
You tube only provided this now,
http://youtu.be
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki OwnerTime Lord
UBBDev / UBBWiki OwnerTime Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
SD has a rather nice YouTube BBCode
here
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
badfrog
somewhere on the coast of Maine
Posts:
94
Joined: March 2007
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139Sep 21st, 2024
Currently Online
Topics Created
Posts Made
Users Online
Birthdays