Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-05-2009, 03:41 PM
dxflw dxflw is offline
 
Join Date: May 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default BBcode you tube

How do i add custom bbcode for youtube links but only for the full youtube URL
i.e.: http://www.youtube.com/watch?v=rxVS5nYFnkA

I don't mean the the last part of the URL(i.e.:rxVS5nYFnkA)

I search the vbulletin.org but i find bbcode only for the last part of the youtube url.

I don't wanna use any addo'n i want use a custom bbcode about.
Reply With Quote
  #2  
Old 03-05-2009, 03:44 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you try doing a search here? There are several different bbcodes in the mods forum for youtube links.
Reply With Quote
  #3  
Old 03-06-2009, 11:49 AM
dxflw dxflw is offline
 
Join Date: May 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes i search the vbulletin.org but the only i found is not for the full URL but is only for the last part of the URL i.e. [youtube]fdhjkaa[/youtube]
I want to use it with the full URL i.e. [youtube]http://www.youtube.com/watch?v=rxVS5nYFnkA[/youtube]
Reply With Quote
  #4  
Old 03-06-2009, 01:53 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Modify it to do what you want.
Reply With Quote
  #5  
Old 03-06-2009, 01:58 PM
Spank Spank is offline
 
Join Date: Jan 2007
Location: Scotland
Posts: 809
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AME does what you want. Works with youtube and loads of other sites.

https://vborg.vbsupport.ru/showthread.php?t=195884
Reply With Quote
  #6  
Old 03-06-2009, 04:57 PM
ZombieAndy's Avatar
ZombieAndy ZombieAndy is offline
 
Join Date: Oct 2004
Location: UK
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can make a simple edit to the standard code to make it accept the full URL instead of just the code, for example my youtube vid code is:

PHP Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="1">
<
tbody>
<
tr>
<
td class="tcat" colspan="2">
<
div align="left"><a target="_blank" href="http://uk.youtube.com/watch?v={param}">Youtube Video</a></div>
</
td>
</
tr>
</
thead>
<
tr>
<
td class="alt2" colspan="2"><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="395" height="331"></embed></object><br>
</
td>
</
tr>
</
tbody>
</
table
That just uses the video code from the end of the URL, but you could edit it to

PHP Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="1">
<
tbody>
<
tr>
<
td class="tcat" colspan="2">
<
div align="left"><a target="_blank" href="{param}">Youtube Video</a></div>
</
td>
</
tr>
</
thead>
<
tr>
<
td class="alt2" colspan="2"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="{param}" type="application/x-shockwave-flash" width="395" height="331"></embed></object><br>
</
td>
</
tr>
</
tbody>
</
table
And that will now take the full URL instead.

Reply With Quote
  #7  
Old 03-25-2009, 11:58 AM
c.c. c.c. is offline
 
Join Date: Jan 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ZombieAndy View Post
You can make a simple edit to the standard code to make it accept the full URL instead of just the code, for example my youtube vid code is:

PHP Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="1">
<
tbody>
<
tr>
<
td class="tcat" colspan="2">
<
div align="left"><a target="_blank" href="http://uk.youtube.com/watch?v={param}">Youtube Video</a></div>
</
td>
</
tr>
</
thead>
<
tr>
<
td class="alt2" colspan="2"><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="395" height="331"></embed></object><br>
</
td>
</
tr>
</
tbody>
</
table
That just uses the video code from the end of the URL, but you could edit it to

PHP Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="1">
<
tbody>
<
tr>
<
td class="tcat" colspan="2">
<
div align="left"><a target="_blank" href="{param}">Youtube Video</a></div>
</
td>
</
tr>
</
thead>
<
tr>
<
td class="alt2" colspan="2"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="{param}" type="application/x-shockwave-flash" width="395" height="331"></embed></object><br>
</
td>
</
tr>
</
tbody>
</
table
And that will now take the full URL instead.

This doesn't work. I've been searching for a full url bbcode for months!!! Is there anyone that can help me on modifying this code so it works?

Basically what do I change in this code so I could use the full url when embed you tube?
Quote:
<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>
Reply With Quote
  #8  
Old 03-25-2009, 02:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You change where it says "value" and where it says "src". value="{param}" and src="{param}"
Reply With Quote
  #9  
Old 03-25-2009, 02:23 PM
c.c. c.c. is offline
 
Join Date: Jan 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So basically it should look like this:

<object width="425" height="350"><param name="movie" value="{param}"></param><embed src="{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>

when I use this code it just give me a white screen. Nothing comes up.
Reply With Quote
  #10  
Old 03-25-2009, 03:14 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:44 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.07922 seconds
  • Memory Usage 2,289KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete