vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how do I add a button for vids etc (https://vborg.vbsupport.ru/showthread.php?t=149552)

Femphysiques 06-12-2007 06:29 PM

how do I add a button for vids etc
 
I had someone admin my board...but he doesn't have much time to do it much anymore...so I'm left to fend for myself...and I'm a duh when it comes to code....can anyone tell me how to ad a button similar to the youtube button where anyone can post a vid? I don't want thme to upload it to the server...just link to it....I guess that's called bbcode?......I tried and failed miserabley to make heads or tails out of the youtube code to see if I could make it work....I guess the variables would be the url and name of the vid...I'd like it to be/work similar to how the [img] thing works....thanks in advance

cheat-master30 06-12-2007 07:26 PM

If you want to embed Youtube videos:

Code:

<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>
Youtube Video- title

whatever you want- BB code tag

I got this from the official forums, and there are a literal ton of video embedding BB codes listed in the vBulletin.org modifications index.

Femphysiques 06-13-2007 02:06 AM

Quote:

Thanks...but I already have youtube and google...what I'd like to have is a button that operates similar to their code. In other words....the ability to embed a vid from any url..not just youtube or google....example [vid]http://www.xyz.com/samplevid.mpg[/vid]. I know this code won't really work as typed above..just using it as an example.....also I guess there is a problem about constraining the vid to a certain window size....similar to the youtube or google vids....so I'm wondering if any code guru's here can help me out on this one...because I have no clue how to do it......Also...I'm not sure it's even possible as the youtube movies are really flash movies and not mpgs....anyway....thanks in advance...

Is there anyone who can help on this one?..thanks....


All times are GMT. The time now is 05: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.01040 seconds
  • Memory Usage 1,714KB
  • 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)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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