vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [RELEASE vb2.0+] vB Photo Upload (https://vborg.vbsupport.ru/showthread.php?t=27475)

ToraTora! 05-06-2002 05:18 AM

the paths are located somewhere near line 124 unless you altered the code or added/delete anything.

do a search on the upload.php file for "gif"

it should be around this..
<img border=0 src=images/upload_files/profile.gif

edit it to your pleasure.. depending on what you changed.

Second question scsa20..

what you are looking for is this.. on line 192.

URL=$shortpath/upload.php\"

that is just part of that echo statement.

What you will want to change it to is:
URL='forums.simon-soft.com/upload.php'

and see if that works. :)

Btw.. for those who care.. Brad said that if vB 3 does not come bundled with a photo upload .. like this one .. that he will over haul this version and make it template driven, and fix any and all problems present and future :)

scsa20 05-06-2002 08:28 AM

cool, I got it fixed, I just deleted that $shortpath after that URL= from 3 different places and got it to work that way...thanks for your help ;)

snyx 05-06-2002 01:57 PM

tora? :surprised: what is up!?

ZiRu$ 05-06-2002 08:09 PM

thanks I'll try to install on 2.2.4

thehobbyforum 05-09-2002 12:22 AM

This is along the same subjest lines but has anyone yet put up a hack for thumnailing attachments automatically?

Birdie501 05-23-2002 11:37 PM

hi,

i just installed without problems. Now i am testing all functions, but this time with problems.

i have my folder in images/userphoto and chmod to 777!!!
But every time i upload a photo, the photo itself has only 400 rights (-rw------)!

Why is that? What do i have to change! because of that the photo is in that folder but can not be seen!

Thanks!

Birdie501 05-24-2002 01:22 PM

Quote:

Originally posted by Tarion
if everyone of you hast the problem that the uploaded images get not the right CHMOD to be display here a way to get it work:

find in upload.php:

PHP Code:

exec("cp $picture $path/$chacha"); 

add after that:
PHP Code:

chmod("$path/$chacha",0777); 

and now it will work i had the same problem on my server an now it is fixed.

I hope you like this addition

ok got it, that was the problem that took me 24 hours!!!!!
Thanks!

btw i am running vb 2.2.5! Works perfect!

Carthriller 06-07-2002 02:44 PM

In the adminstrative CP, when I click on 'photo upload' I get the following error:

Fatal error: Cannot redeclare stripslashesarray() in /usr/home/username/public_html/forum/admin/global.php on line 33

Can someone please help.

ToraTora! 06-10-2002 02:53 AM

<a href="https://vborg.vbsupport.ru/showthread.php?postid=173191#post173191" target="_blank">https://vborg.vbsupport.ru/showt...191#post173191</a>

and scroll down to see if any of those help you..

Birdie501 06-17-2002 01:45 PM

Quote:

Originally posted by RobAC
Brad,

Couple other problems: In upload.php the following parameters do not show up in: $welcome =

$max_height = "200"; /* Max Image Height */
$max_width = "200"; /* Max Image Width */
$Size_Restrictions = "10000"; /* image size limit in bytes */
$Width_Restrictions = "200"; /* your width limit */
$Height_Restrictions = "200"; /* your height limit

Don't know if someone already figured that out but if you want to use this variables above do this:

Cut this:
PHP Code:

/*-----------------------------------------------------------------*/
/* File Type Restrictions Variables                                */
/*-----------------------------------------------------------------*/
$max_height "600";         /* Max Image Height                   */
$max_width "600";          /* Max Image Width                    */
$Size_Restrictions "2000000";       /* image size limit in bytes */
$Width_Restrictions "600";          /* your width limit          */
$Height_Restrictions "600";         /* your height limit         */
/*-----------------------------------------------------------------*/ 

and add it before
PHP Code:

$Site_Name......... 

:bunny:


All times are GMT. The time now is 10:51 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.01403 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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