Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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)

Last edited by Gizmo; 11/29/2009 1:34 AM.

UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Oct 2009
Posts: 41
User
User
Offline
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 Owner
Time Lord
UBBDev / UBBWiki Owner
Time 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?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Oct 2009
Posts: 41
User
User
Offline
Joined: Oct 2009
Posts: 41
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


Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time 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"


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Oct 2009
Posts: 41
User
User
Offline
Joined: Oct 2009
Posts: 41
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:



Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time 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")


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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
Offline
Joined: Nov 2003
Posts: 482
(.+?) 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

Joined: Oct 2009
Posts: 41
User
User
Offline
Joined: Oct 2009
Posts: 41
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


Sponsored Links
Joined: Oct 2009
Posts: 41
User
User
Offline
Joined: Oct 2009
Posts: 41
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


Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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

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
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?


There is no such thing as stupid questions.
Just stupid answers.
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
[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

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
Offline
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
Offline
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 wink

Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
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
greasemonky????????????


There is no such thing as stupid questions.
Just stupid answers.
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
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.. wink

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: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
https://addons.mozilla.org/en-US/firefox/addon/748

they have a forum on 'how to', but its quite easy (for a geek type)

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 Owner
Time Lord
UBBDev / UBBWiki Owner
Time 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 tipsy


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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
Offline
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 Owner
Time Lord
UBBDev / UBBWiki Owner
Time 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.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2003
Posts: 482
Enthusiast
Enthusiast
Offline
Joined: Nov 2003
Posts: 482
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

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time 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


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
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 Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
SD has a rather nice YouTube BBCode here


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)