vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   BBcode you tube (https://vborg.vbsupport.ru/showthread.php?t=207440)

c.c. 03-25-2009 03:34 PM

Quote:

Originally Posted by Lynne (Post 1776732)
You need to use all the other code there too. If it doesn't work, you'll have to look at your page source and see what is going on.

What other code?

What I posted would be the full code...

Lynne 03-25-2009 04:09 PM

What you posted in post 9 is NOT the full code. You need to add it in place of the same stuff in post 6/7. If that is still not working, then you need to post *exactly* what you have put into the bbcode and *exactly* what is showing up in your page source or we can't help you.

c.c. 03-25-2009 04:25 PM

This is the full code I currently use:

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


This works fine, but I want to input the full youtube url instead of everything after the = sign. How do I change this code to do that?

So right now I embed youtube videos like this:

http://www.youtube.com/watch?v=QjH66...ture=rec-HM-r2


[youtube]QjH66uTE0Tk&feature=rec-HM-r2[youtube/]

I want to embed like this:

[youtube]http://www.youtube.com/watch?v=QjH66uTE0Tk&feature=rec-HM-r2[youtube/]

How do I change my current code to accomplish this goal?

Lynne 03-25-2009 07:36 PM

Use the code I posted and then just do a simple Replacement variable to find "http://www.youtube.com/watch?v=" and replace with "http://www.youtube.com/v/"

c.c. 03-26-2009 11:11 AM

Quote:

Originally Posted by Lynne (Post 1776929)
Use the code I posted and then just do a simple Replacement variable to find "http://www.youtube.com/watch?v=" and replace with "http://www.youtube.com/v/"

I'm sorry if I sound like a idiot, but where is the code you posted?

I don't see "http://www.youtube.com/watch?v=" anywhere in my code to replace with"http://www.youtube.com/v/"

I know this is simple, but I'm obviously missing something in translation. Can you dumb it down for my purposes? I'd really appreciate it.

Lynne 03-26-2009 02:02 PM

In post 8/9. I said what to do in 8 - you showed it in code form in 9.


All times are GMT. The time now is 03:02 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.01153 seconds
  • Memory Usage 1,727KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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