We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Video Posting Code
Topic Started: Oct 27 2013, 08:27 AM (799 Views)
Zinnoh
Member Avatar
Perfume Mist Pirates ♥..♪
[ *  * ]
http://w11.zetaboards.com/Onepiecexeon/index/
Zetaboards

Basically I need a code of some sort that allows me to post direct MP4 video links on the forum so that it allows users to watch the video in threads.
The current BB code one only works with youtube videos and that just won't do for me since it doesn't work for anything other than youtube.

[ video]http://s3.tinyvid.net/au/NGvsgi1AlUGicEXd98aVkw/1382880195/X3pWnL5g.mp4 [/ video]
That's an example of the kind of link I'm talking about. ".mp4". It's only an example.
Edited by Zinnoh, Oct 27 2013, 08:29 AM.
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
There is a custom BBCode editor out which allows users to create their own custom BBCode but I'm not sure if the video tag that has been created with this code only supports YouTube or others as well. The code is here if you want to take a look. Sorry I can't be of much help.
Offline Profile Goto Top
 
NullCrayfish
Member Avatar
Member
[ *  *  *  * ]
To create own BBCode tags use this:
http://if.invisionfree.com/topic/5179118/1/

For your bbtag the complete code would look like
Code:
 
<script src="http://zb.nullcrayfish.com/?mod=bbcodes&version=latest"></script><script>
/*
NCF BBCodes
By NullCrayfish
http://NullCrayfish.com
*/

ncf_bbcodeCreateTag({
text:'Video file',
tag:'vid',
type:'button',
replacements:[
'<video controls="controls"><source src=":$1">Your browser does not support the video tag.</video>',
'<video controls="controls" width=":$2"><source src=":$1">Your browser does not support the video tag.</video>',
'<video controls="controls" width=":$2" height=":$3"><source src=":$1">Your browser does not support the video tag.</video>',
]
});
</script>


then to use it:
[vid]http://mywebsite.com/myFile.mp4[/vid]
[vid=500]http://mywebsite.com/myFile.mp4[/vid]
[vid=500,300]http://mywebsite.com/myFile.mp4[/vid]


red is the width
blue is the height
Edited by NullCrayfish, Dec 11 2013, 06:23 AM.
Offline Profile Goto Top
 
Moonface
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic