Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Play FLV/MP4 Attachments! Details »
Play FLV/MP4 Attachments!
Mod Version: 1.1, by Frosty (Member) Frosty is offline
Developer Last Online: Dec 2011 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (2 votes - 5.00 average) Installs: 18
Released: 20 May 2011 Last Update: Never Downloads: 161
Not Supported Additional Files Re-usable Code Translations  

First of all, you will need to create a new BB Code:

Login to your Administration Panel, find "Custom BB Codes" in the sidebar, click it. And click add new BB Code:

Title: attachvideo
BB Code Tag Name: attachvideo
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace "yoursite.com" with the domain of your site.

It will give you this message:
"The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes. "

Click "Continue", since the BB Code will work without any problems...

Example:
[attachvideo]2322[/attachvideo]

Description:
With this BB Code you will be able to embed multiple videos that are uploaded as attachments.

Use {option}: No.

Remove Tag If Empty: Yes.

Disable BB Code Within This BB Code: Yes.
Disable Smilies Within This BB Code: Yes.


Save it...

Now, how to take out the attachment ID from the link?

Let's say that you uploaded some .flv file, when you hover over it, you'll see something similar to this:
http://yourdomain.com/attachment.php...1&d=1302358811

Part that you need is "2322"

Simply wrap it in:

[attachvideo]2322[/attachvideo]

You need JW Player for this, download it here:

http://www.longtailvideo.com/players/jw-flv-player/

Create a new folder in your public_html called "flashplayer", upload these files in it:
- jwplayer.js
- player.swf
- swfobject.js
- yt.swf




Enjoy!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements JW + Flowplayer For FLV - MP4 Video Player JAFRI vBulletin 4.x Add-ons 77 31 May 2014 02:46

  #16  
Old 31 Jul 2011, 02:02
preemz10314 preemz10314 is offline
 
Join Date: Oct 2010
I get an attachment to big error trying to upload a 10mb file. I edited my max_upload and max_post size limits in WHM still get a to big error? am i missing something?
Reply With Quote
  #17  
Old 01 Aug 2011, 21:05
Frosty Frosty is offline
 
Join Date: Apr 2011
Have you increased the attachment size in the Attachment Manager? It's located in the Control Panel of your forum.
Reply With Quote
  #18  
Old 03 Aug 2011, 04:40
andyv72 andyv72 is offline
 
Join Date: Feb 2008
VB 4.1.5. not work

Der folgende HTML-Code ist nicht korrekt formatiert. Alle Attribute sollten in Anführungszeichen gesetzt sein.

The following HTML-code is not formatted correctly. All attributes should be enclosed in quotes.

<script type="text/javascript" src="http://www.domain.de/player/swfobject.js"></script> <div id="player_{param}" align="center">Something went wrong, video can"t load. Refresh the page.</div> <script type="text/javascript"> var so = new SWFObject("http://www.domain.de/player/player.swf","jsplayer_{param}","720","480","6","#000000"); so.addParam("allowfullscreen","true"); so.addParam("allowscriptaccess","always"); so.addParam("wmode","opaque"); so.addVariable("file","http://www.domain.de/attachment.php?attachmentid={param}"); so.addVariable("width","720"); so.addVariable("height","480"); so.addVariable("javascriptid","jsplayer_{param}"); so.addVariable("enablejs","true"); so.addVariable("type","video"); so.addParam("allownetworking","all"); so.addVariable("controlbar","bottom"); so.addVariable("showdigits","true"); so.addVariable("showstop","true"); so.addVariable("stretching","uniform"); so.addVariable("smoothing","true"); so.addVariable("autostart","false"); so.write("player_{param}"); </script>

Last edited by andyv72; 03 Aug 2011 at 05:02.
Reply With Quote
  #19  
Old 04 Sep 2011, 13:13
maherl maherl is offline
 
Join Date: Apr 2010
Originally Posted by preemz10314 View Post
I get an attachment to big error trying to upload a 10mb file. I edited my max_upload and max_post size limits in WHM still get a to big error? am i missing something?
Hi Frosty, I am also receiving errors when trying to upload MP4 files larger than 10Mb. I have set the size of attachments in Attachment Manager as mentioned, but I am unfamiliar with WHM - what is this?

Are there any other settings that also need to be adjusted to get this working above 10Mb?

If I need to change max_upload and max_post size parameters also, could you explain how this is achieved?

Thanks in advance.

Last edited by maherl; 04 Sep 2011 at 13:42.
Reply With Quote
  #20  
Old 04 Oct 2011, 19:36
10 Gauge's Avatar
10 Gauge 10 Gauge is offline
 
Join Date: Nov 2008
This is not working for me, I just got "Loading the player..." and the player never loads.
__________________
Owner of www.mauldroppers.com, the Internet's largest and most active CB radio community!
Reply With Quote
  #21  
Old 12 Feb 2013, 03:44
vBarsiv vBarsiv is offline
 
Join Date: Jul 2010
Thanks you. Good hack
Reply With Quote
  #22  
Old 22 Feb 2013, 18:32
Netjummer Netjummer is offline
 
Join Date: Feb 2012
hello i get this

Loading the player...


Version 4.1.10
Reply With Quote
  #23  
Old 22 May 2013, 18:07
keyla31's Avatar
keyla31 keyla31 is offline
 
Join Date: Feb 2009
same thing says loading player and thats it
Reply With Quote
  #24  
Old 18 Sep 2013, 17:34
benjaminbih benjaminbih is offline
 
Join Date: May 2007
same thing here,

does anobody had a solution for ,,Loading player"
Reply With Quote
  #25  
Old 16 Oct 2013, 17:33
meaters meaters is offline
 
Join Date: Jul 2010
Same here I am stuck with "Loading player"
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:27.

Layout Options | Width: Wide Color: