Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Play FLV/MP4 Attachments! Details »»
Play FLV/MP4 Attachments!
Version: 1.1, by Frosty Frosty is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 05-19-2011 Last Update: Never Installs: 18
Re-useable Code Additional Files Translations  
No support by the author.

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:
HTML Code:
<script type="text/javascript" src="http://yoursite.com/flashplayer/jwplayer.js"></script>
<div id='mediaspace_{param}'>Loading the player...</div>
<script type='text/javascript'>
jwplayer('mediaspace_$attachment[attachmentid]').setup({
'flashplayer': 'http://yoursite.com/flashplayer/player.swf',
'file': 'http://yoursite.com/attachment.php?attachmentid={param}',
'controlbar': 'bottom',
'width': '720',
'height': '480',
'type': 'video',
'provider': 'video'
});
</script>
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

File Type: zip player.zip (284.4 KB, 277 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-22-2011, 09:09 PM
CRDeveloper's Avatar
CRDeveloper CRDeveloper is offline
 
Join Date: Aug 2009
Location: Costa Rica
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol i've seen that video before, very good hahaha

Reply With Quote
  #13  
Old 07-07-2011, 12:05 PM
zorcocuq zorcocuq is offline
 
Join Date: Apr 2011
Location: Izmir,Turkey
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
  #14  
Old 07-14-2011, 01:41 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried it, but it does not work for me. I just keep getting the "Something went wrong, video can"t load. Refresh the page" error.

Please help.
Reply With Quote
  #15  
Old 07-15-2011, 09:37 AM
Frosty Frosty is offline
 
Join Date: Apr 2011
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Taurus
Can you please post your settings here?

If you've uploaded all files, and if you've changed the path to your url in the configuration, there should be absolutely no problem.
Reply With Quote
  #16  
Old 07-15-2011, 12:20 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Frosty View Post
@Taurus
Can you please post your settings here?

If you've uploaded all files, and if you've changed the path to your url in the configuration, there should be absolutely no problem.
I sent you a PM of my bbcode settings. Thanks for looking into it for me.
Reply With Quote
  #17  
Old 07-31-2011, 12:02 AM
preemz10314 preemz10314 is offline
 
Join Date: Oct 2010
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #18  
Old 08-01-2011, 07:05 PM
Frosty Frosty is offline
 
Join Date: Apr 2011
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you increased the attachment size in the Attachment Manager? It's located in the Control Panel of your forum.
Reply With Quote
  #19  
Old 08-03-2011, 02:40 AM
andyv72 andyv72 is offline
 
Join Date: Jan 2008
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Quote:
<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","#0 00000"); 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>
Reply With Quote
  #20  
Old 09-04-2011, 11:13 AM
maherl maherl is offline
 
Join Date: Apr 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #21  
Old 10-04-2011, 05:36 PM
10 Gauge's Avatar
10 Gauge 10 Gauge is offline
 
Join Date: Nov 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is not working for me, I just got "Loading the player..." and the player never loads.
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 05:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04774 seconds
  • Memory Usage 2,325KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete