vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   [BB Code] YouTube embedded video (https://vborg.vbsupport.ru/showthread.php?t=111386)

The Notorious 11-11-2006 01:53 AM

Here's a better version for the button image, right size.
http://img135.imageshack.us/img135/5615/youtubefs1.jpg

snobird1211 11-30-2006 10:42 AM

great thanks installed other one was too much all i need is you tube

perfphysio 12-05-2006 09:57 AM

My you tube BB Code has stopped working in 3.6.4 in firefox browser 1.5.0.8

It mall formats the actual link. You can see an axample at the beginning of an existing post at http://www.physiobob.com/forum/showthread.php?t=3510

The first word was a link working perfectly until a recent upgrade. This might be a firefox issue or it might be a vbulletin issue. This is because I also have now seen that my plugin which does the same thing for adding utube plugins is also asking to install a plug to make it work!

I attach a screen shot of that as well for you interest in case it help to work out where the issue might be coming from.

Reverend 12-05-2006 05:32 PM

Quote:

Originally Posted by perfphysio (Post 1132318)
My you tube BB Code has stopped working in 3.6.4 in firefox browser 1.5.0.8

It mall formats the actual link. You can see an axample at the beginning of an existing post at http://www.physiobob.com/forum/showthread.php?t=3510

The link in that post that you mention is unresolvable, and why is there an asterisk in it?

http://www.physiobob.com/forum/*http://en.wikipedia.org/wiki/Plantar

And what exactly has that problem got to do with this YouTube Mod??

perfphysio 12-05-2006 05:57 PM

Quote:

Originally Posted by Reverend (Post 1132579)
The link in that post that you mention is unresolvable, and why is there an asterisk in it?

http://www.physiobob.com/forum/*http...g/wiki/Plantar

And what exactly has that problem got to do with this YouTube Mod??

This is the BUG/Issue. This is therefore not working any longer in IE or Firefox. The link is not resolving correctly for wikipedia? I have no idea why there is a * in there? Also the end should say Plantar_fasciitis in the link not just Plantar

Nuguru 12-07-2006 06:44 PM

Quote:

Originally Posted by Nxs (Post 1042982)
Installed over "anymedia" after all why use a sledgehammer on a small nail.

Changed the BBcode tho, may be of use to others so posted it here (we also take advantage of autoplay the video is not played until the user clicks AGREE to a small disclaimer. Some code borrowed from the anymedia plugin so credit where its due :)

Code:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="466">
  <tr><td class="smallfont"><strong>IMPORTANT NOTICE:</strong> No media files are hosted on these forums. By clicking the link below you agree to view content from an external website. We can not be held responsible for the suitability or legality of this material.</div></td></tr>
  <tr><td class="smallfont" align="right"><a href="#" onclick="return toggle_collapse('{param}')"></a><a href="#" onclick="return toggle_collapse('{param}')"> I AGREE</a></td></tr>
  <tbody id="collapseobj_{param}" style="display:none;"><tr><td class="alt1" align="center"><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}&autoplay=1"></param><embed src="http://www.youtube.com/v/{param}&autoplay=1" type="application/x-shockwave-flash" width="425" height="350"></embed></object></td></tr></tbody>
</table>

Normal
http://www.spellfire.co.uk/misc/image1.gif


After clicking 'AGREE'
http://www.spellfire.co.uk/misc/image2.gif
p.s. Power Rangers rule :)



Hello,

For some reason videos were not showing up when using the initial code so I installed this and now the videos show up great in firefox.

Thanks, this worked great for fixing the firefox problem. Now off to test opera. Boy, I hope it works.

Nuguru :)

darkdiver 01-03-2007 07:38 PM

Nice thing, but how can i restrict some Forums to allow or not to use this code. I woud like to have same control about this funktion like the "img" bb-code.

Regards
Eric

jddphd 01-06-2007 04:38 PM

Recommendation -

When you post a Youtube video near the top of a thread (I'm using the legacy postbit too) and subsequently try to use the Thread Tools drop down to edit/stick/whatever, the menu drops down behind the YouTube layer.

One of my admins suggested the following alteration:

Code:

<object width="425" height="350"><param name="wmode" value="transparent"></param><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed wmode="transparent" src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

Silviu 01-09-2007 02:04 PM

Here's a 100$ question :)

Is there any way to "hide" the YouTube video under a button, like a spoiler tag for instance? Here's an example of what I mean:

http://forum.computergames.ro/11-rpg...l#post36649080

The Spoiler tag code looks like this:

<div class="spoiler" style="display:inline"><input type="button" class="button" onClick="showSpoiler(this);" value="Show spoiler: {option}"> <span class="content" style="display:none">{param}</span></div>

And the example: [spoiler=My movie Title]My neat spoiler[/spoiler]

Any help would be greatly appreciated :o

caliman 01-11-2007 04:07 AM

I have an idea as well.

There is a perfect compliment to this mod.
We need to figure out how to add the YouTube button as an Icon on the forum index next to posts that have videos embedded in them.


I brought this up in the mod suggestion forum recently.

Much like the paperclip shows up for attachments.

SOMEBODY HELP! THIS WOULD BE GREAT, NO?

:)


All times are GMT. The time now is 12:41 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.01287 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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