Page 1 of 2

Forum code help

Posted: Fri Apr 15, 2011 4:21 pm
by aTm
nm

Re: Forum code help

Posted: Fri Apr 15, 2011 4:24 pm
by aTm
Lesson #1 - YouTube Video

Use the following forum code.

Code: Select all

[Youtube][/Youtube]
All you have to do to post a Youtube video on the board is grab the video's ID. The ID is the string of letters unique to each viedo that is listed in its URL.

For example, if you want to link http://www.youtube.com/watch?v=oHg5SJYRHA0, then you simply grab the "oHg5SJYRHA0" part of the URL and place it in the code as follows:

Code: Select all

[Youtube]oHg5SJYRHA0[/Youtube]
and you get....

[youtube]oHg5SJYRHA0[/youtube]

Re: Forum code help

Posted: Fri Apr 15, 2011 4:34 pm
by aTm
Lesson #2 - Images

There are curently two forum codes for posting images. They are:

Code: Select all

[img][/img] AND [Img2][/Img2]
"img" posts an image at its normal size. Use this tag for posting normal size picture on the board. If a picture is too large, it will get cut off at the right hand side by the edge of the web page, this is when you use the "Img2" tag. "Img2" contrains the image to the width of our page so that it doenst get cut off, If you use "Img2" with a smaller image, it will expand it to fit the page.

Examples for a smaller/normal sized image.

Code: Select all

[img]http://web.ics.purdue.edu/~pritchey/images/block_aTm.jpg[/img]
Image

Code: Select all

[img2]http://web.ics.purdue.edu/~pritchey/images/block_aTm.jpg[/img2]
[img2]http://web.ics.purdue.edu/~pritchey/ima ... ck_aTm.jpg[/img2]

Examples for a very large image.

Code: Select all

[img]http://www.fisd.us/ecc/TEXAS_A_M_WALLMARX_LOGO.jpg[/img]
Image

Code: Select all

[img2]http://www.fisd.us/ecc/TEXAS_A_M_WALLMARX_LOGO.jpg[/img2]
[img2]http://www.fisd.us/ecc/TEXAS_A_M_WALLMARX_LOGO.jpg[/img2]

Re: Forum code help

Posted: Fri Apr 15, 2011 4:44 pm
by aTm
Lesson #3 - Other Flash video (and objects)

Use the following forum code.

Code: Select all

[Flash=][/Flash]
Flash is a little more complicated than youtube. You have to look at the video's embed code and try and piece it together along with the video players height and width.

Lets say I go to CNN and want to link a video that gives me the following embed code.

Code: Select all

<object width="416" height="374" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="ep"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /><param name="movie" value="http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed&videoId=us/2011/04/15/vo.ms.tornado.jackson.cnn" /><param name="bgcolor" value="#000000" /><embed src="http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed&videoId=us/2011/04/15/vo.ms.tornado.jackson.cnn" type="application/x-shockwave-flash" bgcolor="#000000" allowfullscreen="true" allowscriptaccess="always" width="416" wmode="transparent" height="374"></embed></object>
The important parts i see are the width, height and the source portion of the code. Using that I create the following bbcode.

Code: Select all

[flash=416,374]http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_416x234_embed.swf?context=embed&videoId=us/2011/04/15/vo.ms.tornado.jackson.cnn[/flash]
Note that I put the width then height in the first flash code, then grabbed the source of the file i want to play and put that between the tags. You end up with this:




Please let me know if it gives you an error when trying to post flash. there is an option to allow or disallow certain classes of user from posting using that tag, so I may need to make adjustments if it doesnt work.

Re: Forum code help

Posted: Fri Apr 15, 2011 7:17 pm
by Jungle Rat
Thanks. I get the first two now I think. The third one made me feel nauseous.

Re: Forum code help

Posted: Sun Apr 17, 2011 7:00 pm
by billy bob bocephus
thanks aTm, youse ok for a kay-det

Re: Forum code help

Posted: Mon Apr 18, 2011 4:26 pm
by It's me Karen
[Youtube]Cqh54rSzheg&feature=related[/Youtube]

Practice. Hope this works.

Re: Forum code help

Posted: Mon Apr 18, 2011 4:29 pm
by It's me Karen
[Youtube]Cqh54rSzheg&feature[/Youtube]

Re: Forum code help

Posted: Mon Apr 18, 2011 4:30 pm
by It's me Karen
Damn

Re: Forum code help

Posted: Mon Apr 18, 2011 4:32 pm
by It's me Karen
Image

Re: Forum code help

Posted: Mon Apr 25, 2011 5:25 pm
by AugustWest
karen, leave out the "&feature" in your youtube code. just use the unique number.

Re: Forum code help

Posted: Mon Apr 25, 2011 7:53 pm
by It's me Karen
[youtube]Cqh54rSzheg[/youtube]

Re: Forum code help

Posted: Mon Apr 25, 2011 7:55 pm
by It's me Karen
Yay! Thanks Auggie! It's been so long I forgot what video I was posting. It was a hit when I started. heh

Re: Forum code help

Posted: Mon Apr 25, 2011 8:25 pm
by AugustWest
heh.

Re: Forum code help

Posted: Mon Apr 25, 2011 8:31 pm
by 10ac
Loved them then and now.

Re: Forum code help

Posted: Mon Apr 25, 2011 10:23 pm
by crashcourse

Re: Forum code help

Posted: Sat Apr 30, 2011 12:39 pm
by It's me Karen
A shout out goes to aTm for finding this place and setting it up. I think it's going to be a hit!

Re: Forum code help

Posted: Sat Apr 30, 2011 1:25 pm
by Jungle Rat
Karen is drunk

Re: Forum code help

Posted: Sat Apr 30, 2011 1:29 pm
by aTm
Does she put out?

Re: Forum code help

Posted: Sun May 01, 2011 7:49 am
by Stormaktstiden
For uploading avatars add the ability to upload from a link instead of just from your pc. Halo already has it setup that way at RI.