vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Multimedia Upload (https://vborg.vbsupport.ru/showthread.php?t=72060)

frostr1 01-13-2005 05:31 PM

Quote:

Originally Posted by stitch
Done!!!

I tired out you hack, I really want this one to work :)
When ever I try to do a upload it says this: "you do not have permission to access this page. This could be due to one of several reasons:" I attached a bit of my songloadersforb for you to take a look. What do I use for user id?

see pic please :)

frostr1 01-14-2005 04:57 AM

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

Viks 01-14-2005 05:11 AM

I would like to instal this hack as well as the this one https://vborg.vbsupport.ru/showthrea...5&page=1&pp=15
(coz both work together), Im wondering if anyone here has successfully installed this hack.

is there a demo site to see this thing in atction.

Moya 01-14-2005 07:47 AM

This is the site that have the loader works

www.vietmaisau.com

within this code

PHP Code:

if (!in_array($bbuserinfo['usergroupid'], array(1,2,3,4,5,6,7,8,9,10,11,12)))
    { 
        
print_no_permission(); 
    } 

change 1,2,3,4,5,6,7,8,9,10,11,12 to your usergroup id

I have updated the loader with the format for apache server.

Download the the new one and rename to songloadersforvb.php

Moya 01-14-2005 07:51 AM

Quote:

Originally Posted by Viks
I would like to instal this hack as well as the this one https://vborg.vbsupport.ru/showthrea...5&page=1&pp=15
(coz both work together), Im wondering if anyone here has successfully installed this hack.

is there a demo site to see this thing in atction.


You just give me an idea to integrate both of them into one. I will see what I can do

Amavisca 01-14-2005 08:01 AM

Hey stich,

I just install this hax but seem not working for me :( It said Can't not up load although I think I will try it later. Btw I have a question: can u share the this code music: http://www.aotrangmongmo.com/forum/music.php
I really like them especially when u post 1 song and they mask the link so other can't steal it. Plz show us. Thnx in advance.

will paid some $ if u can help me out w/ resonable price

Moya 01-14-2005 08:13 AM

Honestly,

that one is not finished. I have to finish my company project before getting back to that one.

Amavisca 01-14-2005 08:20 AM

Pm me if u are interested in to share the code. I will pay some $ for it .
I really like the concept it hide ur true link location ( just like tialia.com )

Viks 01-14-2005 01:56 PM

Quote:

Originally Posted by Amavisca
Pm me if u are interested in to share the code. I will pay


Hi Stich, I Like the concept of the hack too :-
1. that files are not stored in the database but in a folder.
2. upload utility
3. mask real url

this is exactly what I was looking for my site too as i want users to be able to download, newsletters, online magaznines and other publications off my forum, however I would prefer if you release a completed hack (as you write before) with the download and upload utility together in one hack as per as add functionality to not just multimedia but other files - such as TXT, DOC, PDF etc..

i agree with Amavisca too.

thankx,

frostr1 01-16-2005 12:50 AM

Quote:

Originally Posted by stitch

change 1,2,3,4,5,6,7,8,9,10,11,12 to your usergroup id

I can't get this to work, see image below, thats the msg I get, I would really like to have this mod work, I did all the steps above, when I ran the install file it went though but all I got was a blank background after istall is that normal????

take a look at the pics, what I am doing wrong?

Moya 01-16-2005 01:15 AM

The correct syntax should be
PHP Code:

 if (!in_array($bbuserinfo['usergroupid'], array(5,6,7,9))) 

Where 5,6,7,9 are your usergroup id. Keep $bbuserinfo['usergroupid'] the same

pelican 01-16-2005 05:28 AM

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.

Basit 01-23-2005 12:02 AM

Hi Stitch,

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

KevinL 04-22-2005 03:36 AM

Quote:

Originally Posted by frostr1
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.

Please help.

Moya 04-22-2005 06:09 AM

what is your platform?

If it is IIS then $metaurl="http://www.yourdomain.com/forum/musicmetadirectoryname/
$metadir="c:/forum/musicmetadirectoryname/"

Moya 04-22-2005 06:17 AM

Quote:

Originally Posted by Basit
Hi Stitch,

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

KevinL 04-22-2005 12:01 PM

Quote:

Originally Posted by stitch
what is your platform?

If it is IIS then $metaurl="http://www.yourdomain.com/forum/musicmetadirectoryname/
$metadir="c:/forum/musicmetadirectoryname/"

It's Linux, Apache. I put your quick fix in that was in this thread also.

I get the pop up box and everything but it just says it couldn't upload.

It's got me so confused :ermm:

I think this is great and I really want it to work.

Thanks for the reply.

Ghanem 04-30-2005 03:25 PM

Hi,

I have the same problem..

My uploadin folder www.la7odood.com/vb/upload/0405

I have apache, and have put:
/home/la7odood/public_html/vb/upload/0405

but still it did not work..
always get the error:
Couldn't Upload File.

any Idea what could be wrong?

Regards,

Moya 05-01-2005 06:39 PM

Hi Kevin and unicorn,

I am a little bit rusty with apache. I will get back to you on this

thanks

Ghanem 05-01-2005 07:40 PM

Thank you stitch..

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..

I used this site to get the mime:
http://www.filext.com/

this is the code of uploader.php:

PHP Code:

 <?php 
require_once('./global.php'); 
//========================================
// | uploading center properties |
//========================================
$path "upload/0505"// uploading folder
$size "3000000"// file seize in byte
$types = array("application/x-zip-compressed""application/x-rar-compressed""application/x-shockwave-flash""text/plain""image/gif""image/jpeg""image/png""image/pjpeg"); // file ext
// <!-- .zip --> <!-- .rar --> <!-- .swf --> <!--.txt--> <!--.gif--> <!--.jpg--> <!--.png-->
//========================================
eval('$navbar = "' fetch_template('navbar') . '";');
 
if ( [
PH P]%4$s[/PH PREQUEST['do'] == "") {
eval(
'print_output("' fetch_template('uploader') . '");');
}
if ( [
PH P]%4$s[/PH PREQUEST['do'] == "doupload") {
 
if (
$file_name == "")
// file name check
$msg "you did not chose a file";
// file name check
elseif (file_exists("./$path/$file_name"))
// file exist check
$msg "file allready exist plz chahnge the name";
// file exist check
elseif (!in_array("$file_type"$types))
// file ext check
$msg "extention not allowed<br>your file extenstion : $file_type";
// file ext check
elseif ($file_size >$size)
// file size check
$msg "file is larger than allowed : $size بايت <br>file size you uploaded : $file_size";
// check file size
else
{
$msg "file uploaded sucsessfuly <br> <a href=\"$vboptions[bburl]/$path/$file_name\">$vboptions[bburl]/$path/$file_name</a>";
copy($file"$path/$file_name");
}
eval(
'print_output("' fetch_template('uploader_msg') . '");');
}
 
//############################################################################
//# uploader center #
//# fnan4arab #
//# : PHPvillage.com #
//############################################################################
?>

Regards

SoloX 05-05-2005 12:22 AM

Can I upload media to a different server than that hosts the board?

thanks

KevinL 05-06-2005 10:13 PM

Sweet I just got this to work!

yoyoyoyo 07-14-2005 06:57 PM

When I upload an mp3 I get this error:

Quote:

Warning: fopen(/home/mysite/public_html/music/3.m3u): failed to open stream: No such file or directory in /songloadersforvb.php on line 150
I checked that the directory indeed existed, and then tried again, and got an error that said the song already existed. I checked the upload folder and it was not renamed or converted to .m3u, yet it was obviously looking for one.

I checked and the directory is chmodded to 777.

Any idea what I am doing wrong?

:squareeyed:

edit: NEVERMIND! It was a non-trailing slash on the file path

ALSO: The successful upload window was weird looking, with the forum header so I removed:

Code:

<center>$header</center>
from the multimedia_management_result template since I felt that it really did not belong there.

Thanks again.

Gio~Logist 09-11-2005 02:38 AM

Is it possible to limit the amount of files in which they may upload?

Also, is it possible for them to DELETE files?

angkor408 09-05-2006 11:20 PM

Hi, how come when I upload mp3 or any wav file got an error saying:

Warning: fopen(/home/users/web/b2126/pow.timmy408/htdocs/forums/music/metadir1_7.) [function.fopen]: failed to open stream: No such file or directory in /includes/class_atmmuploader.php on line 232.

Any suggestion? Angkor


All times are GMT. The time now is 02:01 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.01269 seconds
  • Memory Usage 1,820KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete