View Full Version : Mini Mods - Auto Youtube Link-Converter
Disasterpiece
03-31-2011, 10:00 PM
So basically this is a total easy-to-implement plugin, which converts standard youtube links to video-embeds on the fly without urging users to use the video-button because I think it is unnecessary.
On post display, the plugin checks if the post contains at least 1 youtube link in the form of
<a href="http://www.youtube.com/watch?v=somecode&some=params">http://www.youtube.com/watch?v=somecode&some=params</a>
and converts them using the default vB video bbcode parser.
Code can be modified to fit your needs, altough there shouldn't be much to add.
If you're the special performance-freak, I'm curious if you can enhance data/query-performance. So let me know if you do.
INSTALL:
- Download attached XML File and import it as an addon.
Changes since 1.3:
- Now works properly on iPad
Changes since 1.2:
- Supports mobile devices with fallback-display if browser doesn't support flash/embed codes
- Allows the user to specify the above mentioned replacement code for mobile browsers
- Minor improvements & Fixes
Changes since 1.1:
- Moved regular expression and index position into admincp settings to allow easier changing in the future
- supports new youtube link format: "http://youtu.be/*somevideocode*"
Changes since 1.0: (or: why should I download that mod again?)
- Added Link parsing in post-preview mode and in post reviewbits (the latest posts you see under the new reply form)
Now every post containing youtube-links should display the embedded video instead.
Works with any number of youtube-links and any kind of text surrounding them.
Let me know if you have trouble/questions.
voglermc
04-01-2011, 04:55 PM
Sweet! Nominated!
fragov
04-01-2011, 05:06 PM
You da man! :)
fragov
04-01-2011, 06:00 PM
How it can be changed to replace link to bbcode on newpost & newreply not in quotes?
New Joe
04-02-2011, 03:30 AM
Works as it says.
Sforums
04-02-2011, 12:14 PM
Great job!
5 star and nominated.
10 second install! Works as described. Good job!
I wonder if the code can be modified to do the same with links to Picasa web albums, presenting them as slide shows?
Disasterpiece
04-02-2011, 07:40 PM
@grc: sure it can. It basically checks for an occurence in the html-string, grabs a part of it (in this case the video-id) and replaces it with another string.
If you can give me specific information on how that picasa thing is formed, I can write you a plugin for that purpose.
thr45h3r
04-02-2011, 07:55 PM
Thanks works great
Gemma
04-02-2011, 10:12 PM
Thanks a lot :)
SpeedyHire
04-03-2011, 08:19 AM
nice one, thanks
ProFifaLeagues
04-03-2011, 09:52 AM
Will this work below 4.1.2????
Disasterpiece
04-03-2011, 05:18 PM
Will this work below 4.1.2????
It should work, yes. Only one way to find out :P
I started and developed the plugin on vB 4.1.2 so I can't guarantee it works with older versions.
zelnik
04-03-2011, 05:41 PM
brilliant thanks
@grc: sure it can. It basically checks for an occurence in the html-string, grabs a part of it (in this case the video-id) and replaces it with another string.
If you can give me specific information on how that picasa thing is formed, I can write you a plugin for that purpose.
Cool - here's a link to a slide show:
<embed type="application/x-shockwave-flash" src="https://picasaweb.google.com/s/c/bin/slideshow.swf" width="400" height="267" flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ff eed%2Fapi%2Fuser%2Fnazarenealvin%2Falbumid%2F54408 10094021987121%3Falt%3Drss%26kind%3Dphoto%26hl%3De n_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
username: nazarenealvin
albumname: 2010NewCross
Is it do-able?
Disasterpiece
04-03-2011, 06:30 PM
Cool - here's a link to a slide show:
https://picasaweb.google.com/nazarenealvin/2010NewCross?feat=directlink
username: nazarenealvin
albumname: 2010NewCross
Is it do-able?
I don't see any kind of embed-code. How does it work?
I don't see any kind of embed-code. How does it work?
Sorry, grabbed the wrong code - I just edited the post to include the embed code. If it's too much, no worries - thanks for thinking about it.
BadgerDog
04-03-2011, 08:21 PM
Great idea .... :up:
Just installed and for testing on 4.04pl1 ....
Seems to be working just fine .... :)
Really valuable addition to our site and saves me a lot of time checking posts and converting the manual links to BBCode [video] links .... :)
Slick the way it does the conversion during the "submit" part of the post creation or editing ...
Thanks for this ...
Regards,
Doug
ProFifaLeagues
04-03-2011, 08:33 PM
It should work, yes. Only one way to find out :P
I started and developed the plugin on vB 4.1.2 so I can't guarantee it works with older versions.
Installed and working fine on 4.0.6
Thanks mate saves a lot of work for us
Disasterpiece
04-05-2011, 01:16 AM
Just updated with newer version.
I missed the conversion in post preview and the reviewbits, so here they are.
Same procedure, now there are 3 plugins. You can enable/disable the plugins by itself if you want to disable a specific feature.
Juggernaut
04-05-2011, 01:40 AM
Really useful mod :D
Goodfather
04-05-2011, 09:46 AM
Installed and working fine on 4.1.2
thanks :)
Nominated!
YkudzA
04-05-2011, 12:11 PM
installed and nominated !
Brandon Sheley
04-05-2011, 04:05 PM
works as it should on 4.1.2
thanks :)
* Brandon Sheley clicks install
BadgerDog
04-05-2011, 05:55 PM
Just installed 1.1 update and testing on 4.04pl1 .... :)
Appears to be operating just fine ...
I like smart and intuitive add-ons that substitute for unnecessary steps for the end user and this is one of those ... :up:
Regards,
Doug
Edit: oooppps.... found a problem. Have started to get emails from members saying that they're seeing YouTube videos being duplicated in just some posts, primarily older ones. Traced cause to a conflict with a mod we've been using for 5 years which is a BBCode xxx add-on to handle YouTube videos even before vb4 did with their xxx button.
Any way to have this mod ignore that old mod (too many posts for us to change) and not translate, adding a second duplicate video? .. or, can we make an SQL pass on the database and change all posts to something else to be compatible with his mod?
Works fairly well. I've noticed some YouTube links won't auto embedd. Example,
http://www.youtube.com/user/tdwpplaya - Will no embed automatically
http://www.youtube.com/watch?v=0ABGIJwiGBc - Will embed automatically.
Is it because the first link is "user"/ and not watch?v= ?
Either way, very nice Mod. This is the kinda stuff I don't understand why is not built in to the vB software. Clicking the [video] button is completely (or should be) unnecessary!
Disasterpiece
04-06-2011, 01:11 AM
Edit: oooppps.... found a problem. Have started to get emails from members saying that they're seeing YouTube videos being duplicated in just some posts, primarily older ones. Traced cause to a conflict with a mod we've been using for 5 years which is a BBCode xxx add-on to handle YouTube videos even before vb4 did with their xxx button.
Any way to have this mod ignore that old mod (too many posts for us to change) and not translate, adding a second duplicate video? .. or, can we make an SQL pass on the database and change all posts to something else to be compatible with his mod?
Funny that you mention that, I had exactly the same problem. We didn't use video tags, just the videoid thingy which caused above mentioned problem.
I made a script for myself which changed all ... tags to full urls like
http://www.youtube.com/watch?v=*videoid*
to solve this problem. I attached it below.
USE AT YOUR OWN RISK!
Backup your database before running the query, disabling your forum might be a good idea, place it anywhere and delete it afterwards.
Edit the file before you run it with your database credentials and modify the table-prefix/name accordingly. Hit the "continue" link until the script doesn't make any more queries.
Oh and I had troubles with singlequotes in postings which messed up my query, so I simply escaped it. I didn't discover any problems with that, keep in mind that if your language makes excessive use of the ' character, you might want to find a way around that, I did not.
Will only work with old youtube tags in the form of:
6mXM-oGggrM
and:
6mXM-oGggrM
If you used a different tag, send me a PM and I try to help you out with the correct replacement.
Works fairly well. I've noticed some YouTube links won't auto embedd. Example,
http://www.youtube.com/user/tdwpplaya - Will no embed automatically
http://www.youtube.com/watch?v=0ABGIJwiGBc - Will embed automatically.
Is it because the first link is "user"/ and not watch?v= ?
Either way, very nice Mod. This is the kinda stuff I don't understand why is not built in to the vB software. Clicking the [video] button is completely (or should be) unnecessary!
Thanks for your feedback :)
The user-link will only display the profile page of the user, not a specific video. Which means, if that particlular user uploads a new video, the new video will be shown on this site. I'm not aware if the vB video tag translates this kind of url too, I find it rather unintuitive and uncommon and due to the lack of a video-ID in the url, it's not really supposed to be embedded :p
Funny that you mention that, I had exactly the same problem. We didn't use video tags, just the videoid thingy which caused above mentioned problem.
I made a script for myself which changed all ... tags to full urls like
http://www.youtube.com/watch?v=*videoid*
to solve this problem. I attached it below.
USE AT YOUR OWN RISK!
Backup your database before running the query, disabling your forum might be a good idea, place it anywhere and delete it afterwards.
Edit the file before you run it with your database credentials and modify the table-prefix/name accordingly. Hit the "continue" link until the script doesn't make any more queries.
Oh and I had troubles with singlequotes in postings which messed up my query, so I simply escaped it. I didn't discover any problems with that, keep in mind that if your language makes excessive use of the ' character, you might want to find a way around that, I did not.
Will only work with old youtube tags in the form of:
6mXM-oGggrM
and:
6mXM-oGggrM
If you used a different tag, send me a PM and I try to help you out with the correct replacement.
Thanks for your feedback :)
The user-link will only display the profile page of the user, not a specific video. Which means, if that particlular user uploads a new video, the new video will be shown on this site. I'm not aware if the vB video tag translates this kind of url too, I find it rather unintuitive and uncommon and due to the lack of a video-ID in the url, it's not really supposed to be embedded :p
Gotcha. Not really that big of a deal, as most YouTube links don't have that User/. Thank you for the Mod, this was a much needed one. Now if some of the other videos would auto embed!
Installed/Rated/Voted
GeorgeEcuador
04-06-2011, 02:38 AM
Functional v4.03.. Fine... Installed..
BadgerDog
04-06-2011, 01:10 PM
Funny that you mention that, I had exactly the same problem. We didn't use video tags, just the videoid thingy which caused above mentioned problem.
I made a script for myself which changed all ... tags to full urls like
http://www.youtube.com/watch?v=*videoid*
to solve this problem. I attached it below.
USE AT YOUR OWN RISK!
Backup your database before running the query, disabling your forum might be a good idea, place it anywhere and delete it afterwards.
Edit the file before you run it with your database credentials and modify the table-prefix/name accordingly. Hit the "continue" link until the script doesn't make any more queries.
Oh and I had troubles with singlequotes in postings which messed up my query, so I simply escaped it. I didn't discover any problems with that, keep in mind that if your language makes excessive use of the ' character, you might want to find a way around that, I did not.
Will only work with old youtube tags in the form of:
6mXM-oGggrM
and:
6mXM-oGggrM
If you used a different tag, send me a PM and I try to help you out with the correct replacement.
Thanks partner ... appreciate that ... :)
Those two BBCodes are EXACTLY the ones that we used for years, so there's a LOT of old YouTube links with them.
So, I simply execute that PHP file you attached and it will go through our entire database, altering them to something else?
I have no database prefix .... it just shows in the config file for vBulletin as ' ' with no prefix in between the single quotes. Just leave it as two single quotes in your PHP file?
BTW, my language is English ..
Regards,
Doug
Disasterpiece
04-06-2011, 01:26 PM
So, I simply execute that PHP file you attached and it will go through our entire database, altering them to something else?
Correct. Keep in mind that the execution starts the moment you open the url in your browser. So enter the database credentials before you run the url.
I have no database prefix .... it just shows in the config file for vBulletin as ' ' with no prefix in between the single quotes. Just leave it as two single quotes in your PHP file?
Righto, just leave it as '' then. (without space)
BTW, my language is English ..
I know, just wanted to point that out in case other users want to use the script as well :)
BadgerDog
04-06-2011, 08:55 PM
Correct. Keep in mind that the execution starts the moment you open the url in your browser. So enter the database credentials before you run the url.
Righto, just leave it as '' then. (without space)
Understood ... will try this out after a full backup and advise ... :)
Regards,
Doug
BadgerDog
04-07-2011, 02:58 PM
Understood ... will try this out after a full backup and advise ... :)
Regards,
Doug
Hi.... :)
Entered our specific information, backed up and then executed PHP file.
All it came back with was the phrase No query result and no [youtube] records weres changed?
Am I doing something wrong?
Regards,
Doug
Disasterpiece
04-07-2011, 05:46 PM
give me a few examples how your youtube tag works and I'll try to sort it out
BadgerDog
04-07-2011, 06:09 PM
give me a few examples how your youtube tag works and I'll try to sort it out
Special BBCodes were added to our site over the years so that they appear in posts like this:
British Training Film
.. or, like this ...
QT7kEMxSdZU
Now, these videos appear twice (they repeat) in each post with your excellent new YouTube mod installed, except yours presents a wide screen video, where the old ones were 4x3. Yours is better..... :D
Is this what you mean by examples?
Regards,
Doug
Disasterpiece
04-07-2011, 07:05 PM
Then modify the convyt.php like the following:
Replace the $ytpreg = ... line with each one of those:
$ytpreg = "/\[youtube=([a-zA-Z0-9_-]+)\&?\](.*)\[\/youtube\]/i";
$ytpreg = "/\[youtube\]([a-zA-Z0-9_-]+)\&?\[\/youtube\]/i";
You'll have to run the script 2 times, each time with one of those lines.
That should do the trick then.
BadgerDog
04-07-2011, 09:15 PM
Then modify the convyt.php like the following:
Replace the $ytpreg = ... line with each one of those:
$ytpreg = "/\[youtube=([a-zA-Z0-9_-]+)\&?\](.*)\[\/youtube\]/i";
$ytpreg = "/\[youtube\]([a-zA-Z0-9_-]+)\&?\[\/youtube\]/i";
You'll have to run the script 2 times, each time with one of those lines.
That should do the trick then.
Hi... :)
I changed the individual line as above and created two different PHP files. I then ran each one and in both cases, the PHP execution returned No query result.....
I'm not sure what else could be wrong because the BBCode it should be locating is exactly as above, but if I emailed you the three files, one of which would be my config.php for vBulletin, perhaps could have a quick look?
Appreciate your support .... :up:
I did notice that your PHP file refers to:
$database = xxxxx
.. but then the line that opens the database says:
$db = mysql_connect($host, $username, $password);
mysql_select_db($database_name);
Is that correct? .. or should it be:
mysql_select_db($database);
Regards,
Doug
Disasterpiece
04-07-2011, 11:48 PM
heh, I'm afraid you're right. Must've missed that.
ofc mysql_select_db($database); would make more sense. Try that out.
cheers
alfanexus
04-08-2011, 12:05 PM
Would be great if this also worked in blogs and not just forums :)
BadgerDog
04-08-2011, 02:03 PM
heh, I'm afraid you're right. Must've missed that.
ofc mysql_select_db($database); would make more sense. Try that out.
cheers
Yup ... :up:
That got it running, although after passing 150,000 posts and then checking one with a duplicate, the post content using this BBCode syntax still shows a duplicate. Your real-time wide screen conversion, plus the old BBCode using this syntax.
-QIO_G9gs0A
I'm using these (one at a time):
Replace the $ytpreg = ... line with each one of those:
$ytpreg = "/\[youtube=([a-zA-Z0-9_-]+)\&?\](.*)\[\/youtube\]/i";
$ytpreg = "/\[youtube\]([a-zA-Z0-9_-]+)\&?\[\/youtube\]/i";
Any ideas?
Thanks .. :)
Regards,
Doug
Disasterpiece
04-08-2011, 06:09 PM
hm, try this one, altough it doesn't make any sense:
$ytpreg = "/\[youtube\]([a-zA-Z0-9_\-]+)\[\/youtube\]/i";
Would be great if this also worked in blogs and not just forums
I'd love to, but sadly I don't know which hooks to use. I have no vbcms :(
If anyone offers me admin access to a test installation, I'm able to create a plugin for vbcms too.
BadgerDog
04-08-2011, 08:30 PM
hm, try this one, altough it doesn't make any sense:
$ytpreg = "/\[youtube\]([a-zA-Z0-9_\-]+)\[\/youtube\]/i";
Nope?. thanks for trying .... :)
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 ?
150588: Skipping...
150589: Skipping...
150590: Skipping...
150591: Skipping...
150592: Skipping...
150593: Skipping...
150594: Skipping...
150595: Skipping...
150596: Skipping...
150597: Skipping...
150598: Skipping...
150599: Skipping...
150600: Skipping...
150601: Skipping...
150602: Skipping...
FINISHED 588 runs with 0 queries
Click Here to continue?.
Imbedded BBCodes look like this ..
FM6wHknkAPk
XTGuRgcGujs
Ie88A51IxY4
Regards,
Doug
Randomm
04-08-2011, 11:25 PM
tagged
BTW can you make one with images?
Disasterpiece
04-09-2011, 11:06 PM
Nope…. thanks for trying .... :)
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 …
Imbedded BBCodes look like this ..
FM6wHknkAPk
XTGuRgcGujs
Ie88A51IxY4
Regards,
Doug
And you clicked the link everytime until it has no queries left to run? The link is at the bottom of each page.
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.
tagged
BTW can you make one with images?
Sure
BadgerDog
04-10-2011, 09:36 AM
And you clicked the link everytime until it has no queries left to run? The link is at the bottom of each page.
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.
Yes Sir ... clicked it each time at every 10,000 posts and ran all the way through to the end ...
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
dealzoid
04-14-2011, 05:35 PM
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/standardfeeds/CA/most_viewed?client=ytapi-youtube-browse&alt=rss&time=today
thanks
zelnik
04-16-2011, 12:49 PM
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
BadgerDog
04-16-2011, 07:43 PM
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
Yes, that would be excellent if this mod could support this new YouTube standard ... :up:
Regards,
Doug
Disasterpiece
04-22-2011, 01:45 PM
Supports new youtube links https://vborg.vbsupport.ru/
BadgerDog
04-22-2011, 01:55 PM
Supports new youtube links https://vborg.vbsupport.ru/
Updated to 1.2 with thanks .. :)
Regards,
Doug
zelnik
04-22-2011, 02:11 PM
Brilliant thanks!
theoutlawed
04-22-2011, 03:54 PM
Good stuff, thanks for the update!
blue-c
04-22-2011, 11:07 PM
excellent - works perfectly, thanks
ttran
04-24-2011, 08:08 PM
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
BadgerDog
04-24-2011, 09:07 PM
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
That's a really interesting idea..... :up:
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
Disasterpiece
04-24-2011, 10:44 PM
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":
/<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.
Disasterpiece
05-04-2011, 07:10 PM
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.
I noticed this as well, but I can't explain it yet. Fact is: The mod only replaces the link code to embed code. Maybe for special devices (iphone, smartphones in general) there is a special code necessary.
I'll check this out and keep you posted.
Disasterpiece
05-05-2011, 05:57 PM
Updated to 1.3
Supports mobile devices for flash/embed-less browsers https://vborg.vbsupport.ru/
BadgerDog
05-05-2011, 11:35 PM
Updated to 1.3
Supports mobile devices for flash/embed-less browsers https://vborg.vbsupport.ru/
// P.S.
Vote for me @ MOTM ! (https://vborg.vbsupport.ru/showthread.php?t=262927)
Thank you for all your support! :)
Updated to 1.3 with thanks .. :)
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.
Updated to 1.3
Supports mobile devices for flash/embed-less browsers https://vborg.vbsupport.ru/
// P.S.
Vote for me @ MOTM ! (https://vborg.vbsupport.ru/showthread.php?t=262927)
Thank you for all your support! :)
One of my guys says he now has a link:
Hey, I *do* see a difference on my iPhone! It looks the same on my Chrome browser with a Flash-blocking plugin installed, but on my iPhone I now see a thumbnail image of the video along with a clickable link!
Thanks for the update!
Disasterpiece
05-06-2011, 06:00 PM
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 :)
Juggernaut
05-08-2011, 06:28 AM
Voted for MOTM :D
BadgerDog
05-08-2011, 09:22 AM
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
General Zod
05-08-2011, 12:12 PM
Greta mod working for me on 4.1.3
Disasterpiece
05-08-2011, 03:41 PM
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
I'll test it soon on ipad, I have no access to it yet.
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:
<a href="http://www.youtube.com/watch?v=%1$s">
YouTube Video:<br /><img src="http://img.youtube.com/vi/%1$s/0.jpg" width="240" height="180" alt="Click here to view on youtube" /></a>
This ensures that the browser will display at least something instead of blank space in some cases.
BadgerDog
05-08-2011, 05:58 PM
I'll test it soon on ipad, I have no access to it yet.
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:
<a href="http://www.youtube.com/watch?v=%1$s">
YouTube Video:<br /><img src="http://img.youtube.com/vi/%1$s/0.jpg" width="240" height="180" alt="Click here to view on youtube" /></a>
This ensures that the browser will display at least something instead of blank space in some cases.
Thanks ... :)
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
Disasterpiece
05-08-2011, 06:11 PM
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 :)
BadgerDog
05-08-2011, 06:34 PM
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 :)
Ok... :confused:
That code is exactly what's in that box right now at the last line?
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/%1$s" width="480" height="360">
<param name="movie" value="http://www.youtube.com/v/%1$s" />
<param name="quality" value="high" />
<param name="allowFullScreen" value="true" />
<!-- Fallback content -->
<a href="http://www.youtube.com/watch?v=%1$s">
YouTube Video:<br /><img src="http://img.youtube.com/vi/%1$s/0.jpg" width="240" height="180" alt="Click here to view on youtube" /></a>
</object>
Regards,
Doug
Disasterpiece
05-08-2011, 06:54 PM
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 :)
BadgerDog
05-08-2011, 07:20 PM
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 :)
Ok, I did what you asked and snipped the line above and added it again under the same one that was already there, but I'm still confused as to why I need it twice. Anyway, it still doesn't appear on the iPad, but I've attached a pic of my AdminCP settings, just in case we're talking two different things here .. :D
Regards,
Doug
Disasterpiece
05-08-2011, 08:20 PM
Not under, replace! :D
128919
BadgerDog
05-08-2011, 09:04 PM
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 ...
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/%1$s" width="480" height="360">
<param name="movie" value="http://www.youtube.com/v/%1$s" />
<param name="quality" value="high" />
<param name="allowFullScreen" value="true" />
<!-- Fallback content -->
<a href="http://www.youtube.com/watch?v=%1$s">
YouTube Video:<br /><img src="http://img.youtube.com/vi/%1$s/0.jpg" width="240" height="180" alt="Click here to view on youtube" /></a>
</object>
I then went through the iPhone4 and checked a few other videos that I hadn't done before, particularly some with formats that were different.
ie:
http://www.youtube.com/watch?v=W7pl0-vaCAg
They didn't show up on the iPhone4 or the iPads, I guess because the format is the video BBCode used by vBulletin in a native mode?
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
Disasterpiece
05-08-2011, 09:53 PM
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.
bad2dbone
05-09-2011, 03:40 AM
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?
BadgerDog
05-09-2011, 11:16 AM
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?
Right, but also using vBulletin's [video] function, it doesn't appear on iPhone4's.
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.
Tried that on iPhone4 with mod ON and OFF using standard iPhone Safari browser. vBulletin's [video] function doesn't appear on iPhone4's.
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.
That might be the best thing to do, but it still won't appear if people use the vBulletin [video] BBCode ...
Thanks for your efforts ... :up:
Regards,
Doug
Robbie P
05-09-2011, 12:04 PM
Awesome release, thank you very much!
Disasterpiece
05-09-2011, 04:22 PM
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?
Do you use other modifications which edit the post-display behaviour in some way?
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?
bad2dbone
05-09-2011, 10:39 PM
stays as a link bro
Disasterpiece
05-10-2011, 11:09 PM
Which vbulletin version do you use?
When you click on Addons/Plugins, is the Addon or any of the plugins in the list " disabled "?
goc-forum.de
05-11-2011, 06:21 PM
Is it possible that the code can be edited to display always the best quality (HD version) if the movie has more versions?
Disasterpiece
05-11-2011, 08:17 PM
Only if this information can be obtained without an additional query.
And then, the plugin uses the native vbulletin video functions, if they don't support this, the plugin does neither.
bad2dbone
05-11-2011, 09:10 PM
i fixed it thanks
deinrapde
05-15-2011, 04:56 PM
how can i get this for CMS Theards? If i want a forum theard to CMS Articel?
Disasterpiece
05-15-2011, 05:14 PM
Not right now.
I don't own the cms/blog suite, so I can't code for it :/
deinrapde
05-15-2011, 08:31 PM
ok, no problem might :)
but can you add, AUTO THUMBNAIL from the Youtube Video for a theard thumbnail?? ^^
Disasterpiece
05-15-2011, 09:11 PM
ok, no problem might :)
but can you add, AUTO THUMBNAIL from the Youtube Video for a theard thumbnail?? ^^
I'm not quite sure what you mean
crazymilk
05-19-2011, 11:08 AM
Thanks works a treat
Angelyco
05-21-2011, 10:29 PM
Okay, it's been a really long time since I've made updates to our code. We are currently running version 3.8.2 (the guy who owns the board isn't around much, he hasn't updated in awhile...obviously). Anyway, I imported this as a new "Product" since that's what the Plugin Manager told me to do. I don't know if it's something with the 4+ versions that call it an add-on.
I didn't make any other changes - we don't currently have any video/YouTube tags for the board. When I created a thread with a YouTube link in it, I got this error:
"Fatal error: Call to undefined method vB_BbCodeParser::handle_bbcode_video() in /home/thekryp/public_html/forum/includes/class_postbit.php(294) : eval()'d code on line 14"
I uninstalled it for the time being so nobody else runs into the error. Do I need to do something else to get this to work? Do you have to have other tag info in the code? Or possibly just too old of a version? I didn't want to make too many changes to the code at once, so I figured I'd start here and work backwards if I'm missing something :)
Thank you!
Disasterpiece
05-21-2011, 11:21 PM
The Mod is made vor vbulletin 4 as you can see in the details in the first post, so I give no guarantee that it runs on older versions, now you know why :)
Angelyco
05-22-2011, 12:02 AM
Yep, I did see that, and didn't see anyone else using anything much older to know if it worked or not, so it didn't hurt to ask! So assuming I had a newer version, I wouldn't need to add anything else to the code?
Disasterpiece
05-22-2011, 01:36 PM
in theory, you must check the script files where the according hooks are located and see how video tags are parsed there. Then you replace the function name with the current in the script, which doesn't seem to exist prior to vb4. The rest of the code should be generative enough that it works on vb3 too.
inigo
05-22-2011, 05:14 PM
Great mod,
working without problems, v4.1.2
thanks
Disasterpiece
05-23-2011, 03:15 PM
Updated with version 1.4:
iPad shows replacement properly http://www.innsys.ca/images/icon_check.png
Gamelobby
05-24-2011, 07:54 AM
Possible to do Game Trailers.?
http://www.gametrailers.com/video/debut-teaser-dirt-3/702436
Here is the embed code..
<div style="background-color:#000000;width:520px;"><div style="padding:4px;"><embed src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:702436" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed><p style="text-align:left;background-color:#FFFFFF;padding:4px;margin-top:4px;margin-bottom:0px;font-family:Arial, Helvetica, sans-serif;font-size:12px;">Tags: <a href="http://www.gametrailers.com">GameTrailers.com</a>, <a href="http://www.gametrailers.com/video/debut-teaser-dirt-3/702436">Debut Teaser</a>, <a href="http://pc.gametrailers.com/">PC Games</a>, <a href="http://ps3.gametrailers.com/">PlayStation 3</a>, <a href="http://xbox360.gametrailers.com/">Xbox 360</a></p></div></div>
>> Or is it possible to even just add Game Trailers to work with the Video BBCode Button.?
Thanks
Disasterpiece
05-24-2011, 10:11 AM
Possible to do Game Trailers.?
http://www.gametrailers.com/video/debut-teaser-dirt-3/702436
Here is the embed code..
<div style="background-color:#000000;width:520px;"><div style="padding:4px;"><embed src="http://media.mtvnservices.com/mgid:moses:video:gametrailers.com:702436" width="512" height="288" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="always" base="." flashVars=""></embed><p style="text-align:left;background-color:#FFFFFF;padding:4px;margin-top:4px;margin-bottom:0px;font-family:Arial, Helvetica, sans-serif;font-size:12px;">Tags: <a href="http://www.gametrailers.com">GameTrailers.com</a>, <a href="http://www.gametrailers.com/video/debut-teaser-dirt-3/702436">Debut Teaser</a>, <a href="http://pc.gametrailers.com/">PC Games</a>, <a href="http://ps3.gametrailers.com/">PlayStation 3</a>, <a href="http://xbox360.gametrailers.com/">Xbox 360</a></p></div></div>
>> Or is it possible to even just add Game Trailers to work with the Video BBCode Button.?
Thanks
Hello,
Possible: yes.
But: This would go way beyond the scope of this mod.
If you'd like to have an individual solution, you can contact me via PM.
rhorman
05-25-2011, 10:48 AM
This is awesome! Could you make it so it will center the video? Or where do I change that in the XML?
Thanks!
Disasterpiece
05-25-2011, 01:14 PM
This is awesome! Could you make it so it will center the video? Or where do I change that in the XML?
Thanks!
Open the xml file, search for this code occurence:
$repl[] = $vbulletin->options['pl_ismobile']
? sprintf($vbulletin->options['autoyt_membed'], $v)
: $bbcode_parser->handle_bbcode_video("http://www.youtube.com/watch?v=".$v, "youtube;".$v);
Replace with:
$repl[] = "<center>".($vbulletin->options['pl_ismobile']
? sprintf($vbulletin->options['autoyt_membed'], $v)
: $bbcode_parser->handle_bbcode_video("http://www.youtube.com/watch?v=".$v, "youtube;".$v))."</center>";
3 times.
Not tested but should work.
porschegruven
05-26-2011, 11:19 PM
Cool - here's a link to a slide show:
<embed type="application/x-shockwave-flash" src="https://picasaweb.google.com/s/c/bin/slideshow.swf" width="400" height="267" flashvars="host=picasaweb.google.com&hl=en_US&feat=flashalbum&RGB=0x000000&feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ff eed%2Fapi%2Fuser%2Fnazarenealvin%2Falbumid%2F54408 10094021987121%3Falt%3Drss%26kind%3Dphoto%26hl%3De n_US" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
username: nazarenealvin
albumname: 2010NewCross
Is it do-able?
Is there any chance you can get your plugin to work with Picasaweb slide show? Picasa is Google's photo depository.
Disasterpiece
05-27-2011, 12:08 AM
Sry, this is just not what it's made for. I'll think about it as a separate plugin. In the meantime you can post in the mod request section, maybe someone else picks this up before me.
voter
06-04-2011, 05:53 PM
After update to 4.1.3 all of our previous links based on Passive Video mode (https://vborg.vbsupport.ru/showthread.php?t=188956) were no more useful.
Mode developer is no more "online" and I was already thinking to go "hard steps" replacing in SQL all that urls.
Thanks man, you are our life-guard, now all is working.
COL NIL SATIS
06-05-2011, 08:34 PM
spectacular and so so easy ....superb
CaptCom
06-19-2011, 02:59 PM
Excellent stuff, thank you!!!
Works on 4.1.3 #1
slozz
06-22-2011, 10:43 PM
awesome works like a charm on 4.1.4
Regards,
MySaltyreef
07-09-2011, 11:30 PM
sweet nominated it, very usable hack
DailyAppDream
07-25-2011, 10:12 PM
Hey - I was wondering if it would be possible to get a quick port of this to convert iTunes links into a custom iTunes BB Code as follows?
Convert http://itunes.apple.com/app/consume-mobile-isp-packages/id404175354
to http://itunes.apple.com/app/consume-mobile-isp-packages/id404175354
(Basically replace http://itunes.apple.com with http://itunes.apple.com then put at the next available space).
More than happy to ping over a bit of cash/ make a donation if it's possible?
Let me know.
Cheers,
- Adam G
sdavis2702
07-27-2011, 05:14 PM
Works great on 4.1.4... thanks buddy
titter
08-14-2011, 08:08 AM
Excellent mod.
Any chance to also incorporate some of the other built in video formats? Would be great to see Vimeo especially.
dmandem
08-23-2011, 10:53 PM
Works great on 4.1.5
Thank you.
trackpads
09-18-2011, 12:49 PM
Very nice Thanks!!!!
hoatran
10-02-2011, 12:41 AM
Something going not right here. the first post is OK, but it not work from the second post???
Can anyone help?
Does this work on VB 3.86?
Juggernaut
10-23-2011, 11:45 PM
Something going not right here. the first post is OK, but it not work from the second post???
Can anyone help?
Same problem here.
Disasterpiece
10-24-2011, 01:23 PM
Same problem here.
Can you give me an example link where the problem occurs?
rjmjr69
10-25-2011, 06:44 AM
Works great very speedy and seemless on 4.1.7
spencerp
11-02-2011, 12:08 PM
Hi, I'm trying to use your code to spit out the video's thumbnail which is linked. Like, making a custom bbcode for "youtubepop"
JFwCCL0Vh6U
<a href="http://www.youtube.com/v/{param}.swf"><img alt="YouTube" src="http://img.youtube.com/vi/
{param}/0.jpg" /></a>
Youtube Popup: YouTube ID
Which of course works, now trying to do your plugin as such for Fall back code:
<a href="http://www.youtube.com/watch?v=%1$s">
YouTube Video:<br /><img src="http://img.youtube.com/vi/%1$s/0.jpg" width="240" height="180" alt="Click here to view on youtube" /></a>
Doesn't work. Any suggestions? Doing that example for your own code, still puts out an embedded video... Any thoughts? Or maybe just try the bbcode in there instead of yours? LOL
Disasterpiece
11-02-2011, 01:46 PM
the fallback code only prints, if the detected browser is a mobile browser.
I'm not sure what you're actually trying to accomplish... do you want only the image to be displayed and no embed code at all?
spencerp
11-02-2011, 01:58 PM
the fallback code only prints, if the detected browser is a mobile browser.
I'm not sure what you're actually trying to accomplish... do you want only the image to be displayed and no embed code at all?
Ohhhh okay... But yeah, rather than not have it embed at all, I'd rather it provide a decent sized thumbnail from the video, and make the thumbnail link to video itself.
fishwestend
11-15-2011, 02:00 PM
Like a dream on 4.1.8!
ellinofatsa
11-20-2011, 07:55 AM
working fine on 4,1,8
preemz10314
11-20-2011, 11:20 PM
works. *it will not convert posts before the plugin was installed.
GhostHunter2010
12-31-2011, 03:20 AM
thanks i was looking evrywere for this lol
msotojr
01-04-2012, 11:11 PM
worked perfect :)
Gleedo
01-05-2012, 08:22 PM
Works fine on 4.1.9 - thank you :)
Scyther
01-06-2012, 09:49 AM
one of the best mods!
Thanks, installed + 5 stars + MOTM!
ellinofatsa
01-07-2012, 03:23 PM
not work on vBulletin 4.1.10 Beta 1
Fready
01-07-2012, 03:35 PM
not work on vBulletin 4.1.10 Beta 1
More info would help, how does it not work?
What happens?
Simpled and fantastic - Thanks very much :)
Disasterpiece
01-07-2012, 04:15 PM
not work on vBulletin 4.1.10 Beta 1
It's not supposed to work on Alpha/Beta versions of vb.
Also:
More info would help, how does it not work?
What happens?
^this
Fready
01-07-2012, 04:28 PM
I've just tested it on vb 4,1,9 and it doesn't work, it just shows the url, i have it installed on 4.1.5 and it works fine.
So yes, I guess 4.1.10 and 4.1.9 it doesn't work.
Any help with this?
Disasterpiece
01-07-2012, 04:37 PM
Works fine on 4.1.9 - thank you :)
I've just tested it on vb 4,1,9 and it doesn't work, it just shows the url, i have it installed on 4.1.5 and it works fine.
So yes, I guess 4.1.10 and 4.1.9 it doesn't work.
Any help with this?
Apparently there are others where the plugin runs just fine.
Some thoughts:
- Do you have any other plugins which might interfere with postings somehow? Did you try to disable all other plugins and it still doesn't work?
- Is the problem only with the wysiwyg editor? Or doesn't get it replaced at all?
Fready
01-07-2012, 04:44 PM
Worked it out now.
This url doesn't change it into a video
http://www.youtube.com/watch?feature=player_embedded&v=106JTwlD3Cc
But this same youtube video using this url does work and change it into a video
http://www.youtube.com/watch?v=106JTwlD3Cc
It was to do with the difference in url, not sure why though
savraot
01-21-2012, 05:51 AM
Works fine on vb 4.1.10.
Thanks a Lot :-)
New Joe
01-21-2012, 06:09 AM
I noticed if you change from the
Enhanced Interface - Full WYSIWYG Editing
to the
Standard Editor - Extra formatting controls
it doesn't convert
Any workaround for this?
dsantana
02-03-2012, 11:09 PM
Thanks man... Works real well!!!
Trevor Matthews
02-05-2012, 08:37 PM
Installed and working on 4.1.10
Thank you very much, this will save me ages correcting links from my lazy members :D
normalize
02-06-2012, 03:44 AM
Thanks a lot.
mystiksven
02-06-2012, 09:20 AM
This is cool :cool:
Many Thanks!
:p
Alshain2
02-11-2012, 07:01 PM
Thanks, it works fine
But how about making the same thing for the image links ! is there any mod for that ?
For example by adding the IMG vB code to every link ending with .jpg
rr2000
02-12-2012, 03:05 PM
Some of my forum members want to leave the links as is - especially when there are many vid links. Is there a way (spl tag) to keep the links as is?
Disasterpiece
02-12-2012, 03:26 PM
Some of my forum members want to leave the links as is - especially when there are many vid links. Is there a way (spl tag) to keep the links as is?
This is a planned feature. For now it should work if you remove the www. from the youtube url
tortuga2
02-12-2012, 03:51 PM
works perfectly. thanks!
TombstoneWarrior
02-13-2012, 01:08 AM
can someone explain a bit better what this mod does to the forum??????? please iv read it a few times and just unsure exactly what this mod does. someone please help!!!!!!!
Disasterpiece
02-13-2012, 01:58 PM
Check out the attachment, it should explain everything:
136443
New Joe
02-13-2012, 03:01 PM
I still find it temperamental, not all urls get converted from youtube videos, some just sow a link while other convert.
Example this one doesn't convert
http://www.youtube.com/watch?feature=player_embedded&v=ERem3t768wI
Pepperpeanut
02-13-2012, 11:24 PM
Installed on 4.1.10 and it works like a charm. Thank you!
New Joe
02-14-2012, 03:47 AM
Installed on 4.1.10 and it works like a charm. Thank you!
So if you use the youtube url i posted above your post it converts it does it?
CharlieDelta
02-14-2012, 03:08 PM
I still find it temperamental, not all urls get converted from youtube videos, some just sow a link while other convert.
Example this one doesn't convert
http://www.youtube.com/watch?feature=player_embedded&v=ERem3t768wI
I have the same problem. This link does not work for me either.
New Joe
02-15-2012, 02:59 AM
I have the same problem. This link does not work for me either.
That's just one link of many Youtube links that don't work with this modification.
Moncha
02-15-2012, 02:26 PM
So if you use the youtube url i posted above your post it converts it does it?
It does, if you use the propper URL from the Share box.. However, posted like it is, it does not.
muratcan25
02-15-2012, 09:57 PM
Thank You
New Joe
02-16-2012, 01:04 AM
It does, if you use the propper URL from the Share box.. However, posted like it is, it does not.
You're right, thanks for that, I usually just use the url but using the share link worked fine.
jetkai
02-19-2012, 04:07 PM
Thanks, this worked fine.
Dwarden
02-21-2012, 12:55 PM
tried to use it on 4.1.10,
sadly it negates the modification which we use to remove quoted YT videos
https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=LAM_QuoteImg2URL
anyone got tips or solution how to make them coexist ?
BossLady
02-23-2012, 05:02 PM
awesome!!
GoMaX
02-24-2012, 12:32 PM
Thank you very much!
TombstoneWarrior
03-09-2012, 02:00 PM
Check out the attachment, it should explain everything:
136443 Thanks for the pics great way to explain!!!:up:
TombstoneWarrior
03-09-2012, 09:53 PM
why need this mod when vb has the convert video bbcode? i was gonna have it installed but was talked out of it because of the feature that vb ofears. Was i right to lisen vb 4.1.9 is my version. would love to go to 4.1.11, but i have over 20 mods and dont want to loose any of the work done with these mods!! :(
Moncha
03-12-2012, 05:36 PM
It makes it so the users don't have to use the [video] embed code, they can just put in the URL and the mods automatically inserts the [video] code
Princezz
03-21-2012, 09:16 PM
Perfect! Works 1000% :D great job , thanks.
Akyeame Kwame
03-30-2012, 09:43 PM
Nominated for MOTM. AME's tool couldn't fully convert but this did the job.
Quickness
05-02-2012, 01:50 PM
As long as the format is:
http://www.youtube.com/watch?v=#####&feature=####
It will be fine. However, sometimes links look like this:
http://www.youtube.com/feature?v=#####&watch=####
And this is when this mod doesn't convert the link.
Disasterpiece
05-02-2012, 02:37 PM
As long as the format is:
http://www.youtube.com/watch?v=#####&feature=####
It will be fine. However, sometimes links look like this:
http://www.youtube.com/feature?v=#####&watch=####
And this is when this mod doesn't convert the link.
Never seen this url. Maybe this might work:
Go to Settings > Auto Youtube Link Converter, change the following values:
As new regex code:
/<a href=\"https?:\/\/((.+\.youtube\.com\/((watch)|(feature))\?v=)|(youtu\.be\/))([a-zA-Z0-9-_]+)(.*)?\"( target=\"_blank\")?>.*<\/a>/
As new regex position: 7
Onkeltyson
05-05-2012, 11:41 AM
Very Nice :)
chrisbeau
05-13-2012, 06:07 PM
Nice, any possibility of making it convert the links on the vbadvanced page ?
marccap
05-13-2012, 06:39 PM
Added and install - Thanks
gremrock
05-23-2012, 03:27 PM
Thanks
BAMGADE800
05-24-2012, 12:40 AM
Excellent! Very nice!
Jncocontrol
05-24-2012, 08:04 AM
not to be rude, But isn't this pretty much what AME does?
Disasterpiece
05-24-2012, 05:11 PM
not to be rude, But isn't this pretty much what AME does?
Basically yes, but less bloated I think. For people who just need youtube embeds.
Pick the one you need/want, altough it is fact that you become more beautiful and intelligent if you pick my modification over AME.
karkey
05-25-2012, 04:35 PM
XML Error: no element found at Line 0 when importing the XML file from your server
jca2112
05-25-2012, 05:40 PM
not to be rude, But isn't this pretty much what AME does?
AME (AME3 - Auto Media Embeding and Video Extender) hasn't been updated in over 2 years, isn't supported, and requires a forum user submitted "hack" in order to work (which isn't necessarily a good thing to rely on).
So it appears AME is no longer being developed.
If this mod could continue where AME has left off (auto linking other video sites, and more importantly, capture/regrex page titles for using in the video url linking), that would be awesome. :)
Disasterpiece
05-26-2012, 06:47 PM
XML Error: no element found at Line 0 when importing the XML file from your server
Are you sure the xml file downloaded correctly and is not empty?
You could try to remove blank lines and whitespaces in the first and last lines, but apparently in all other vbulletin versions, this mod works. Not sure what could be wrong with your vb installation
karanyaphong
06-11-2012, 11:30 AM
Excellent!
work on 4.2
Romamo
07-03-2012, 05:19 AM
Perfect product!
But why this one ignores forum permission "Allow [VIDEO] tag"?
Raptor
07-15-2012, 10:57 PM
Works great in 4.1.2
I had to ditch AME3 as it was causing our vb4 to load MASSIVELY and we have a huge dedicated server with just our VB on there (almost 2 million posts and over 55,000 members - so those that say AME3 is working just fine for vb4 are talking sh!t or doesn't have a busy board) - used it on vb3.x for years with no issues - a shame cus it was a really great mod and is hugely underrated as being useful for vb4 - just becuase vb4 has a video button doesn't mean its bloated and an extra step in the posting process)
thanks so much for this script - its very leans and is a great base for doing similar parse requirements too. I also like the mobile browser detected snippet - will come in handy.
Thanks again.
Mechanixtrg
07-22-2012, 10:34 PM
Hi man, great mod, but i need change the size of the youtube window, how i do?
Disasterpiece
07-23-2012, 05:03 PM
Hi man, great mod, but i need change the size of the youtube window, how i do?
Since the mod uses the default vbulletin functionalities for the actual embedding, maybe your vbulletin options should help.
Eagle Eyes
07-24-2012, 09:43 PM
Is it working for the 4.2?
CharlieDelta
07-25-2012, 03:15 PM
Is it working for the 4.2?
It sure does. :)
imported_dfmafia
07-28-2012, 09:40 PM
works like a champ; vB 4.2.0 PL 2
thanks, i was missing AME
KrU$ty
08-07-2012, 03:27 AM
Dev: You mentioned earlier that you would be willing to fix CMS/VbaCMPS functionality, (links don't parse into videos), if you were given admin access to a forum with those features. I'm willing to give said access if it means it will work in these areas.
Disasterpiece
08-07-2012, 06:32 AM
Dev: You mentioned earlier that you would be willing to fix CMS/VbaCMPS functionality, (links don't parse into videos), if you were given admin access to a forum with those features. I'm willing to give said access if it means it will work in these areas.
Sure, that would help.
KrU$ty
08-07-2012, 08:15 AM
I've PM'ed you the details.
newguy
10-15-2012, 09:19 AM
Thanks so much!
jaffaman
10-15-2012, 03:08 PM
Installed & working fine cheers :)
autoescala
10-23-2012, 01:04 PM
Thanks!!!! very useful, nominated!
Budabing
10-30-2012, 05:30 AM
Installed on vB4.2 from my Galaxy S 1 mobile phone!
Installed and working great, Thanks. Nominated :up:
testerv
11-26-2012, 04:15 PM
Would it take a lot of work to make this work in vb 3.8.x?
wally07
11-26-2012, 07:14 PM
this works perfectly on 4.2 patch level 2.
Thank you!
Disasterpiece
11-26-2012, 07:15 PM
Would it take a lot of work to make this work in vb 3.8.x?
I would even go so far as to claim it works in vb3 as well. The way the post system works hasn't changed much.
Would you want to try it out on a test forum if it works?
testerv
11-26-2012, 08:55 PM
I'd give it a try.
djbaxter
11-29-2012, 01:46 PM
This add-on breaks the built-in vBulletin video bbcode for Facebook videos: see Posting videos from facebook (https://www.vbulletin.com/forum/showthread.php/411593-Posting-videos-from-facebook).
Disasterpiece
11-29-2012, 08:36 PM
This add-on breaks the built-in vBulletin video bbcode for Facebook videos: see Posting videos from facebook (https://www.vbulletin.com/forum/showthread.php/411593-Posting-videos-from-facebook).
Hum, people actually use facebook videos and post them on forums? Silly world.
Jokes aside, I'll see what I can do.
ehmud
12-01-2012, 04:58 AM
Great it is :)
PoorGuysGarage
12-26-2012, 05:07 PM
installed, works perfect. Thank you!
Naijasite
12-26-2012, 06:31 PM
wooo thanks works perfectly
littlebigdunc
12-27-2012, 09:46 PM
wow this is amazing nice work :)
justicechick
01-06-2013, 07:18 PM
I had this installed in my vb 4.2 and it was working great, then it suddenly stopped working.
GameOverViper
01-06-2013, 08:43 PM
I had this installed in my vb 4.2 and it was working great, then it suddenly stopped working.
Its still working fine for me on YouTube Gaming (http://www.youtubegaming.com). Make sure your using the Share URL under the videos and not the browser URL.
justicechick
01-07-2013, 06:16 AM
Its still working fine for me on YouTube Gaming (http://www.youtubegaming.com). Make sure your using the Share URL under the videos and not the browser URL.
Thanks that was what it was. I need to remember to share that with my members.
uarujoey
02-07-2013, 01:53 AM
Great product. I have had it for a several months now. I have always used the URL for the youtube video however and it worked fine.
Today, with out any changes made what so ever.... the videos stopped displaying... just a blank space.
Any ideas? This happened on 2 of my forums.
felixxx999
02-07-2013, 02:22 AM
happened to me too! no videos!
same here, what's happening?
working now :) maybe youtube went down for a bit?
dizzynation
02-07-2013, 03:51 AM
I dont even use this and it happened to my embedded videos as well, So i think it was youtube.
I agree because after checking, I am not using this plugin either.
Hope it was just a once in a lifetime issue. :)
Disasterpiece
02-07-2013, 12:14 PM
Judging by your conversation, it may have been a youtube related issue. If the problem occurs again, try deactivating the plugin to check if it's really the plugins' fault, if so, post here again.
BadgerDog
02-27-2013, 11:46 AM
We've been running this add-on since the beginning and it's been great !!
For some reason, we've started getting complaints from some members running Windows 7 and various IE versions, that all they get is a blank white window where video should appear..
Although I only use FireFox, Safari and Chrome on a MacBook Pro computer, I decided to start up a PC under Windows 7 using IE10 and sure enough, I get the same problem members have reported. I've attached a pic and you can see with the Windows 7 and IE10 combo, I get a blank white screen pic, although the video briefly flashes and appears before that happens, then there's a string of HTML code that is show to the bottom right of the empty video box.
Any ideas how to fix this?
Thanks .. :)
Regards,
Doug
Disasterpiece
02-27-2013, 12:05 PM
Did you change anything in the settings?
Do you use any other mods which might perform changes on the html source code?
The bugged-out html code isn't part of my mod. I just checked with IE8 and a vanilla mod-installation.. works fine for me.
BadgerDog
02-27-2013, 12:13 PM
Did you change anything in the settings?
Do you use any other mods which might perform changes on the html source code?
The bugged-out html code isn't part of my mod. I just checked with IE8 and a vanilla mod-installation.. works fine for me.
No, didn't change any settings that I'm aware of..
The only odd thing is that it appears in a thread where some posters used the built-in vBulletin [video] bbcode and your add-on code also was used...
Perhaps a conflict with [video] bbcode? Is there someplace I can disable that built-in code to test that possibility?
I tested it with IE8 and XP as well and it worked fine...
Something odd about Windows 7 and IE10 rendering?
Thanks for your help ..
Regards,
Doug
Disasterpiece
02-27-2013, 01:05 PM
The thing is, I don't use IE at all, therefore I don't optimize anything for it since it's just a bad product. I assume the IE10 render engine does some stuff on its own and inserts some kind of additional code which messes up the site. I see what i can do, but don't expect miracles :)
In the meantime, suggesting a better browser to your forum users might be healthy as well.
BadgerDog
02-27-2013, 01:12 PM
The thing is, I don't use IE at all, therefore I don't optimize anything for it since it's just a bad product. I assume the IE10 render engine does some stuff on its own and inserts some kind of additional code which messes up the site. I see what i can do, but don't expect miracles :)
In the meantime, suggesting a better browser to your forum users might be healthy as well.
Thanks .. appreciate it .. :)
Is there any place I can turn OFF the vBulletin [video] bbCode function? I've looked everywhere and can't seem to locate a place where that's handled..
This seems to be the code that's hanging losse from the blank white video box:
"<![endif]-->" origwidth="640" origheight="385" aspect="1.66233766233766"
Regards,
Doug
EliasAlucard
02-28-2013, 02:24 PM
This is a good plugin, but a few issues:
1) It should conform tp vB4.2 (I know it works fine, but still).
2) When one creates a YouTube link with text, this plugin shouldn't automatically convert it to an embedded videos.
Thanks.
dizzynation
02-28-2013, 07:34 PM
Works perfect vb 4.2 PL3
inigo
03-05-2013, 07:28 AM
I have a problem with new links:
http://youtu.be/f5FP2ty_J-w
It doesn't be recognised and changed to play the video,
Any help?
Thanks!
tarun_ce
03-17-2013, 02:17 PM
awesome
Is there any solution to the "related videos" that pop up at the end of the embedded youtube videos? Some of them are downright raunchy and inappropriate for our forum. I see that if you use the embed code that you can suppress the related videos, but not with the "share" code which works with this mod.
Disasterpiece
03-18-2013, 07:58 PM
I guess you could look if a specific parameter suits your needs: https://developers.google.com/youtube/player_parameters#Parameters
But that's not in the scope of the mod really.
JohnnieOO
04-25-2013, 02:09 AM
Is there a similar version of the old passive vid which played almost any popular video host in the post? This seems to be a good start.
Any problems with this mod and Vb 4.2.1 ?
Thanks,
Johnnie
djbaxter
04-25-2013, 03:02 AM
Is there a similar version of the old passive vid which played almost any popular video host in the post? This seems to be a good start.
Any problems with this mod and Vb 4.2.1 ?
Thanks,
Johnnie
Yep. It interferes with a couple of basic vBulletin functions in any vB4 version, including some of the built-in video functions.
Hi,
I was wondering if anyone could help me with this. Everything works perfectly fine - I run 4.2.0 PL3, but when the format is like this:
http://www.youtube.com/watch?feature=player_embedded&v=
it doesn't convert. I would be grateful if you could help me on this one.
Thank you in advance!!! :)
GameOverViper
07-02-2013, 09:56 PM
Hello, I use this mod on my forum www.youtubegaming.com and it has worked perfectly for me.
I have one suggestion/question about it. Can I make this so it works in specific forums by forum ID's or another way? How do I do this if its possible?
Also, do you do any other vbulletin YouTube API work that you'd be willing to do on the side?
Thanks, Chris
Disasterpiece
07-02-2013, 10:09 PM
Hello, I use this mod on my forum www.youtubegaming.com and it has worked perfectly for me.
I have one suggestion/question about it. Can I make this so it works in specific forums by forum ID's or another way? How do I do this if its possible?
Also, do you do any other vbulletin YouTube API work that you'd be willing to do on the side?
Thanks, Chris
I can take on some contract work if you're willing to spend some $$. Just send me a pm with your specifications. The more detail, the better.
GameOverViper
07-02-2013, 11:08 PM
I can take on some contract work if you're willing to spend some $$. Just send me a pm with your specifications. The more detail, the better.
I will PM you now, but do you mind answering the other question about making the mod work for specific forums?
Disasterpiece
07-03-2013, 12:16 AM
It is possible with a few lines of code, yes. But it is not planned as a feature right now, because the addon aims to be as simple as possible.
If you were to purchase a contract work from me, I'd be willing to add the feature extension for the youtube addon on top of it. Just add a note to your pm.
GameOverViper
07-06-2013, 12:41 AM
I sent you a PM. Just waiting on a response whether your interested or not.
ar15dcm
08-06-2013, 01:42 AM
I installed it just fine... but... it no workie...
[EDITED]
update... well it started working out of the blue... I guess nevermind..
ar15dcm
08-07-2013, 03:13 PM
Hello,
I got this work in the forum posts, but is it supposed to work in CMS articles?
Thanks,
MahdyE23
08-08-2013, 03:52 AM
So, what section would that code be added in? Thanks!
ar15dcm
08-08-2013, 10:34 PM
What would be easier, adding the CMS functionality to this mod, or creating a separate mod to handle video links in the CMS?
I.G.O.T.A.
08-17-2013, 12:18 PM
Installed.
Works perfectly on 4.2.1.
Thank you!
Wajow-community
10-15-2013, 10:58 AM
Thnx!!! This is what i have searched. installed.
tnsgaming
10-18-2013, 08:12 PM
Great plugin. Works great.
SupportAM
10-30-2013, 03:08 AM
will that work for 3.6.7 ?
alexm
11-17-2013, 06:18 PM
Hi,
I was wondering if anyone could help me with this. Everything works perfectly fine - I run 4.2.0 PL3, but when the format is like this:
http://www.youtube.com/watch?feature=player_embedded&v=
it doesn't convert. I would be grateful if you could help me on this one.
Thank you in advance!!! :)
This is the Regex I'm using:
/<a href=\"https?:\/\/(([a-zA-Z]{0,3}.youtube\.com\/watch\?(.+?&)?v=)|(youtu\.be\/))([a-zA-Z0-9-_]+)(.*?)?\"( target=\"_blank\")?>.*?<\/a>/s
Position Index: 5
Takes care of some of the "feature" parameters that crop up in URL's and also new lines that can happen inside a href tags when a link is copied from some browsers
peril
11-17-2013, 10:54 PM
works great on 4.2.2. Thanks.
Disco_Dave
05-12-2014, 03:32 PM
Great mod, but for some reason this has stopped working for us. using vB4.2.2
**sorry got it sorted**
409industries
08-05-2014, 04:58 PM
Marked as installed. Works as advertised... thank you! (vb 4.2.2)
yotsume
10-20-2014, 11:56 AM
Installed and works perfectly on vBulletin 4.2.2 Patch Level 1https://vborg.vbsupport.ru/external/2014/10/7.jpg (http://www.vbulletin.com/)
Linkeb3
04-07-2015, 08:20 PM
can we get an update?
Disasterpiece
04-07-2015, 08:23 PM
can we get an update?
I'm not up to speed. What changed? What needs to be upgraded?
mykkal
05-17-2015, 12:16 AM
Does this work on vb 4.2.3?
puertoblack2003
05-19-2015, 12:25 AM
I'm not up to speed. What changed? What needs to be upgraded?
new api 3.0
mykkal
05-19-2015, 01:13 AM
Yea they just released a new api so they may deprecate stuff. But honestly, if this worked with vimeo and brightcove links you'd have the whole world covered :)
mapleleaffans
06-27-2015, 03:49 AM
This is a great mod, thank you!
Duke49th
02-22-2016, 03:31 PM
Great Mod.
Just one thing:
Using Youtu.be Links directly into [video] bbcode (for example with the Editor Button) - it still brings errors.
If I just put the link into the post - it converts it correctly.
If you can change/fix that issue - its perfect :) I then give 5 stars and nomiate it :D (not rated yet...dont know if I can change my rating later)
dachkraxler
03-06-2016, 05:39 AM
Funktioniert super mit dem VB4.2.2 Patch Level 4
Danke!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.