Author Topic: No thumbnail preview  (Read 7316 times)

0 Members and 1 Guest are viewing this topic.

Offline saggel

  • Newbie
  • *
  • Posts: 10
    • View Profile
No thumbnail preview
« on: July 05, 2006, 04:37:27 PM »
Hello everybody,
I've made many searches on this forum but I couldn't find solution to my problem...
So here it is...
I am trying to set up an image gallery, where there is no need for thumbnails...
How can this be done?
I have set Conversion tool for thumbnails to None, but I still get the gif.gif image instead of the original one!
What can I do?
Please help

Offline saggel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: No thumbnail preview
« Reply #1 on: July 06, 2006, 05:49:59 PM »
Since there is no reply for this question in this forum, I think it could be usefull for everyone if you could help me...
If 4images can't do it, I will accept it and go for something better...

Offline saggel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: No thumbnail preview
« Reply #2 on: July 07, 2006, 12:42:52 AM »
Anybody....????  :roll:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: No thumbnail preview
« Reply #3 on: July 07, 2006, 12:47:40 AM »
[olist]
  • disable auto thumbnailer in the settings
  • in includes/constants.php find these two lines:
    Code: [Select]
    define('THUMB_DIR', 'data/thumbnails');[/li][/list]
    define('THUMB_TEMP_DIR', 'data/tmp_thumbnails');
    Change them to this:
    Code: [Select]
    define('THUMB_DIR', 'data/media');
    define('THUMB_TEMP_DIR', 'data/tmp_media');

  • in member.php find:
    Code: [Select]
       $new_thumb_name = "";[/li]
    Replace it with:
    Code: [Select]
       $new_thumb_name = $new_name;

  • remove everything related to thumbnails in member_uploadform.html template
  • [/olist]

    This will only affect members upload page. If you are planning upload images through ACP or FTP, then you'll need "
[MOD] Rebuild thumbnails" mod that can search for existed thumbnails and then update the database.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline saggel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: No thumbnail preview
« Reply #4 on: July 07, 2006, 01:22:13 AM »
I just did it...
And I get this when I upload as user...

Code: [Select]
Warning: move_uploaded_file(./MEDIA_DIR/2/test.gif): failed to open stream: No such file or directory in /var/www/vhosts/domain/httpdocs/includes/upload.php on line 122

Warning: move_uploaded_file(): Unable to move '/tmp/phpCHPYBY' to './MEDIA_DIR/2/test.gif' in /var/www/vhosts/domain/httpdocs/includes/upload.php on line 122

There is a "2" folder with 777 permisions!!!  :roll:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: No thumbnail preview
« Reply #5 on: July 07, 2006, 01:43:48 AM »
you seems to deleted MEDIA_DIR info in constants.php, plese be more carefull.
The lines I showed above are not exact sequence as in the file, I just saved some time typing it.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline saggel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: No thumbnail preview
« Reply #6 on: July 07, 2006, 01:53:16 AM »
I deleted everything and doing everything from the beginning!!!
thanx for your help... I will let you know asap

Offline saggel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: No thumbnail preview
« Reply #7 on: July 07, 2006, 03:21:32 AM »
Everything is perfect now (well, almost everything)
As you said the users can upload with no problem, but there is the problem you mentioned on ACP!
An other slight problem is that I get this when I create a new Category...

Code: [Select]
Warning: ftp_connect(): php_hostconnect: connect failed in /var/www/vhosts/domain/httpdocs/admin/categories.php on line 58

Warning: ftp_login() expects parameter 1 to be resource, boolean given in /var/www/vhosts/domain/httpdocs/admin/categories.php on line 62
Mauvaise connexion FTPEssaye de se connecter a IP for user


I know that it's an other problem that has to do with the safemode MOD, but could you please help me on this?
Moreover, how can I obtain a license?