vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Files Upload Center - Upload Your Files To External Server (https://vborg.vbsupport.ru/showthread.php?t=113583)

beebi 04-29-2006 10:57 AM

the .htaccess doest work with some servers
so you have to delate it some time

fular 04-30-2006 04:15 AM

I installed the file upload center but I am having two problems which I hope you can help me to fix.

1) I am able to upload files with mp3, doc, rm extensions but if I try to upload files with gif or jpeg extension then I get the error 'you did not select a file'

I think my setting is right because I do see the mp3 and rm files upload to my ftp site and I can see them, so I do not understand why it is giving me the error with the mp3 files.

2) after I upload the files is will show that the file is upload to this path

http://mysite/forum/index.php/uploaded/filename.mp3

I do not know why it is adding the index.php part?
and the strange thing is if I put my mouse over the link it will show the link as
http://mysite/forum/uploaded/filename.mp3
Which is the correct link and I can get the uploaded files.

any thoughts on this?

Great work by the way.

Tyegurl 04-30-2006 04:18 AM

Quote:

Originally Posted by fular
I installed the file upload center but I am having two problems which I hope you can help me to fix.

1) I am able to upload files with mp3, doc, rm extensions but if I try to upload files with gif or jpeg extension then I get the error 'you did not select a file'

I think my setting is right because I do see the mp3 and rm files upload to my ftp site and I can see them, so I do not understand why it is giving me the error with the mp3 files.

2) after I upload the files is will show that the file is upload to this path

http://mysite/forum/index.php/uploaded/filename.mp3

I do not know why it is adding the index.php part?
and the strange thing is if I put my mouse over the link it will show the link as
http://mysite/forum/uploaded/filename.mp3
Which is the correct link and I can get the uploaded files.

any thoughts on this?

Great work by the way.

out of curiosity...do you have Photoplog installed? if so you may need to go to the control settings and add your file paths...

fular 04-30-2006 04:58 AM

Quote:

Originally Posted by Tyegurl
out of curiosity...do you have Photoplog installed? if so you may need to go to the control settings and add your file paths...

No it is not installed.

Tyegurl 04-30-2006 05:09 AM

okay the only other thing i can think of is that you added index.php in the filepath to your uploaded folder in the settings? or it is the path tha is in your vbulletin settings....other than that i am out of ideas sorry.

fular 04-30-2006 05:15 AM

Okay I was able to remove the index.php it was the vbulletin settings. Thank you for your help.
And that fixed the gif and jpeg problem too. Thank you so much

beebi 04-30-2006 12:06 PM

the gif and jpeg problem request GD Library

Jay... 05-04-2006 08:42 PM

Hi beebi, my upload centre seemed to sort itself out after a couple of days, Just one question, How can i remove the [media] tags from the link it gives?

Replicators 05-05-2006 01:57 AM

This would be awesome if it worked with vbbux/vstore! The uploader can set the price for their download!

beebi 05-06-2006 03:59 AM

Quote:

Originally Posted by Jay...
Hi beebi, my upload centre seemed to sort itself out after a couple of days, Just one question, How can i remove the [media] tags from the link it gives?

don't you want a tag to apply it?

I already have one for mp3 and ra

beebi 05-06-2006 04:01 AM

Quote:

Originally Posted by Replicators
This would be awesome if it worked with vbbux/vstore! The uploader can set the price for their download!

sooooooooooooon the 3.3.4 well come

chanthuyen 05-06-2006 05:09 AM

Thanks beebi.............

Jay... 05-06-2006 05:04 PM

Quote:

Originally Posted by beebi
don't you want a tag to apply it?

I already have one for mp3 and ra

no mate, i want to remove the tag, how can i do that?

beebi 05-06-2006 11:16 PM

open uploader.php

find
$msgcode

it's for ram,mp3,flash

so...

del what you want
thank you

Jay... 05-06-2006 11:28 PM

Hi beebi, im a little confused, if i want to remove JUST the media tags, which line to i delete?

is it... $msgcode = '[MEDIA]' . $fileurl . '[/MEDIA]';?

beebi 05-07-2006 06:16 AM

Quote:

Originally Posted by Jay...
Hi beebi, im a little confused, if i want to remove JUST the media tags, which line to i delete?

is it... $msgcode = '[MEDIA]' . $fileurl . '[/MEDIA]';?

yes

or Waite to the next release

you'll love it

Jay... 05-07-2006 09:38 AM

how long will i have to wait?

beebi 05-07-2006 05:10 PM

4 days

edit: I gess that I need more then 2 days

BraindGee 05-08-2006 05:25 AM

Is there anyway I can edit what part of the file path is shown in $fileurl?

I would like to prevent my users using the img tag, and linking to other 3rd party sites. Thus i have created second IMG tag with half of my domain name in it, up to the point of uploader. i.e. http://www.domain.com/uploader.

So I would like the they code bit to only show their folder name, and file name rather than the whole url.

Is this possible?

beebi 05-09-2006 03:17 AM

Quote:

Originally Posted by BraindGee
Is there anyway I can edit what part of the file path is shown in $fileurl?

I would like to prevent my users using the img tag, and linking to other 3rd party sites. Thus i have created second IMG tag with half of my domain name in it, up to the point of uploader. i.e. http://www.domain.com/uploader.

So I would like the they code bit to only show their folder name, and file name rather than the whole url.

Is this possible?

a hook been added right there

BraindGee 05-09-2006 05:42 AM

Sorry, there is a hook for this? or you are going to add a hook for this?

beebi 05-09-2006 07:13 AM

no. today I'm going to Release it

please click install to received the update

https://vborg.vbsupport.ru/vborg_mis...hreadid=113583


thank you

OmeR4eVeR 05-09-2006 09:00 AM

Thanx beebi
very nice hack

BraindGee 05-09-2006 03:45 PM

Quote:

Originally Posted by beebi
no. today I'm going to Release it

please click install to received the update

https://vborg.vbsupport.ru/vborg_mis...hreadid=113583


thank you

Excellent! **Installs**

Can't wait!.

SaN-DeeP 05-09-2006 04:05 PM

great addon beebi,
thanks for sharing your work with community :)

waiting eagerly for this feature - 6- disable using GD Library to check img and swf files.

beebi 05-09-2006 05:49 PM

broken java script been fixed

please reinstall the hake

and import the the product

BraindGee 05-09-2006 05:52 PM

beebi, liking the new features.

Im having a looky through the hooks to see if i can amend the $fileurl to only show the users folder number, and picture name. - Can't see it in any hooks.

wizardan 05-09-2006 06:02 PM

Just upgraded.
Tested the new 'add a description' feature.
Checked the box, uploaded a file.
Nowhwere did I see how to add a description.
Ideas?

Still love the hack, by the way.
It works great for our musician members to upload .mp3 and .wav files:)

mbaa 05-09-2006 06:03 PM

Great work beebi :up:

Go Ahead :up:

beebi 05-09-2006 06:17 PM

Quote:

Originally Posted by BraindGee
beebi, liking the new features.

Im having a looky through the hooks to see if i can amend the $fileurl to only show the users folder number, and picture name. - Can't see it in any hooks.

request hook and I'll add it in the next release

beebi 05-09-2006 06:20 PM

I just need your support to keep updating the hack
and installing the hake will be just what I need
thanks to all of you

BraindGee 05-09-2006 06:21 PM

Quote:

Originally Posted by beebi
request hook and I'll add it in the next release

Is This enough information?

beebi 05-09-2006 06:26 PM

just tel me the line NO.
I'm so so tired to think :tired:

home9000 05-09-2006 06:31 PM

Good job beebi
It's very nice hack and most the members need it

I think you need to hide the download link for files and give the ability to download to special group only (ban user can't download
You can do this if you create two folders for each user one for pictures and one for files. Pictures folder will be direct access. The files folder need to be hidden and the name of the folder will be random name and you can keep the name of this folder in database

What is the benefit to hide download link?
Main benefit to stop stolen the bandwidth and we all face this problem

beebi 05-09-2006 06:36 PM

Rewriting the URL well be great
what do you think?

BraindGee 05-09-2006 06:47 PM

Quote:

Originally Posted by beebi
just tel me the line NO.
I'm so so tired to think :tired:

Im not sure what you mean?

I don't know how to change it so it doesn't give the whole url to the file.

Ill give you an example.

Ive created a new BBCode entry. (called IMG2)

<a href="http://www.domain.com/forum/uploaded/{param}" target="_blank"><img class="tborder" src="http://www.domain.com/forum/uploaded/{param}" width="640" border="1" />

With your hack, once a file has been uploaded it provides the whole URL to the file, so IMG]http://www.domain.com/uploaded/1/image.jpg /IMG] I would like to remove the "http://www.domain.com/uploaded" part, presenting only IMG]1/image.jpg/IMG]

This in conjunction with my BBCode, would mean they could only ever use the new IMG tag (or the attachment feature) i created that contains my domain name, and prevent them from abusing the BBCode to link to external sites. (we have had alot of articles written by people 3 years ago using IMG tags. Since they have left the site, they have also cleaned up their file storage area, meaning the IMG tags linking to that file no longer work, and thus make he article worthless..)

that make sense?

beebi 05-09-2006 06:54 PM

{param}

is it the img name?

Developer 05-09-2006 06:54 PM

i like ur idea ;)
but i think u mean With your hack, once a file has been uploaded it provides the whole URL to the file, so IMG]http://www.domain.com/uploaded/1/image.jpg /IMG] I would like to remove the "http://www.domain.com/uploaded" part, presenting only [IMG2]1/image.jpg[/IMG2]

beebi 05-09-2006 06:56 PM

OK

open uplaoder.php

find
PHP Code:

$msgcode '[img]https://vborg.vbsupport.ru/[/img]'

replace it with

PHP Code:

$msgcode '[IMG2]' $path $vbulletin->GPC['file']['name'] . '[/IMG2]'


BraindGee 05-09-2006 07:07 PM

Quote:

Originally Posted by beebi
OK

open uplaoder.php

find
PHP Code:

$msgcode '[IMG]' $fileurl '[/IMG]'

replace it with

PHP Code:

$msgcode '[IMG2]' $path $vbulletin->GPC['file']['name'] . '[/IMG2]'


I managed to figure that out.. let me try again :)

the $fileurl presents the full domain name to the user once the picture has been sucessfully uploaded.. so IMG]http://www.domain.com/uploaded/1/image.jpg /IMG]

I don't want that.

when the file has been uploaded, i would like it to present only the users folder name, and the picture name whcih they uploaded. so 1/image.jpg.

That make more sense?

edit: im trying to think of a better way to explain it.


All times are GMT. The time now is 03:34 PM.

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.01797 seconds
  • Memory Usage 1,835KB
  • 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
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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