Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jkn

Pages: 1 [2]
16
hey deejay,

great mod. i've installed this and it's work great! but one question:

how can i copy the original images before resizing in a separate folder /big ?!??

similar this:

http://www.4homepages.de/forum/index.php?topic=7700.msg22313#msg22313


thx for your answer!
jkn

17
no, that was not the complete function!  8)

but i'm fix this error - here they are 2x:

include(ROOT_PATH.'includes/upload.php');

in the upload2.php! and now .. it works!!  :D   :lol:   :D

thx guy's!!!

jkn

p.s. another little question: upload-resizing is ok, but how can i save the original uploading image in a separate folder!???  :oops:

18
hey guys,
is'it possible to add a link in the user box to the users personal category???   :?:

thx for your help!!!

jkn

19
thx guy's !

but now i have another error  :(


Fatal error: Cannot redeclare class upload in /home/www/web19/html/images/includes/upload.php on line 44

after line 44 is:

Code: [Select]
class Upload {

  var $upload_errors = array();
  var $accepted_mime_types = array();
  var $accepted_extensions = array();
  var $upload_mode = 3;

  var $image_type = "";
  var $max_width = array();
  var $max_height = array();
  var $max_size = array();
  var $upload_path = array();

  var $field_name;
  var $file_name;
  var $extension;

  var $image_size = 0;
  var $image_size_ok = 0;
  var $lang = array();
  var $upload_errors = array();

  function Upload() {
    global $config, $lang;

    $this->max_width['thumb'] = $config['max_thumb_width'];
    $this->max_width['media'] = $config['max_image_width'];
    $this->max_height['thumb'] = $config['max_thumb_height'];
    $this->max_height['media'] = $config['max_image_height'];
$this->auto_image['media'] = $config['auto_image'];

    $this->max_size['thumb'] = $config['max_thumb_size'] * 1024;
    $this->max_size['media'] = $config['max_media_size'] * 1024;

    $this->upload_mode = $config['upload_mode'];
    $this->lang = $lang;

    $this->set_allowed_filetypes();
  }


??? and thx for your help &answers!

jkn

20
in includes/upload2.php ???

i’ve now this error:

Warning: Failed opening './includes/upload.php' for inclusion (include_path='.:/usr/share/php') in /home/www/web19/html/images/includes/upload2.php on line 5

Warning: Failed opening './global.php' for inclusion (include_path='.:/usr/share/php') in /home/www/web19/html/images/includes/upload2.php on line 6

Fatal error: Failed opening required './includes/sessions.php' (include_path='.:/usr/share/php') in /home/www/web19/html/images/includes/upload2.php on line 7

21
 :lol:

öhm no_oo oracle, 4images is installed in the /images/ folder!!

by
jkn

22
Yeha, it’s a really great mod!!! and thx for your great work!

but one question: I’ve added the last code and the second upload2.php with the alternative code from theOracle

Quote
top.location=''.$site_sess->url(ROOT_PATH.'checkandgo.php?sid=".$sid."&cat_id=".$cat_id.").''

but the java-script doesn’t have any effect!??? the files are in the right folder, but not in the database!!?? and they are not resized and visible! The only what i see is an java-skript error!
on this url: http://www......de/images/includes/upload2.php

Fehler:    Syntaxfehler
Zeile:      4
Zeichen:   28

Zeile 4 is:   define('ROOT_PATH', './../');

redirect doesn’t work?!?

hmm... thx and sorry for my bad english  :oops:
jkn

Pages: 1 [2]