Forum code help

In loving memory of the anonymous CNNSI Sysop, Sysop Judy, Byron and the WCP.

Moderator: aTm

Forum code help

Postby aTm » Fri Apr 15, 2011 4:21 pm

nm
Wubba-lubba-dub-dub!
User avatar
aTm
Muad'Dib
 
Posts: 6634
Joined: Fri Feb 25, 2011 12:25 am
Location: West Loop, Houston, TX
College Hoops Affiliation: Texas A&M
Preferred Barbecue Style: Tomato!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby aTm » Fri Apr 15, 2011 4:24 pm

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....

Wubba-lubba-dub-dub!
User avatar
aTm
Muad'Dib
 
Posts: 6634
Joined: Fri Feb 25, 2011 12:25 am
Location: West Loop, Houston, TX
College Hoops Affiliation: Texas A&M
Preferred Barbecue Style: Tomato!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby aTm » Fri Apr 15, 2011 4:34 pm

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]




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]


Wubba-lubba-dub-dub!
User avatar
aTm
Muad'Dib
 
Posts: 6634
Joined: Fri Feb 25, 2011 12:25 am
Location: West Loop, Houston, TX
College Hoops Affiliation: Texas A&M
Preferred Barbecue Style: Tomato!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby aTm » Fri Apr 15, 2011 4:44 pm

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.
Wubba-lubba-dub-dub!
User avatar
aTm
Muad'Dib
 
Posts: 6634
Joined: Fri Feb 25, 2011 12:25 am
Location: West Loop, Houston, TX
College Hoops Affiliation: Texas A&M
Preferred Barbecue Style: Tomato!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby Jungle Rat » Fri Apr 15, 2011 7:17 pm

Thanks. I get the first two now I think. The third one made me feel nauseous.
User avatar
Jungle Rat
The Pied Piper of Crazy
 
Posts: 16918
Joined: Fri Feb 25, 2011 10:38 am
Location: Crows Parents Basement
College Hoops Affiliation: Florida
Preferred Barbecue Style: Tomato!
Mascot Fight: Croc/Gator/Etc

Re: Forum code help

Postby billy bob bocephus » Sun Apr 17, 2011 7:00 pm

thanks aTm, youse ok for a kay-det
billy bob bocephus
Junior
 
Posts: 736
Joined: Mon Apr 11, 2011 6:25 pm
College Hoops Affiliation: Florida State
Preferred Barbecue Style: Tomato!
Mascot Fight: Bear/Grizzly/Etc

Re: Forum code help

Postby It's me Karen » Mon Apr 18, 2011 4:26 pm

[Youtube]Cqh54rSzheg&feature=related[/Youtube]

Practice. Hope this works.
User avatar
It's me Karen
Junior
 
Posts: 659
Joined: Tue Apr 05, 2011 7:00 pm
College Hoops Affiliation: Michigan
Preferred Barbecue Style: Vinegar!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby It's me Karen » Mon Apr 18, 2011 4:29 pm

[Youtube]Cqh54rSzheg&feature[/Youtube]
User avatar
It's me Karen
Junior
 
Posts: 659
Joined: Tue Apr 05, 2011 7:00 pm
College Hoops Affiliation: Michigan
Preferred Barbecue Style: Vinegar!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby It's me Karen » Mon Apr 18, 2011 4:30 pm

Damn
User avatar
It's me Karen
Junior
 
Posts: 659
Joined: Tue Apr 05, 2011 7:00 pm
College Hoops Affiliation: Michigan
Preferred Barbecue Style: Vinegar!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby It's me Karen » Mon Apr 18, 2011 4:32 pm

Image
User avatar
It's me Karen
Junior
 
Posts: 659
Joined: Tue Apr 05, 2011 7:00 pm
College Hoops Affiliation: Michigan
Preferred Barbecue Style: Vinegar!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby AugustWest » Mon Apr 25, 2011 5:25 pm

karen, leave out the "&feature" in your youtube code. just use the unique number.
U*NC is the cleanest most honest athletic program on the planet. I am jealous of their deserved success, and I'm a mewling cunt.
User avatar
AugustWest
Senior
 
Posts: 3964
Joined: Sat Feb 26, 2011 8:33 pm
College Hoops Affiliation: North Carolina State
Preferred Barbecue Style: Vinegar!
Mascot Fight: Bear/Grizzly/Etc

Re: Forum code help

Postby It's me Karen » Mon Apr 25, 2011 7:53 pm

User avatar
It's me Karen
Junior
 
Posts: 659
Joined: Tue Apr 05, 2011 7:00 pm
College Hoops Affiliation: Michigan
Preferred Barbecue Style: Vinegar!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby It's me Karen » Mon Apr 25, 2011 7:55 pm

Yay! Thanks Auggie! It's been so long I forgot what video I was posting. It was a hit when I started. heh
User avatar
It's me Karen
Junior
 
Posts: 659
Joined: Tue Apr 05, 2011 7:00 pm
College Hoops Affiliation: Michigan
Preferred Barbecue Style: Vinegar!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby AugustWest » Mon Apr 25, 2011 8:25 pm

heh.
U*NC is the cleanest most honest athletic program on the planet. I am jealous of their deserved success, and I'm a mewling cunt.
User avatar
AugustWest
Senior
 
Posts: 3964
Joined: Sat Feb 26, 2011 8:33 pm
College Hoops Affiliation: North Carolina State
Preferred Barbecue Style: Vinegar!
Mascot Fight: Bear/Grizzly/Etc

Re: Forum code help

Postby 10ac » Mon Apr 25, 2011 8:31 pm

Loved them then and now.
Let 'er Blow!
User avatar
10ac
Senior
 
Posts: 4361
Joined: Fri Feb 25, 2011 5:55 pm
College Hoops Affiliation: Tennessee
Preferred Barbecue Style: Tomato!
Mascot Fight: Bear/Grizzly/Etc

Re: Forum code help

Postby crashcourse » Mon Apr 25, 2011 10:23 pm

User avatar
crashcourse
Senior
 
Posts: 3211
Joined: Tue Apr 05, 2011 7:18 pm
College Hoops Affiliation: Kansas State
Preferred Barbecue Style: Vinegar!
Mascot Fight: Croc/Gator/Etc

Re: Forum code help

Postby It's me Karen » Sat Apr 30, 2011 12:39 pm

A shout out goes to aTm for finding this place and setting it up. I think it's going to be a hit!
User avatar
It's me Karen
Junior
 
Posts: 659
Joined: Tue Apr 05, 2011 7:00 pm
College Hoops Affiliation: Michigan
Preferred Barbecue Style: Vinegar!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby Jungle Rat » Sat Apr 30, 2011 1:25 pm

Karen is drunk
User avatar
Jungle Rat
The Pied Piper of Crazy
 
Posts: 16918
Joined: Fri Feb 25, 2011 10:38 am
Location: Crows Parents Basement
College Hoops Affiliation: Florida
Preferred Barbecue Style: Tomato!
Mascot Fight: Croc/Gator/Etc

Re: Forum code help

Postby aTm » Sat Apr 30, 2011 1:29 pm

Does she put out?
Wubba-lubba-dub-dub!
User avatar
aTm
Muad'Dib
 
Posts: 6634
Joined: Fri Feb 25, 2011 12:25 am
Location: West Loop, Houston, TX
College Hoops Affiliation: Texas A&M
Preferred Barbecue Style: Tomato!
Mascot Fight: Big Cat/Tiger/Lion/Etc

Re: Forum code help

Postby Stormaktstiden » Sun May 01, 2011 7:49 am

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.
Where vice is vengeance follows.
User avatar
Stormaktstiden
Freshman
 
Posts: 91
Joined: Sat Apr 16, 2011 2:10 pm
College Hoops Affiliation: Presbyterian
Preferred Barbecue Style: Tomato!
Mascot Fight: Bear/Grizzly/Etc

Next

Return to TGP Comments and Support Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron