Version: 1.00, by Moya
Developer Last Online: Aug 2009
Version: 3.0.3
Rating:
Released: 11-22-2004
Last Update: 04-21-2005
Installs: 19
No support by the author.
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:
//################### set usergroup can access this script ############################
if (!in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5,6)))
{
print_no_permission();
}
$file_extension = array(".wma", ".mp3", ".rm", ".ram", ".wmv");
$filesizes = "31457280"; // max filesize allowed to upload (in KB)
$filesizemb = number_format($filesizes/1024,1) . "MB"; // convert to mb
$completesitelocation = "http://www.123.com/yourforum/musicdirectory/"; // Full URL to upload dir
$physicallocation = "/var/www/html/yourforum/musicdirectory";
$metaurl="http://www.123.com/yourforum/musicmetadirectory/" ;
$metadir="/var/www/html/forum/musicmetadirectory/";
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
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
i think this is a nice hack if the 2 upload/download are bundle together and the files are not stored in public directory that cannot be accessed directly except through vbulletin.
I installed it successfully, but have some problems. When I upload any .mp3, ram, wmv or .wma file it get uploaded withtout any problem. when I try to uploda .rm , files it give me fillowing error message
Warning: fclose(): 19 is not a valid stream resource in /home/mysite/public_html/vbb/songloadersforvbnew.php on line 214
I have checked it does upload the actual file but no file generated under meta directory.. Any idea how can I solve this problem ?
In addition is it possible to to upload media files like .mpeg, .mov, wav, mpg etc.,
is there anyway someone can show me an example of what a real songloadersforvb.php looks like? I installed it and it does not work, plus what does this mean? "$metaurl="http://localhost/vbb/musicmeta/" ;
$metadir="c:/vbb/musicmeta/";"
thanks
Yeah Im stuck on that also.
I have everything working except when I try to upload a file it says it cant do it. I think they may be the reason.
I installed it successfully, but have some problems. When I upload any .mp3, ram, wmv or .wma file it get uploaded withtout any problem. when I try to uploda .rm , files it give me fillowing error message
Warning: fclose(): 19 is not a valid stream resource in /home/mysite/public_html/vbb/songloadersforvbnew.php on line 214
I have checked it does upload the actual file but no file generated under meta directory.. Any idea how can I solve this problem ?
In addition is it possible to to upload media files like .mpeg, .mov, wav, mpg etc.,
Regards,
Basit
Hi Basit
Please download the songloader file again. I fix the problem.
As for various file type, you can upload the file but I will have to do a research on the appropriate meta tag for each extension.
Can you list the media file type for me? I will get back to you on this one
I hope you can fix the next cos its working fine with other ext...
I am using the attached file code to upload other files and could not use it to upload ram, rm, wmv. mp3 extensions although I added the correct mime to the list $types..