TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 219
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 117
  • Total: 117

Script Block vs. Script Box

Started by jmayne, March 20, 2008, 02:27:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jmayne

I was told that I could embed youtube (embed HTML) using a scriptblock.  When I select the block Type (from the dropdown), I see I have the choice of selecting Scriptbox.  Is a scriptblock the same thing as a scriptbox.

FYI, embedding youtube HTML into a scriptbox does not work for me.  All I see is the HTML.

Zetan

Script block, box.. same thing.

Whats the code you are trying to insert?

jmayne

I am testing with this:

<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=3155486377708538088&hl=en" flashvars=""> </embed>

It's a little line rider clip I have on Google video.

Zetan

Please use the code tags when posting code. The button with the # symbol

That video works fine.. it's a Google video. I have it on the Home Page of my site and will take it down again soon.

http://labradio.co.uk/index.php

JPDeni

Works for me. Make absolutely sure you are using a scriptbox and not an html + BBC block.

jmayne

Quote from: ZTN on March 20, 2008, 02:50:49 PM
Please use the code tags when posting code. The button with the # symbol

That video works fine.. it's a Google video. I have it on the Home Page of my site and will take it down again soon.

http://labradio.co.uk/index.php

I'm sure I am doing something wrong.

In the Block Manager, I click "Add Center Block."  On the next screen, it tells me "You have successfully created a new block. Here you can set what type this new block should be."  So, I tick scriptbox, then click Save.

At that point I am taken to the screen where I can add a title as well as enter information as to what I want in the Body of my scriptbox.  So , in the body, I past this:

<font size="4">&lt;embed style=&quot;width:400px; height:326px;&quot; id=&quot;VideoPlayback&quot; type=&quot;application/x-shockwave-flash&quot; src=&quot;http://video.google.com/googleplayer.swf?docId=3155486377708538088&amp;hl=en&quot; flashvars=&quot;&quot;&gt; &lt;/embed&gt;</font>

I go to the bottom of this page and click Save.  I am then brought back to the main Block Manager page.  I turn the box "on."  then go to the bottom and click Save.

Then I go to my forum to see what this new center block looks like.  In it I see the HTML code that I pasted into the body.

There is no button with the # symbol as ZTN refers to, anywhere along the way.

I'm sure I'm missing a step here.

Ken.

#6
ZTN is speaking of posting your code in your message here... makes it lots easier to read and makes it display correctly. Displaying correctly may, or may not happen when you do a simple copy & paste into a forum post.

See the screen shot below.
Also an alternative method would be to manually type in the 'code' tags: [ code][ /code] (without the spaces).
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

JPDeni

In the script box, paste


<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=3155486377708538088&hl=en" flashvars=""> </embed>


That's what I did and it worked just fine.

jmayne

JPDeni,

That worked great.  So, I was copying and pasting the wrong thing.  In the future, how will I know what to copy and paste.  The code you sent to me is not what I am being provided by Google or Youtube.

How did you know the right stuff?  How can I learn how to do it?

JPDeni

QuoteThe code you sent to me is not what I am being provided by Google or Youtube.

The code I used was the code you first posted. Your second post in this topic. Wherever you got that, is what you want to copy in the future. If you end up seeing things like =&quot;&quot;&gt; &lt;, that means that there has been some sort of translation of your code, trying to print out the text, rather than to parse the html. My guess is that you started with an html + BBC block, found that didn't work, copied the text from the display and tried to put it into a scriptbox. If you copy the text from YouTube or Google and paste it directly into the scriptbox.

QuoteHow did you know the right stuff?

I recognize html when I see it. I've studied it and created web pages with it.

QuoteHow can I learn how to do it?

Learn html. There's lots of good references on the 'net.

This website is proudly hosted on Crocweb Cloud Website Hosting.