PDA

View Full Version : video bbcodes


jesus likes pie
10-17-2005, 10:00 PM
Alright, wasn't too sure where to put this, but I think that plugin best describes it since all you need is access to Admin CP.

This is a simple bbcode that adds two tags. [video] and [video2]. One works for certain formats, the other works for another.

EXAMPLE:

http://videos.streetfire.net/iPlayer.aspx?fileid=245402BA-784E-47EA-9109-5CB546FFE7DA

that would be wrapped around [video2] tags.

On the other hand,
http://movies.apple.com/movies/universal/twoforthemoney/twoforthemoney_h.480.mov
would be wrapped around [video] tags.

You'll figure it out, if it doesn't work with one, use the other. It's not hard. At all.

2 Demos:
http://ugforums.org/forum/showpost.php?p=7553&postcount=1
http://ugforums.org/forum/showpost.php?p=7290&postcount=22

Oh and, if you use the [video] tag with WMP, double clicking goes full screen :)


BBCODES:

Title: Video
Tag: video
Replacment:

<small><b>Video:</b></small><br /> <div style="border: 1px dashed gray; padding: 1px;"><div><button type="button" class="button" onclick="this.parentNode.parentNode.childNodes[1].style.display = ''; this.parentNode.style.display = 'none';" title="Click to show the video.">show video</button></div><div id="spoiler" style="display: none;"><embed src="{param}" width=470 height=375 autostart=false loop=false align=center></div></div>

-----------------------------------------------------------------

Title: Video 2
tag: video2
Replacment:

<small><b>Video:</b></small><br /> <div style="border: 1px dashed gray; padding: 1px;"><div><button type="button" class="button" onclick="this.parentNode.parentNode.childNodes[1].style.display = ''; this.parentNode.style.display = 'none';" title="Click to show the video.">show video</button></div><div id="spoiler" style="display: none;"><IFRAME SRC="{param}" WIDTH="470" HEIGHT="375" FRAMEBORDER="0" MARGINWIDTH="0" SCROLLING="no"></IFRAME></div></div>


Enjoy, and please click install :)

jesus likes pie
10-18-2005, 12:14 AM
Just wanted to add that this doens't work well on macs. it actually downloads the video rather than playing it in the browser.

Daniel
10-18-2005, 12:49 AM
I have a mac. Damn.

jesus likes pie
10-18-2005, 12:55 AM
I tested it out on my school's Safari browser using a mac mini. Don't know if it might work with other Mac browsers. maybe worth a try on one of the demos I linked.

And to add to that, I tested it out on a .wmv (windows media player etxension), so it might work if it's a quicktime movie. Such as the trailer I linked to in the first demo link.

:ermm:

rb290
10-18-2005, 04:32 AM
what do you put in for all fields, and what you leave blank

jesus likes pie
10-18-2005, 10:07 AM
what do you mean? I gave out all the needed info...description is not needed, use option should be left at no, and there is no image, unless you make one yourself.

nexialys
10-18-2005, 12:21 PM
it is downloading the files when the films are .wmv or other Windows medias... because there is no plugin in the Mac browser to play them directly... so there is no link with the bbcode itself...

auz1111
10-18-2005, 05:56 PM
I am using internet explorer. when i use the [video] tag it won't play .mpg. When I use [video2] it pops up windows media player as soon as i click into the post.

anyway to stop it from doing that. And it would be easier if we knew what tag worked for which extension.

jesus likes pie
10-18-2005, 07:11 PM
auz, the [video] tag plays stuff that is already, say, integrated into a page. You will probably use it less often. use [video2] when the url of the video ends in a video file extension.

I probably should have named [video2] into [video] since it's used more. Feel free to do that. It won;t break anything.

As for it popping up, I don't recall what mpg is used for...I really should, but I just can't remember right now. Can you give me the link of the video and I can try it on my forums/computer.

Normally, when a player pops up rather than integrating, it means that you have not installed the player to work with your browser. As I said, if you could give it to me it would be great.

For example, right now I'm at my mom's computer, she doesn't have quicktime, so the first example that I gave isn't working on her computer. It's a case by case scenario that makes it not work.

unknowngiver
10-20-2005, 07:59 PM
Is there a way to make it so ONLY admins can post these stuff
...even better if only I [1 admin] can post it :P

jesus likes pie
10-20-2005, 09:23 PM
I don't think so. I'm trying....but it doesn't look like it will work.

unknowngiver
10-21-2005, 01:43 AM
damnit :( cuz i dont want my forum to be so easy to hack..and now-a-days the vid files r DANGEROUS!!!!!

jesus likes pie
10-21-2005, 10:56 AM
Well....you could try and just not tell them how to do it :P

unknowngiver
10-24-2005, 04:13 PM
ya like tht would work :p
cant u use <if usergroup=1>the movie thing</if> else {Sorry only admins are allowed to display movies}

SOMETHING LIKE THAT?

Ahsin1
03-31-2006, 07:32 PM
looking for that cool

rareclownfish
04-03-2006, 02:01 AM
does this work for 3.5.4?

almukmin
04-03-2006, 08:22 AM
I will install this on my forum and let you know.

dwbro1
04-08-2006, 05:23 AM
I just placed this on my 3.5.4 vb but I added it as a module on my cmps front page. Not too bad...

http://thebluelodge.org

joh
04-13-2006, 11:51 AM
sorry all, i am new to this and i am working on my own forum.
can you tell me step by step what to do to make this work.

TeddyKGB
05-26-2006, 02:34 AM
Is there a way to restrict who can view the video posted using this? I would rather only allow registered members to view these videos rather than a guest.

Is there a way to do this?

cashpath
06-22-2006, 01:41 AM
Could this be modified so that you can also add a link to a thumbnail image in each one instead of just the 'show Video' button?

If so could someone tell me how?

peterska2
07-22-2006, 11:11 PM
Please note: the author is no longer supporting this modification.