Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
3 registered members (Conrad, AstroCat, driv), 72 guests, and 214 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Posts: 112
Joined: June 2011
Show All Member Profiles 
Top Posters(30 Days)
isaac 14
Ruben 5
Morgan 4
M4TT 4
Gizmo 1
fidel 1
Latest Photos
Trees
Retreats
Rooms
Big stuff
Test
Previous Thread
Next Thread
Print Thread
youtube code dont work anymore #262273 02/06/19 06:58 PM
Joined: Jun 2006
Posts: 955
Zarzal Offline OP
Old Hand
I read this thread:
https://www.ubbcentral.com/forums/ubbthreads.php/ubb/showflat/Number/260088

I go to my admin panel, kill the old entrys for youtube code and import the tags.php from V7.7.1 install directory. I edit the name and order, activate each entry. After this I went to the rebuilder and start rebuilding of my 110.000 postings. After this I end not executed code in a posting and just see
Code
[video:youtube]s6-DBHXJ_ho[/video]
. This happen to all 5 video codes. I clear the cache and try new test postings but still no success. The code is not executed. I see a new custom_tag_cache.php after clearing the cache, this contains all 5 codes.

Now, what else I can do? I like to have back my Youtbe Videos smile

/update:
If I take a look to my old mysql backups I see in table ubbt_BBCODE the BBCODE_ID 12 and 10 for my two old entrys.
Now, after importing the new tags is 20, 21, 22, 23, 24 ... starting with 2 not with 1. Is this correct?

/update 2
ahhhh, the new youtube tag need the full url, the old tag only the ID .... so I have to create a old and new youtube tag to bring back the old ID only videos ... I will try

/update 3
Fixed smile

Last edited by Zarzal; 02/06/19 07:25 PM. Reason: more infos

my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Express Hosting
Re: youtube code dont work anymore [Re: Zarzal] #262275 02/06/19 07:33 PM
Joined: Jun 2006
Posts: 15,809
Gizmo Offline
UBB.threads Developer
As a part of the UBB.threads v7.6.0 mobile update (See the Progress Report from 2016.12.04) the regex coding on all of the default tags were cleaned up and enhanced; in the YouTube tag for example we can now match URLs vs URLs in previous editions of the tag; the caveat however is that the tag no longer allows one to just quote the id, it must be a full URL.

Surmising; this:
Code
[video:youtube]s6-DBHXJ_ho[/video]

Should now be
Code
[video:youtube]https://www.youtube.com/watch?v=s6-DBHXJ_ho[/video]


Like:


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.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
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!
Re: youtube code dont work anymore [Re: Zarzal] #262276 02/06/19 07:36 PM
Joined: Jun 2006
Posts: 955
Zarzal Offline OP
Old Hand
Gizmo, thankls, I found It right now. I don't read the text that show up while enter the ID/Url smile After I read my own text hints I found the same solution and create an entry for the old style code too. Works.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Re: youtube code dont work anymore [Re: Zarzal] #262277 02/06/19 09:40 PM
Joined: Apr 2004
Posts: 1,354
isaac Offline
UBB.threads Developer
From my UBB.threads 7.6.0 developer notes:

Prior to updating the YouTube REGEX, the old string (UBBT759 and older) could only detect 17 of the top 32 most common different YouTube URL variations:
WITH OLD CODE:
GROUP 1
https://www.youtube.com/watch?v=GbPxZ2biOQU
http://www.youtube.com/watch?v=GbPxZ2biOQU
//www.youtube.com/watch?v=GbPxZ2biOQU
www.youtube.com/watch?v=GbPxZ2biOQU
https://youtube.com/watch?v=GbPxZ2biOQU
http://youtube.com/watch?v=GbPxZ2biOQU
//youtube.com/watch?v=GbPxZ2biOQU
youtube.com/watch?v=GbPxZ2biOQU

GROUP 2
https://m.youtube.com/watch?v=GbPxZ2biOQU
http://m.youtube.com/watch?v=GbPxZ2biOQU
//m.youtube.com/watch?v=GbPxZ2biOQU
m.youtube.com/watch?v=GbPxZ2biOQU

GROUP 3
https://www.youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US
http://www.youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US
//www.youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US
www.youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US
youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US

