vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   [videos] vs. [youtube] (https://vborg.vbsupport.ru/showthread.php?t=240598)

TomBayer 04-16-2010 06:32 PM

[videos] vs. [youtube]
 
I searched for a good while but found nothing I was able to use for what I am looking for so please bear with me if I overlooked a valid entry. The members of our Forum have made heavy use of a custom youtube bb code in the past. After upgrading to 4.0.3, I fear to run an SQL query to replace the old tags with the new one because I have read a few postings where people had problems. So for now, I have added this custom bb code in the BB Code Manager:

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

It works as long as people ONLY posted the end of the video link. If they included the full URL, I only see a white page. So for example [YOUTUBE]NUx66ZEDjnQ[/YOUTUBE] works and the video from the old posting is displayed but http://[YOUTUBE]http://www.youtube.c...?v=NUx66ZEDjnQ[/YOUTUBE] doesn't. Is there any way that both ways of providing the video URL are supported with a Custom BB code? I would love to see all old posts work again and to encourage people to use the new [video] tag from now now. But I am not that good in coding so I need a Dumbo solution lol. Thanks in advance for your help.


All times are GMT. The time now is 09:01 AM.

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.00980 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete