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 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 09:20 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.01642 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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