![]() |
Multimedia Upload
Hello all,
Awhile back, I post a a script that allow vb3 member to upload files like mp3, wma, etc. I have no idea that such upload is needed for our board :) I got a lot of request for instructions and direction on that script. As a result, I put aside a little time from my working hour and work on this new upload script. What this script does is: - Allow members to select a file from their local computer. -Upload to the board's predifined directory. -Create a meta file that associated with the current uploaded file, and save to another directory. This meta will be used by the music bb code The uploaded files are not managed by database. ############## File edit ############## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Open includes/adminfunctions_template.php ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Find Code:
'subscription' => $vbphrase['group_paid_subscriptions'], Code:
'multimedia_management' => 'Multimedia Management', ############## Template Edit ############## Insert at the end of headinclude Code:
<SCRIPT TYPE="text/javascript"> Save ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Open Editor Temlates >> editor_toolbar_standard ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Find Code:
<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if> Code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Open Editor Temlates >> editor_toolbar_wysiwyg ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Find Code:
<if condition="$smiliebox"><td class="controlbar">$smiliebox</td></if> Code:
Upload multimediamanagerinstall.php to your admincp directory Run this installer from your admincp directory Delete this file after you install Open songloadersforvb.php and modify these lines Upload songloadersforvb.php to your forum root PHP Code:
You will have to create the BB code for your music format. If you need the bb code, I will post it up here. Thanks |
Here are some pix
|
Edit: I needed to run the installer.
|
Quote:
|
Quote:
|
This is for wma
PHP Code:
PHP Code:
This for mp3 PHP Code:
This is for wmv PHP Code:
:) :) |
Quote:
Use my bb code and try it on your board |
Quote:
|
Quote:
I will look at it tonite. I will have to modify it and take out one directory to save your server capacity |
Quote:
|
what is it different with the Image/File Uploader, the installer + switch statement? :cool:
|
Quote:
Actually, this is based on your image/file uploader. This is a part of my upload code that will create meta files and being managed by database. I strip it out so that I can perform upload and meta creation functions. |
Nice job
Thanks |
Quote:
|
hmmm sounds like something i might use
|
Nice work stitch.
|
Please make a txt install instructions file, that would be perfect
Thanks |
Quote:
Done!!! |
thank you
|
Hmmm Nice Mod.. INstalled it .... Btw ... is it possible 2 merge this with uploading of .ZIP formats ?... would be lovely if its possible :) Thankyou
|
Quote:
If you have the need to upload other file format, out of vbulletin scope, then yes it is possible to this. Other than that, vb's attachment management is my prefered choice, because it is secured. The link are masked and taken care by database. |
will this show also show the uploaded songs in attachements?
|
Quote:
Currently, it can support realplayer, mp3, wma, and wma. |
Quote:
Thanks |
Any possibility of just getting the raw bbcodes? I'd like to use the media player as a standard bb code to be used by all my users. Thanks!
|
I post the bbcodes on the first page
|
It doesn't work. I don't know what i've done wrong, we use the mediaplayer as mp3 streamsource
|
Quote:
You mean the bbcodes or the upload script? |
Quote:
i also have the webpage hack for the profile and i would like to add a music background to that as well.. it uses both html codes and bbcodes. I try adding html codes to play background music but doesn nothing.. well anyways.. the first question is what i really need.. thanks |
Those are for bbcode. You can add those bbcode thru the bbcode management under admincp
Where do you want to add music background? |
Quote:
|
Quote:
Can you tell me what happen so I can look into it? |
will the above posted bbcode work with any media..or do i have to add this hack for it to work?
|
It will work without this hack
|
sorry.. this is might be a stupid question. but how do i enter the bbcodes in the admin for the custom bbcodes. still a novice here.
what would i enter for title, tag, and replacement. example and description |
Quote:
Take a look of the wma tag in the pix. You can do the same thing for other bbcode. I usually don't put anything in the description field. You can put in a short description of what that code does if you want |
thanks stitch
|
Thanks stitch *installed* ;)
|
My mistake... Thanks!
|
Hello All,
I just found out there is an issue running this script on apache server. I have attached the script for running under apache server. Just download the songloadersforvb_apache.php and rename to songloadersforvb.php. For those who encountered the "Couldn't Upload File" on apache and want a quick fix Open your existing file find PHP Code:
PHP Code:
Hope this help |
All times are GMT. The time now is 01:38 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:
|