GROUP 4
https://www.youtube.com/embed/GbPxZ2biOQU?autoplay=1
https://www.youtube.com/embed/GbPxZ2biOQU
http://www.youtube.com/embed/GbPxZ2biOQU
//www.youtube.com/embed/GbPxZ2biOQU
www.youtube.com/embed/GbPxZ2biOQU
https://youtube.com/embed/GbPxZ2biOQU
http://youtube.com/embed/GbPxZ2biOQU
//youtube.com/embed/GbPxZ2biOQU
youtube.com/embed/GbPxZ2biOQU

GROUP 5
https://youtu.be/GbPxZ2biOQU?t=120
https://youtu.be/GbPxZ2biOQU
http://youtu.be/GbPxZ2biOQU
//youtu.be/GbPxZ2biOQU
youtu.be/GbPxZ2biOQU

GROUP 6
https://www.youtube.com/InvisibleAdvertising?v=GbPxZ2biOQU



After updating the YouTube REGEX, the new string (UBBT760 and newer) can detect more than 32 of the most common YouTube variations:
WITH NEW CODE:
GROUP 1
https://www.youtube.com/watch?v=GbPxZ2biOQU
http://www.youtube.com/watch?v=GbPxZ2biOQU
//www.youtube.com/watch?v=GbPxZ2biOQU
www.youtube.com/watch?v=GbPxZ2biOQU
https://youtube.com/watch?v=GbPxZ2biOQU
http://youtube.com/watch?v=GbPxZ2biOQU
//youtube.com/watch?v=GbPxZ2biOQU
youtube.com/watch?v=GbPxZ2biOQU

GROUP 2
https://m.youtube.com/watch?v=GbPxZ2biOQU
http://m.youtube.com/watch?v=GbPxZ2biOQU
//m.youtube.com/watch?v=GbPxZ2biOQU
m.youtube.com/watch?v=GbPxZ2biOQU

GROUP 3
https://www.youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US
http://www.youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US
//www.youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US
www.youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US
youtube.com/v/GbPxZ2biOQU?fs=1&hl=en_US

GROUP 4
https://www.youtube.com/embed/GbPxZ2biOQU?autoplay=1
https://www.youtube.com/embed/GbPxZ2biOQU
http://www.youtube.com/embed/GbPxZ2biOQU
//www.youtube.com/embed/GbPxZ2biOQU
www.youtube.com/embed/GbPxZ2biOQU
https://youtube.com/embed/GbPxZ2biOQU
http://youtube.com/embed/GbPxZ2biOQU
//youtube.com/embed/GbPxZ2biOQU
youtube.com/embed/GbPxZ2biOQU

GROUP 5
https://youtu.be/GbPxZ2biOQU?t=120
https://youtu.be/GbPxZ2biOQU
http://youtu.be/GbPxZ2biOQU
//youtu.be/GbPxZ2biOQU
youtu.be/GbPxZ2biOQU

GROUP 6
https://www.youtube.com/InvisibleAdvertising?v=GbPxZ2biOQU


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.2 Progress Notes
Re: youtube code dont work anymore [Re: Zarzal] #262278 02/06/19 09:50 PM
Joined: Apr 2004
Posts: 1,354
isaac Offline
UBB.threads Developer
My bad. I didnt notice that Giz had linked that changelog in his post above mine. lol

I also forgot that the details were posted to a changelog.
I snagged my copy/paste from the private developer snapshot discussion thread.


So I guess all of this really just means I'm bumping my post count here. go me! laugh


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.2 Progress Notes
Re: youtube code dont work anymore [Re: Zarzal] #262279 02/07/19 03:19 AM
Joined: Jun 2006
Posts: 955
Zarzal Offline OP
Old Hand
It's good information in the right place, thanks.
For my forum I let the old code in too but uncheck the visibility so users only have the new code in the editor drop down. I change the ubb tag a litte bit so both codes work. Solved.

Do you ever try to bring videmo videos to work? It seems that the code is accepted (I dont see a printed code tag) but nothing happen. The viedeo dont come up.


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Re: youtube code dont work anymore [Re: Zarzal] #262280 02/07/19 03:26 AM
Joined: Apr 2004
Posts: 1,354
isaac Offline
UBB.threads Developer
YouTube
https://www.ubbdev.com/forums/ubbthreads.php/topics/321200/youtube-video-custom-tag.html

Vimeo
https://www.ubbdev.com/forums/ubbthreads.php/topics/321201/vimeo-video-custom-tag.html

