vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Simple embed of javascript (https://vborg.vbsupport.ru/showthread.php?t=194525)

pmcnamara 10-25-2008 03:05 PM

Simple embed of javascript
 
I want to embed a video via TVU into a post in my forum (vb 3.7.3)

The script is:

Code:

<script type="text/javascript" src="http://dl.tvunetworks.com/webplayer/myTVU.js?c=channel_number&w=screen_width&h=screen_height&autoplay=y&style=1"></script>
When I copy that straight into the message box, nothing appears.. when I wrap it with
Code:

<html> or <embed> or <object>
tags nothing happens.

What am I doing wrong and what should I be doing ?

Lynne 10-25-2008 03:15 PM

Do you allow html posting on your site (you shouldn't)? It will only 'do' something if you do allow html posting. And that's just a call to a javascript script. I don't think it will do anything if that is all you post (but I'm not a javascript expert at all).

pmcnamara 10-25-2008 03:36 PM

Quote:

Originally Posted by Lynne (Post 1652460)
Do you allow html posting on your site (you shouldn't)? It will only 'do' something if you do allow html posting. And that's just a call to a javascript script. I don't think it will do anything if that is all you post (but I'm not a javascript expert at all).

I am the admin, so I can set permissions to allow me to do it, but no one else..

the full HTML to put it into a webpage looks like this:

Code:

<script type="text/javascript" src="http://dl.tvunetworks.com/webplayer/myTVU.js?c=640&w=450&h=320&autoplay=1&style=1"></script>
that calls up the player and it should launch.. you can see it active here:

http://pages.tvunetworks.com/doc/webplayer.html

Lynne 10-25-2008 04:09 PM

Actually, unless you have a modification installed, you cannot allow html just for an admin.

But, anyway.... are you getting an error on the page? Is it showing up in the page source?


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