![]() |
Embedded media player in post
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. |
Nice job, thanks !
I 'll test it. /me clicks install |
Very very nice. Once its final I will install!
|
looks nice, but ain't it template mod rather than code hack?
|
this is AWSOE just what i needed, damn you rock
1 thig, how can i make it so it does not show the video window? its only mp3 no video allowed, but on my site it shows the video window and controls shoud just be controls, posibally song length and stuff Thanks |
Great hack...Wait to install it when u will have it secure on specific usergroups only
:) |
Quote:
|
Quote:
|
Quote:
In fact my PC always used quicktime but i changed the settings to use WMP |
Quote:
|
but anyway since i was ignored let me ask again, how can i make this only show the controls and song length, right now it shows a video window too, i dont allow video so thats pontless and looks weird
Thanks! |
Quote:
|
Quote:
|
ok one more problem when i put the code into the template it does not word wrap so its wider then the pop-up window
so i wanted to put it in newpost_attachmentbit but then after you upload it does not refresh the page like it should any solution? |
i think its the template your using it works for you in your screenshot, when you make a hack you really should do so with the default template.
anyway i notice that ont he default template you should remove the </table> at the bottom in order for the file size and close window buttons to NOT break out of the template. hence the beta release i guess |
Quote:
|
did u read what i said about wordwrap though?
i still have a problem with the width f the popup and the width of the URL if the url wrapped it would fit fine |
It works ok :) Is it a surprise that it plays avi movies to with the mp3 tags?
|
Quote:
|
Quote:
|
3.0.3
and i just copied and pasted the code i just changed my url so its not like i changed anything. I like it, i just need to fix that |
Quote:
|
i use this for videos..so far im WM9 it works with everything i tried. .ava, .asf, .wmv, .asx.
Thamks for the hack ericgtr. Someone finally made a usefull hack. |
Quote:
|
Is their anyway to set this up so people can use it as a signature?
|
Quote:
|
Quote:
:( |
Quote:
if you wanted to you could edit the bb code to be [media] [/media] if you wanted it to be for various formats. |
ericgtr,
nice mod!! :) |
Great hack... JUST GREAT..
Perfect support. man you are good!!!! Thank you for this usefull hack. |
Quote:
|
Quote:
|
<param name="baseURL" value>
Should be <param name="baseURL" value="http://YOURDOMAIN.com/YOURFORUMS> or something :) |
Quote:
|
[high]* KW802 clicks install for future usage/reference. :D[/high]
|
Works great. Very imaginative and creative. But, you have to make more changes if you want to upload video, yes?
Quote:
rich |
Quote:
Also, if you want to use .avi (or another extension) for example you would need to specifiy it here in the newattachmentbit, the user may also simply change it after pasting it into the post: Code:
<b>[MP3]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].avi[/MP3]</b> |
Yes, understand. Awesome thing you've done here. But, it shouldn't be too difficult for you guys to expand on this, and list options (mpg, mpeg, avi, mpeg4, etc) that users can click on, in a radio box, and have the copy and paste code change automatically. Or, take it one more step, have it insert into the post automatically after the file type changes. Just a thought.
As I'm far from a coding genius, this would be beyond me. But, I don't think it would be something too difficult for you guys to accomplish. And it would make for a great improvement to a wonderful hack. Oh, and I tried changing it to "media" for the hell of it, and I screwed it up. Not sure what I did, but it didn't work too well. (Works great, as per your specific directions, and very easy to install. Congrats!) rich russbo.com |
Quote:
|
Ericgtr, here, check this out, re adding buttons to automatically insert code???
https://vborg.vbsupport.ru/showthread.php?t=69855 Looking forward to your next iteration. You're doing a great job with this. rich russbo.com |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|