Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Embedded media player in post Details »»
Embedded media player in post
Version: 1.00, by ericgtr ericgtr is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 11-24-2004 Last Update: 05-14-2005 Installs: 149
 
No support by the author.

This is my first mod for VB, I personally need it on my site because it's focus is MP3's, it may be able to be customized for other uses I would think. What it does is embeds Windows Media Player into the body of the post (as well as the regular attachment) using bbcode and plays the attached MP3 file. What this does upon completing the upload is allows the user to copy and paste the URL to the attached file if they choose.

Also, since this bbcode is the Windows Media Player it may also be able to play .avi, .wmv, .mpg etc. So to broaden this you can change the [MP3] [/MP3] tag to something else like [MEDIA] [/MEDIA] for example.

There is no option to secure this to specific groups, however you can use Princeton's Allow Group to Read Titles / Not Content modification as an alternative.

Better template formatting, also maybe add a javascript function so that a user can click to add the line of code to the post.

If you find this useful please Click Install

Update: Added an option to allow only certain groups to add the option to view/paste the URL in their post.

Show Your Support

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

Comments
  #62  
Old 02-25-2005, 04:43 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by madkidz
Nice hack. I will soon install it. Is there a way to limit only certain user groups to be able to upload this file.
Unfortunately that is still unavailable.
Reply With Quote
  #63  
Old 02-27-2005, 10:28 AM
Lars A Lars A is offline
 
Join Date: Sep 2004
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by docvader
I'm using this hack with great success. But I had another question about embedding players inside of posts. I'm embedding QuickTime, to show videos, and I'd like the background of the html that the QT player lives in (which gets embedded within the actual post), to match the postbit background color (all changeable, with the current style used, of course) Here's my html code:

Quote:
<html>
<head>
<title>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>

<body bgcolor="#000000">

<OBJECT CLASSID="xxxxxxxxxxxx" WIDTH="320" HEIGHT="256"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<PARAM name="SRC" VALUE="dechengwuxingbafa.mov">
<PARAM name="AUTOPLAY" VALUE="false">
<PARAM name="KIOSKMODE" VALUE="true">
<PARAM name="CONTROLLER" VALUE="true">
<PARAM name="LOOP" VALUE="false">
<EMBED SRC="xxxxxxxxx.mov" WIDTH="320" HEIGHT="256" KIOSKMODE="true" AUTOPLAY="true" CONTROLLER="true" LOOP="false" PLUGINSPAGE="http://www.apple.com/quicktime/download/">
</EMBED>
</OBJECT>
</body>
</html>




You can see what I mean here: http://x.russbo.com:16080/vb/showthread.php?t=61


I currently use black, as a default. Any idea what html code I can put into this, so that the background is not black, but, the color of the viewer's style's postbit background???


First of all Id like to thank ericgtr for the nice hack that I got working, and all the others that contributed with ideas and developments. Great job!

Now, I am in need to display Quicktime mov-files in posts in the same way, and I was first very happy to find docvaders contribution above.
But theres something fishy going on here... I have allmost no hair left on my poor old head. :ermm:

First out is the expression OBJECT CLASSID="xxxxxxxxxxxx".
Im a noob in vb and php, and even I can see that this will simply not work. It was easy to solve by going to Quicktime website and check the ID. Correct expression then becomes: OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" A bit different... But that is NOT my problem.

My problem is passing a src parameter for the file location and name, to this statement: <PARAM name="SRC" VALUE="dechengwuxingbafa.mov"> and for the statement: EMBED SRC="xxxxxxxxx.mov"
The Windows Mediaplayer solve this by using {param} instead of URL+filename. Basic... :tired:

In the "Apple universe", I simply cannot find the same thing. I have to give an absolute URL+filename to make it work, but then my BB-code manager just plays the same movie whatever I do with the tags later on.

I mean, pressing the new icon mov.gif in my wysiwyg editor gives me the tags [mov][/mov] and in between I just want to give the URL+filename for my excellent movie. Different in every post...

Wont work...

I have tryed the trick using the "sample.mov" in my website root. No good.

My conclusion right now, before I felt forced to ask u expert guys for help: "How on earth can these wealthy MAC-users stay alive?" :tired:

I'll put up a reward of ?1.000.000 thanks to the individual who can explain how the apple code communicates and passes arguments in this case!
Reply With Quote
  #64  
Old 02-27-2005, 12:39 PM
nexialys
Guest
 
Posts: n/a
Default

all sample codes for QuickTime manipulation are found here: http://developer.apple.com/samplecode/QuickTime/
Reply With Quote
  #65  
Old 03-08-2005, 04:48 PM
JAYEMULE's Avatar
JAYEMULE JAYEMULE is offline
 
Join Date: Mar 2002
Location: Ohio
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really like the looks and sound of this mod so I have installed it on my test board. I followed the directions to the letter but for some reason I see no sign of it when I go to upload a mp3 file. I do hope you continue work on this. It has great potential I think.
I will go back and double check to see if I could have copied something wrong from the post.

Keep up the good work and don't let this die out

Jaye
www.mules.org
Reply With Quote
  #66  
Old 03-08-2005, 04:59 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It doesn't actually appear until after the mp3 file is uploaded
Reply With Quote
  #67  
Old 03-08-2005, 05:38 PM
JAYEMULE's Avatar
JAYEMULE JAYEMULE is offline
 
Join Date: Mar 2002
Location: Ohio
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh yes of course Eric
OK so now when I go to upload an mp3 I get the dreaded 'page can not be displayed ' error. Not sure why, it has never happened before. Nothing I did should have affected it. I will try another file and see what happens. So far I have tried 3 different mp3 files.
Love this, can't wait to get my little problem figured out. I am running vb 3.7 if that matters.

Jaye
Reply With Quote
  #68  
Old 03-08-2005, 07:22 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have your files set to upload to the filesystem instead of the database? I would recommend it, especially if you are allowing mp3 files.
Reply With Quote
  #69  
Old 03-10-2005, 10:28 PM
TundraSoul TundraSoul is offline
 
Join Date: Mar 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Curious, the hack is installed correctly, the player appears in the post, and the attachment is underneath it. However, when I press play on the player in the post, nothing happens. Am I missing a setup option somewhere?

Also, I added the mp3 as a storage type, since I didn't have it. What should the Mime Type be if it matters?

Thanks!
Reply With Quote
  #70  
Old 03-10-2005, 10:39 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It sounds like the mp3 isn't pathed properly, make sure you change it in your attachmentbit template to your settings here:

Code:
yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3
It shouldn't matter for this but I use:

Content-type: audio/x-mpeg
Reply With Quote
  #71  
Old 03-10-2005, 11:11 PM
TundraSoul TundraSoul is offline
 
Join Date: Mar 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I can download the mp3 attachment and it plays fine in my local player. It just doesn't play inline. I click the play button and nothing happens.



Quote:
Originally Posted by ericgtr
It sounds like the mp3 isn't pathed properly, make sure you change it in your attachmentbit template to your settings here:

Code:
yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3
It shouldn't matter for this but I use:

Content-type: audio/x-mpeg
Reply With Quote
Reply


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 04:32 AM.


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.04541 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete