The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Embedded media player in post Details »» | |||||||||||||||||||||||||
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
|
Comments |
#62
|
||||
|
||||
Quote:
|
#63
|
|||
|
|||
Quote:
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! |
#64
|
|||
|
|||
all sample codes for QuickTime manipulation are found here: http://developer.apple.com/samplecode/QuickTime/
|
#65
|
||||
|
||||
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 |
#66
|
||||
|
||||
It doesn't actually appear until after the mp3 file is uploaded
|
#67
|
||||
|
||||
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 |
#68
|
||||
|
||||
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.
|
#69
|
|||
|
|||
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! |
#70
|
||||
|
||||
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 Content-type: audio/x-mpeg |
#71
|
|||
|
|||
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:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|