Page 1 of 1

Extra BB Code

PostPosted: Sun Jul 17, 2011 10:19 am
by hexcrass
This thread is for any extra BB Code. If anyone wants something that's not implemented, say so and we'll see what's up.

I added YouTube BB Code to the forum, so you can embed videos easily. Just put the entire URL between the Youtube tags.
Usage example: *edit - if you have problems with this tag, you're not alone. Scroll down a little bit.*

Code: Select all
[youtube]http://www.youtube.com/watch?v=4D74VAKDkVY[/youtube]


Re: Extra BB Code

PostPosted: Thu Aug 11, 2011 10:27 am
by hexcrass
Added Spoiler code:
This is good for (spoilers, obviously and) posts with large amount of images.
usage:
Code: Select all
[spoiler]contents to be hidden go here[/spoiler]

It looks like this:
Spoiler:
contents to be hidden go here

Re: Extra BB Code

PostPosted: Thu Aug 18, 2011 11:13 pm
by hexcrass
I noticed a problem with the Youtube BB code, only regular URL's will work. The extra long URL's with the extra embedded or related part aren't working. Also, the URL's for Vevo video's look different and don't work either.

Any ideas? Here is how the Youtube BB code is currently setup:
Usage:
Code: Select all
[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]


HTML replacement:
Code: Select all
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>



Here is a regular youtube URL that works:
Code: Select all
http://www.youtube.com/watch?v=-qcYbYT8gq4



Here are examples of the types of URLS that are not working:

vevo
Code: Select all
http://www.youtube.com/watch?v=rrSdXtFJG20&ob=av2e


vevo related video
Code: Select all
http://www.youtube.com/watch?v=OjyZKfdwlng&feature=relmfu


regular related video
Code: Select all
http://www.youtube.com/watch?v=HnFYJF_eWPM&feature=related

Re: Extra BB Code

PostPosted: Fri Aug 19, 2011 12:51 am
by hexcrass
I seem to have found the answer, although it's not very elegant. If you want to embed a youtube video with a messed up URL...under the video, next to the like and add to favorites buttons, there is a share button. Click that. Then click the show options link, then click the Long Link checkbox, and there's your working URL.

Screenshot:
Spoiler:
Image

That's pretty damn stupid. If someone has a better idea, I'm all ears.
I think all this URL tomfoolery is about making you watch stupid advertisements; you'll notice the ads don't show in an embedded video.
I mean for fucks sake, it's a site FULL of stupid videos! Why don't they just make a channel and upload all their ads to it like everyone else?! What, are they afraid no one would watch their videos? Duh! No one likes you! No one watches my videos, but I don't go hijack something good and make my crappy video play first!
</rant>

Vevo can go to hell :)

Re: Extra BB Code

PostPosted: Sun Aug 28, 2011 8:48 am
by hexcrass
Added Soundcloud support.
Just put the songs URL between the soundcloud tags.

Usage:
Code: Select all
[soundcloud]http://soundcloud.com/hexcrasher/05-rise-from-your-grave[/soundcloud]

http://soundcloud.com/hexcrasher/05-rise-from-your-grave

Or if you want to put a whole set, put the set's URL in and it will play them in order:
Code: Select all
[soundcloud]http://soundcloud.com/hexcrasher/sets/ninja-spirit/[/soundcloud]

http://soundcloud.com/hexcrasher/sets/ninja-spirit/

Re: Extra BB Code

PostPosted: Sun Aug 28, 2011 1:21 pm
by Pill'sGhost
Yo, I don't know what the f@#$ you just said, but that Cherry Pie video was pretty sweet.

Re: Extra BB Code

PostPosted: Mon Aug 29, 2011 5:55 am
by DoctorC
Thanks Hex! That was very helpful to me. I don't see a better way for the url's in question though.

Re: Extra BB Code

PostPosted: Thu Oct 06, 2011 12:07 pm
by hexcrass
imgalt:
I added an imgalt tag. This is for adding an alt attribute to the image you are posting, instead of just posting an image with no attributes, as with the IMG tag.
Usage example:
Code: Select all
[imgalt]http://i.imgur.com/LTmue.gif, King KOF XIII Sprite[/imgalt]

Would look like this: (Mouseover to see the alt text.)
 King KOF XIII Sprite

This is useful for search engines (see google image search) and also for people with wacky browsers.
If you use the imgalt tag without the comma and alt text, your image won't show though.
The regular IMG tag still works the same as always, feel free to use either one.