thejdm.com v6 [2026 rebirth]
https://www.thejdm.com/forum/
Print view

new media feature. speed load times. + spoiler
https://www.thejdm.com/forum/viewtopic.php?f=24&t=10507
Page 1 of 3
Author:  .saint [ March 07, 2009 ]
Post subject:  new media feature. speed load times. + spoiler

ok so i been playing with the code for a bit on the video embed bbcodes and i found a fantastic modification called a 'spoiler' that lets you hide and show text. i revamped the code and added it the video bbcodes that are currently working on the site.

NOW to view a video you need to click the '[reveal video]' link, this will reveal the video for viewing. the video link is also posted incase you want to copy the link and watch it on youtube with possibly HD quality if available. why did i do this? well sometimes videos get posted more and more per page and there is nothing crappier then sitting there waiting for all the videos to load till you can watch one. so now they all load in the background and you can reveal whatever video you want to watch at anytime. :thumbup:

here is an example.

Code: Select all

[youtube]http://www.youtube.com/watch?v=71WRHjD1Co4[/youtube]
ends up like this now.
PRIME_BBCODE_SPOILER_SHOW http://www.youtube.com/v/71WRHjD1Co4
you can also use the code to hide text until it is clicked with this code

Code: Select all

[spoiler]TEXT[/spoiler]
an example of that works like this, by clicking the black box you are able to see the rest of this message.
Author:  77 [ March 07, 2009 ]
Post subject:  Re: new media feature. speed load times. + spoiler

Seems pretty cool.
Does that reveal and obscure feature work with all the same code. I assume so, but want to make sure it's the same YouTube /YouTube.
Author:  .saint [ March 07, 2009 ]
Post subject:  Re: new media feature. speed load times. + spoiler

youtube code works just the same as a regular youtube code

Code: Select all

[youtube]url[/youtube]
no need to add spoiler tags. it always hides for every posted video.
Author:  77 [ March 08, 2009 ]
Post subject:  Re: new media feature. speed load times. + spoiler

Good, good...
Author:  Sean @ NDF [ March 08, 2009 ]
Post subject:  Re: new media feature. speed load times. + spoiler

If you click my spoiler you are a homosexual
Author:  .saint [ March 08, 2009 ]
Post subject:  Re: new media feature. speed load times. + spoiler

damnit. i clicked.
Author:  Sean @ NDF [ March 09, 2009 ]
Post subject:  Re: new media feature. speed load times. + spoiler

lol
Author:  .saint [ March 09, 2009 ]
Post subject:  Re: new media feature. speed load times. + spoiler

sean, you :thumbup: or :thumbdown: with the hide/show video feature? im all about it haha.
Author:  77 [ March 09, 2009 ]
Post subject:  Re: new media feature. speed load times. + spoiler

the game
Author:  .saint [ March 09, 2009 ]
Post subject:  Re: new media feature. speed load times. + spoiler

i can see this spoiler thing making people who click it turn homo and turning into some crazy forum games.
All times are UTC-04:00 Page 1 of 3