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)

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

1 Attachment(s)
Quote:

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

1 Attachment(s)
Not under, replace! :D

Attachment 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 ...

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:

Code:

[video=youtube;W7pl0-vaCAg]http://www.youtube.com/watch?v=W7pl0-vaCAg[/video]
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

Quote:

Originally Posted by Disasterpiece (Post 2193450)
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.

Quote:

Originally Posted by Disasterpiece (Post 2193450)
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.

Quote:

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

Quote:

Originally Posted by bad2dbone (Post 2193528)
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


All times are GMT. The time now is 06:30 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.01373 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_code_printable
  • (5)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