Custom BB Codes - Vbulletin
jwashburn
Registered Users Posts: 476 Major grins
I am working on building a custom BB Code for my Vbulletin forum. Its the same forum they use here. This will allow users to post a video in any forum, regardless if HTML is enabled.
Here are the two problems I am having. This first is the videos are autoplaying. I couldnt find a paramater around autoplay. I would prefer that they dont autoplay. The next problem is the right video doesnt play everytime. Sometimes a video from a totally different smugmug users plays. I cant tell if its pulling some sort of cache from my machine, or if its grabbing it real time.
Here is the code I am using
Its seems to work 80% of the time. I would like to get it nailed down so my users and users of this site could just type [smug]there video[/smug]
Here is a link to some basics on BB Code
http://www.vbulletin.com/docs/html/main/bbcode_add
You can see an example of my test post at
http://norcal26.com/showthread.php?t=27
This video should be of a mountain biker with a helmet camera.
Here is a link to my videos on smug
http://www.joeywashburn.com/gallery/7554369_wgd4o#568511238_TnqZa
So far I have see the video, that SHOULD be the moutain bike helmet camera play both motocross videos from my gallery, as well as a video from a totally different smug user jcmx.smugmug.com.
It hasnt played my dogs playing video.
Ill post some more information as I come up with it. If any has some idea, please send them my way.
Thanks for reading
Edit ...
I am now using this code
Here are the two problems I am having. This first is the videos are autoplaying. I couldnt find a paramater around autoplay. I would prefer that they dont autoplay. The next problem is the right video doesnt play everytime. Sometimes a video from a totally different smugmug users plays. I cant tell if its pulling some sort of cache from my machine, or if its grabbing it real time.
Here is the code I am using
embed style="width:425px; height:318px; type="application/x-shockwave-flash" src="[URL="http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf"]http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf[/URL]" flashVars=""></embed>
Its seems to work 80% of the time. I would like to get it nailed down so my users and users of this site could just type [smug]there video[/smug]
Here is a link to some basics on BB Code
http://www.vbulletin.com/docs/html/main/bbcode_add
You can see an example of my test post at
http://norcal26.com/showthread.php?t=27
This video should be of a mountain biker with a helmet camera.
Here is a link to my videos on smug
http://www.joeywashburn.com/gallery/7554369_wgd4o#568511238_TnqZa
So far I have see the video, that SHOULD be the moutain bike helmet camera play both motocross videos from my gallery, as well as a video from a totally different smug user jcmx.smugmug.com.
It hasnt played my dogs playing video.
Ill post some more information as I come up with it. If any has some idea, please send them my way.
Thanks for reading
Edit ...
I am now using this code
<object width="425" height="318"> <param name="allowFullScreen" value="true" /> <param name="movie" value="http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf" /> <param name="flashVars" value="" /> <embed src="http://cdn.smugmug.com/ria/ShizVidz-2008120101.swf" flashVars="" width="425" height="318" type="application/x-shockwave-flash" allowFullScreen="true"> </embed> </object>
Joey Washburn
www.joeywashburn.com
www.joeywashburn.com
0
Comments
I got it nailed down.
If you have a Vbulletin site and you want to embed video, create a custom BB Code like this
BBCode Tag Name: smug
Replacement:
Example: [smug]s=ZT0xJmk9NjA1NTgzMTU5Jms9TVZhc1QmYT03NTU0MzY5X3dnZDRvJnU9Sm9leVdhc2hidXJu[/smug]
Description: Enter your flash param. It will look something like this
s=ZT0xJmk9NTY4NTExMjM4Jms9VG5xWmEmYT03NTU0MzY5X3dnZDRvJnU9Sm9leVdhc2hidXJu
Option: No
Button: Attached to this thread
www.joeywashburn.com