Yahoo! (please no!)
https://www.ubbdev.com/forums/ubbthreads.php/topics/321203/yahoo-video-custom-tag.html

There are a few more, such as:
MySpace - which I dont think is around any more.
PhotoBucket - which is now a paid service if you want to share (???)

Last edited by isaac; 02/07/19 03:28 AM.

isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.2 Progress Notes
Re: youtube code dont work anymore [Re: Zarzal] #262281 02/07/19 03:46 AM
Joined: Jun 2006
Posts: 955
Zarzal Offline OP
Old Hand
Isaac, thank you, the UBBDev code work. The code from tag.php provide in the ubb install doesn't work with the actual vimeo website/code.

Another problem fixed thumbsup


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Re: youtube code dont work anymore [Re: Zarzal] #262282 02/07/19 04:15 AM
Joined: Apr 2004
Posts: 1,354
isaac Offline
UBB.threads Developer
Thanks thumbsup
We'll have to revisit/update the tag again.

The code in the UBBDev post also doesn't appear to have a .video-container tag on it. Meaning that its not mobile friendly.

Though to be honest, I havent had a single user embed (or request to embed) a Vemeo video on any of my sites. But there are a small few who link directly to the videos. I guess compared to YouTube, Vemeo provides a better entry experience for their visitors -- comments that contribute and are actually worth reading.


isaac @ id242.com // my forum @ CelicaHobby.com
a current developer of UBB.threads php forum software // 7.7.2 Progress Notes
Re: youtube code dont work anymore [Re: Zarzal] #262283 02/07/19 04:22 AM
Joined: Jun 2006
Posts: 955
Zarzal Offline OP
Old Hand
Vimeo is a good choise here in germany if you use clips with music. Youtube sometime block them due missing rights or some copyright trouble.

For testing a tag out of my forum:

Code
[video:vimeo]https://vimeo.com/1654340[/video]

(dont try this on your own smile )

Last edited by Gizmo; 02/07/19 11:32 AM.

my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Re: youtube code dont work anymore [Re: Zarzal] #262285 02/07/19 11:33 AM
Joined: Jun 2006
Posts: 15,809
Gizmo Offline
UBB.threads Developer
It looks like Vimeo changed how their embedding code works at some point; and our embed code could use a little cleaning...

Change the Resulting Markup on the Vimeo tag to:
Code
<div class="video-container"><iframe frameborder="0" width="500" height="300" src="https://player.vimeo.com/video/\\2" allowfullscreen></iframe></div>



And now its mobile too wink... The regex could probably use some love to account for the staffpicks url, but this should work fine.
Code
Vimeo URLs:
https://vimeo.com/1654340
https://vimeo.com/channels/staffpicks/315528770


It doesn't help that their site isn't the easiest to navigate, or every time I try to sign up for an account it stresses that it can't continue because for some reason I'm identified as a malicious user even though I don't even use their product...



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.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
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!
Re: youtube code dont work anymore [Re: Zarzal] #262286 02/07/19 12:08 PM
Joined: Jun 2006
Posts: 955
Zarzal Offline OP
Old Hand
works thumbsup


my board: http://www.dragonclan-forum.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Re: youtube code dont work anymore [Re: isaac] #262287 02/07/19 01:16 PM
Joined: Feb 2007
Posts: 1,271
JAISP Offline
Veteran
Originally Posted by isaac
So I guess all of this really just means I'm bumping my post count here. go me! laugh


LOL, Gizmo where is that like button.....?

Re: youtube code dont work anymore [Re: JAISP] #262288 02/07/19 05:14 PM
Joined: Jun 2006
Posts: 15,809
Gizmo Offline
UBB.threads Developer
Originally Posted by isaac
So I guess all of this really just means I'm bumping my post count here. go me! laugh
You're me?


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.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
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!

ShoutChat Box
Today's Birthdays
No Birthdays
Recent Topics
Avatar Pic?
by AstroCat - 04/23/19 10:44 AM
Geo Targeting Display of Custom Islands?
by PianoWorld - 04/15/19 01:08 PM
How-To Guides and Technical Articles
by Morgan - 04/06/19 08:46 AM
i am not a robot.
by Anonymous - 03/29/19 07:18 PM
What directory are avatar images saved in?
by CyberChild - 03/29/19 12:57 PM
Forum Statistics
Forums35
Topics35,272
Posts192,341
Members12,158
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.7.2
(Snapshot build 20190420)