vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Auto Youtube Link-Converter (https://vborg.vbsupport.ru/showthread.php?t=261296)

BadgerDog 05-05-2011 11:35 PM

Quote:

Originally Posted by Disasterpiece (Post 2192372)
Updated to 1.3

Supports mobile devices for flash/embed-less browsers https://vborg.vbsupport.ru/


// P.S.

Vote for me @ MOTM !
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.

grc 05-06-2011 05:43 PM

Quote:

Originally Posted by Disasterpiece (Post 2192372)
Updated to 1.3

Supports mobile devices for flash/embed-less browsers https://vborg.vbsupport.ru/


// P.S.

Vote for me @ MOTM !
Thank you for all your support! :)

One of my guys says he now has a link:
Quote:

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

Quote:

Originally Posted by BadgerDog (Post 2193238)
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:
HTML 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>

This ensures that the browser will display at least something instead of blank space in some cases.

BadgerDog 05-08-2011 05:58 PM

Quote:

Originally Posted by Disasterpiece (Post 2193337)
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:
HTML 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>

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

Quote:

Originally Posted by Disasterpiece (Post 2193382)
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?

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>

Regards,
Doug


All times are GMT. The time now is 01:10 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
  • Page Generation 0.01496 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete