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 ] Vine embed feature
Topic Started: Feb 22 2014, 05:41 PM (927 Views)
Jason
Member Avatar
Member
[ *  *  *  *  * ]
What I would like is some way to embed Vine videos either via BBCode or any other way.

For example if you go here - https://vine.co/v/MmqgMbLU2Lg/embed you will be able to generate a html embed code, however ZB doesn't allow html in posts.

So any of you skilled chaps know how to do this?
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Try this: http://if.invisionfree.com/topic/5179118/1/
Offline Profile Goto Top
 
Jason
Member Avatar
Member
[ *  *  *  *  * ]
Cheers, will give it a go.
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Any luck?
Offline Profile Goto Top
 
Jason
Member Avatar
Member
[ *  *  *  *  * ]
Unfortunately not, displays a video type box but gives an error about unsupported video -

Posted Image
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Lout
Mar 3 2014, 02:57 AM
Unfortunately not, displays a video type box but gives an error about unsupported video -

Posted Image
Try this:
Code:
 
<script src="http://zb.nullcrayfish.com/?mod=bbcodes&version=latest"></script><script>
/*
NCF BBCodes
By NullCrayfish
http://NullCrayfish.com
*/

ncf_bbcodeCreateTag({
type: 'button', //optional, default is "button", type of control to display on the edit/create post form, currently only "button"
text: 'Vine', //optional, default is value of 'tag' property, text to display on the control at the edit/create post form
tag: 'vine', //required, value between "[" and "]"
handler: ncf_bbcodeHandler, //optional, default is ncf_bbcodeHandler, function reference, used to decide what default values to add when the control (button?) on the edit/create post form is used. For more details see built in functions ncf_bbcodeHandler and ncf_bbcodeHandlerDialog
parser: ncf_bbcodeParser, //optional, default is ncf_bbcodeParser, function reference, used to parse bbcode to html, accepts tag object (current object) and full post html.
replacements: ['<iframe class="vine-embed" src=":$1" width=":$2" height=":$3" frameborder="0"></iframe><script async src="//platform.vine.co/static/scripts/embed.js" charset="utf-8"><\/script>'], //required, array with replacements, should have a entry for each possible amount of parameters, entry may be a function or string, functions are executed just before replaces are performed, for example see samples above
position: 'last' //optional, default is 'last', possible values are 'first' and 'last', defined where the control (button?) on the create/edit post form is shown.
});
</script>
The user would need to supply the URL (from the src), the width, and the height. So [vine=URL, WIDTH, HEIGHT][/vine]
Edited by DaPizzaMan, Mar 6 2014, 09:33 PM.
Offline Profile Goto Top
 
Jason
Member Avatar
Member
[ *  *  *  *  * ]
On holiday for another 10 days, will give it a go when I get back and let you know
Offline Profile Goto Top
 
Jason
Member Avatar
Member
[ *  *  *  *  * ]
Tested and works a treat, many thanks DaPizzaMan
Offline Profile Goto Top
 
DaPizzaMan
Member Avatar
#TeamSupport

Thank NCF (pretty nifty code he created :D ).
Offline Profile Goto Top
 
Liam
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