![]() |
hm, try this one, altough it doesn't make any sense:
PHP Code:
Quote:
If anyone offers me admin access to a test installation, I'm able to create a plugin for vbcms too. |
Quote:
Not sure why it doesn't work, as it's opening the database now and processing it ... :confused: Just seems to process 150,000+ posts and skips every one of them ? Quote:
[youtube]FM6wHknkAPk[/youtube] [youtube]XTGuRgcGujs[/youtube] [youtube]Ie88A51IxY4[/youtube] Regards, Doug |
tagged
BTW can you make one with images? |
Quote:
Otherwise I'm out of ideas. What could help immensly is: Export only your vb posts table, put it into an archive and send it to me via PM so I can run the script myself and test out why it doesn't replace the tags. Quote:
|
Quote:
I'll try to figure out how to export the post table and send it to you. Never done anything like that before. Appreciate your help .. very gracious of you ... :up: Regards, Doug |
I'm getting 3 copies of the same video, it's a youtube rss link, before this mod I would just get a clickable image that would redirect to youtube, undesired, so any fix? or can I disable this mod just for 1 forum
the rss link is http://gdata.youtube.com/feeds/base/...rss&time=today thanks |
Hey, any chance of getting this to work with the new youtu.be url structure?
Here's further info: http://tracker.vbulletin.com/browse/VBIV-11734 |
Quote:
Regards, Doug |
Supports new youtube links https://vborg.vbsupport.ru/
|
Quote:
Regards, Doug |
Brilliant thanks!
|
Good stuff, thanks for the update!
|
excellent - works perfectly, thanks
|
HI Disasterpiece
This 1.2 works well on 4.0.8 Thank You! I wonder if you can do this kinda code for Flickr and Photobucket Video as well? I think this would be great. Thanks |
Quote:
Perhaps convert the Photobucket [URL] link to an [IMG] link ... Drives me crazy when folks are too lazy (or don't know how) to do anything but post an HTTP:// link to their pic which takes them off our site. Regards, Doug |
hmm, well you could. But every check costs render time the way it is now. I think this is not the appropriate way to auto-replace more than 1 particular link structure.
I coded and released this mod, because in my case, youtube links are 99% of all links which makes sense to convert them and actually improves usability. For everything else, I suggest to keep an eye out for other similar mods which cover this case. Flickr can't be easily translated from url to embed, because it's an additional query necessary to check if the author allowed embedding, etc. So that's a bit more difficult to handle than youtube. |
Thanks for this mod, it work with almost all videos in my forum, but I can't do that with this URL format:
http://www.youtube.com/v/2jql3tUuiFU My forum have many videos with that format. Can you help me? Too have many videos with spanish subdomain in URL and Without "www", but i solved this changing in RegEx "www\.youtube\.com" by ".*\youtube\.com": Code:
/<a href=\"https?:\/\/((.*\youtube\.com\/watch\?v=)|(youtu\.be\/))([a-zA-Z0-9-_]+)(.*)?\"( target=\"_blank\")?>.*<\/a>/ Thanks in advance, greetings. |
Sorry if this has already been asked, but I don't see it....
A few users are complaining that their browser/device doesn't see the videos when they are embedded in a post. If they have the link to youtube, they can view in youtube (why is beyond me). Anyway, is there a way that, say, beneath the video, the link to it on youtube can be shown? Thanks for the nifty mod. |
Quote:
I'll check this out and keep you posted. |
|
Quote:
Continues to work fine on my computer (MacBook Pro) running FireFox, as tested with post YouTube link shown below ... :up: Tested accessing site from my two mobile devices using this YouTube link shown in a post. http://www.youtube.com/watch?v=9E7GLdYhm3s iPhone 4 ... :up: (video window appears and link marked YouTube Link shows above it.) iPad .... :down: (post is blank .. no video or link shown ... when post is edited, link above shows fine) Hope this helps track down any problems ... :) Regards, Doug Edit: Follow up.. as a test, I DISABLED mod and checked post on iPad following that. Link to YouTube video then appears in post. I ENABLED mod again and post becomes blank again... no video, no pic. |
Quote:
Quote:
|
Yes, browsers that do not support the embed/flash-functionalities, have a fallback to the youtube preview image and a link to the youtube page attached. This is the (best) standard X3 conform method i could find :)
|
Voted for MOTM :D
|
Anyone else tried this on the iPad?
See my post above where neither link or video appear with 1.3 ... However, does appear fine on iPhone 4 with same Safari browser and same operating system. Thanks ... :) Regards, Doug |
Greta mod working for me on 4.1.3
|
Quote:
But as failsafe, you could change the fallback code to only image and link, so if a mobile browser is detected, don't use the default vB video embed at all. You can accomplish this when you change the fallback embed code in the plugin's settings to this: HTML Code:
<a href="http://www.youtube.com/watch?v=%1$s"> |
Quote:
What is the name of the plugin? I can't seem to find where to put that new code exactly, or what existing code to replace ... I'm not the brightest light bulb programmer in the room .. :D Regards, Doug |
The Settings from Auto Youtube Viewer in your vB AdminCP > Settings > Auto Youtube Link Converter
I added an option in version 1.3 exactly for that purpose :) |
Quote:
That code is exactly what's in that box right now at the last line? Code:
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/%1$s" width="480" height="360"> Doug |
Yes, that is the code which gets displayed, if a mobile browser is detected. The reason is, that mobile browsers can't potentially display the default vbulletin code, therefore nothing gets displayed.
The above code you posted is a replacement-code, which works with most mobile browsers (iphone for example). However, the ipad seems still to have trouble displaying the fallback code. So if you put the code snipped I posted a few posts above into the option field, you can ensure, that every mobile browser only displays the link instead of an embed, which he potentially can't display. This is just a temporary solution until I figured out why the ipad can't display the fallback code and I might find a better replacement :) |
1 Attachment(s)
Quote:
Regards, Doug |
1 Attachment(s)
|
Understood ... :D
As you've noted, it still doesn't display on the iPad (just blank post). I also checked my wife's iPad-2 and it doesn't work. Finally, I went back and checked the iPhone4 with just that single line of "FallBack Content" and it works on the one video example I posted earlier, after having removed the old code ... Code:
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/%1$s" width="480" height="360"> ie: Code:
[video=youtube;W7pl0-vaCAg]http://www.youtube.com/watch?v=W7pl0-vaCAg[/video] I thought we had gone through the routine of passing the database through your utility that removed all those? .. or, was that just the mod [youtube] type ones? Regards, Doug |
The script only removed those with the [youtube] tag.
The Issue I see at the moment is, that the standard vbulletin video code doesn't display on ipads, right? > Just disable the mod, add a youtube video in a post via the vbulletin video-button, view the page and see if it appears. If not (as expected), the problem is with the embed code vbulletin uses and my mod also. Right now I'm trying to fix that by looking for an embed code which modern browsers can display, and mobile browsers displaying some fallback thingy so they can at least see anything. I own an iPhone 4, so I can check that, but I have to wait a few days until I get my hands on an iPad 2. We'll see if there is something I can do, worst case will be disable the post replacement for mobile browsers completely, so they will only see a link to the youtube vid. |
it worked for the first post now it doesn't work just tired isn't converting it any idea why my other file was converted?
|
Quote:
Quote:
Quote:
Thanks for your efforts ... :up: Regards, Doug |
Awesome release, thank you very much!
|
Quote:
When you create a new post with just one or more vbulletin links (no tag, no video-embed) and view this post, do they get converted or does it stay as a link? |
stays as a link bro
|
All times are GMT. The time now is 01:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|