• [Mod] Random image / Zufallsbild 5 0 5 1
Currently:  

Author Topic: [Mod] Random image / Zufallsbild  (Read 869130 times)

0 Members and 1 Guest are viewing this topic.

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: [Mod] Random image / Zufallsbild
« Reply #105 on: November 28, 2002, 03:26:34 AM »
I've seen modification how to make random.php work with sertan categories, but is that possible use all categories and filter the ones I dont want to use?
if I have 200+ categories this way:
Code: [Select]
AND a.cat_id IN (4, 9, 15)
would be just pain...if I dont want use 2 categories...
or it would be easier if I creat a new group, then set witch categories that group can access and use this code?:
Code: [Select]
AND b.auth_viewimage=2
or that code only works as 'guest','registered', or 'admin'? (sry, dont speak  german)
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 irocracer

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #106 on: November 30, 2002, 06:13:52 AM »
I'm having a problem

i get this x boxes
http://www.torquespeed.net/random.php

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: [Mod] Random image / Zufallsbild
« Reply #107 on: November 30, 2002, 08:13:41 AM »
irocracer, I have the same problem when use
Code: [Select]
AND a.cat_id IN (4, 9, 15) format.
it's only works for me with first, original format
Code: [Select]
       AND a.cat_id = b.cat_id
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 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: [Mod] Random image / Zufallsbild
« Reply #108 on: November 30, 2002, 08:25:02 AM »
I think I fixed the script when it chose non picture file and shows red X.
I modified it so now it wont return full <img code, but will return full path with filename. Plus now u can show thumbnail and/or full picture.
Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: random.php                                           *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.0 for 4images 1.6.1                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (http://www.4homepages.de/4images/lizenz.php) für       *
 *    weitere Informationen.                                              *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (http://www.4homepages.de/4images/lizenz_e.php) for further         *
 *    information.                                                        *
 *                                                                        *
 *************************************************************************/

// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie'
define('ROOT_PATH''./4images/');  // change this to your 4images dir.
include(ROOT_PATH.'config.php');
include(
ROOT_PATH.'includes/db_mysql.php');
include(
ROOT_PATH.'includes/constants.php');
define('ICON_PATH'ROOT_PATH.TEMPLATE_DIR."/default/icons/"); // path to your template icons.
$site_db = new Db($db_host$db_user$db_password$db_name);
function 
is_remote($file_name) {
 
 return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i'$file_name)) ? 0;
}
function 
get_file_extension($file_name) {
 
 ereg("(.+)\.(.+)"basename($file_name), $regs);
 
 return strtolower($regs[2]);
}
function 
check_thumb_type($file_name) {
 
 return (preg_match('#(gif|jpg|jpeg|png)$#is'$file_name)) ? 0;
}
$sql "SELECT COUNT(*) as total_images
        FROM "
.IMAGES_TABLE." a, ".CATEGORIES_TABLE." b 
        WHERE a.image_active=1 
        AND a.cat_id = b.cat_id 
        AND b.auth_viewcat="
.AUTH_ALL.
        AND b.auth_viewimage="
.AUTH_ALL."
        "
;
$row $site_db->query_firstrow($sql);
$total_images $row['total_images'];

mt_srand((double)microtime() * 1000000);
$number = ($total_images 1) ? mt_rand(0$total_images 1) : 0;
$sql "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_media_file, a.image_thumb_file, a.image_comments
        FROM "
.IMAGES_TABLE." a, ".CATEGORIES_TABLE." b 
        WHERE a.image_active=1 
AND a.cat_id = b.cat_id
        AND b.auth_viewcat="
.AUTH_ALL.
        AND b.auth_viewimage="
.AUTH_ALL.
        LIMIT 
$number, 1";
$row $site_db->query_firstrow($sql);
$image_extention get_file_extension($row['image_media_file']);
$image_id $row['image_id'];
$cat_id $row['cat_id'];
$image_name $row['image_name'];
$image_comments $row['image_comments'];

if (empty(
$row['image_thumb_file'])) { 
 
 $thumb_src ICON_PATH."/".$image_extention.".gif"

else {
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];
}
if (!
check_thumb_type($image_extention)) {
$full_src ICON_PATH."/".$image_extention.".gif";
}
else {
$full_src = (is_remote($row['image_media_file'])) ? $row['image_media_file'] : ROOT_PATH.MEDIA_DIR."/".$cat_id."/".$row['image_media_file'];
}
$full_src_link ROOT_PATH."details.php?image_id=$image_id";
?>
Now u'll need call random.php file just ones
Code: [Select]
<?php include("random.php"); ?>
after that u can show thumbnail:
Code: [Select]
<img src="<?php echo $thumb_src?>" border="1">or show full picture:
Code: [Select]
<img src="<?php echo $full_src?>" border="1">if u need add link to the image, use like this:
Code: [Select]
<a href="<?php echo $full_src_link?>">
<img src="<?php echo $thumb_src?>" border="1">
</a>
« Last Edit: May 07, 2005, 07:59:43 AM by V@no »
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 irocracer

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #109 on: December 01, 2002, 01:27:11 AM »
not sure if i set this right : can you double check it ?


Quote
<?php
/**************************************************************************
*                                                                        *
*    4images - A Web Based Image Gallery Management System               *
*    ----------------------------------------------------------------    *
*                                                                        *
*             File: random.php                                           *
*        Copyright: (C) 2002 Jan Sorgalla                                *
*            Email: jan@4homepages.de                                    *
*              Web: http://www.4homepages.de                             *
*    Scriptversion: 1.0 for 4images 1.6.1                                *
*                                                                        *
*    Never released without support from: Nicky (http://www.nicky.net)   *
*                                                                        *
**************************************************************************
*                                                                        *
*    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
*    bedingungen (http://www.4homepages.de/4images/lizenz.php) für       *
*    weitere Informationen.                                              *
*    ---------------------------------------------------------------     *
*    This script is NOT freeware! Please read the Copyright Notice       *
*    (http://www.4homepages.de/4images/lizenz_e.php) for further         *
*    information.                                                        *
*                                                                        *
*************************************************************************/

// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie'
define('ROOT_PATH', '/home/virtual/site1/fst/var/www/html/members/gallery/');  // change this to your 4images dir.
include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');
define('ICON_PATH', ROOT_PATH.TEMPLATE_DIR."/home/virtual/site1/fst/var/www/html/default/icons/"); // path to your template icons.
$site_db = new Db($db_host, $db_user, $db_password, $db_name);
function is_remote($file_name) {
  return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
}
function get_file_extension($file_name) {
  ereg("(.+)\.(.+)", basename($file_name), $regs);
  return strtolower($regs[2]);
}
function check_thumb_type($file_name) {
  return (preg_match('#(gif|jpg|jpeg|png)$#is', $file_name)) ? 1 : 0;
}
$sql = "SELECT COUNT(*) as total_images
        FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
        WHERE a.image_active=1
        AND a.cat_id = b.cat_id
        AND b.auth_viewcat=".AUTH_ALL."
        AND b.auth_viewimage=".AUTH_ALL."
        ";
$row = $site_db->query_firstrow($sql);
$total_images = $row['total_images'];

mt_srand((double)microtime() * 1000000);
$number = ($total_images > 1) ? mt_rand(0, $total_images - 1) : 0;
$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_media_file, a.image_thumb_file, a.image_comments
        FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
        WHERE a.image_active=1
AND a.cat_id = b.cat_id
        AND b.auth_viewcat=".AUTH_ALL."
        AND b.auth_viewimage=".AUTH_ALL."
        LIMIT $number, 1";
$row = $site_db->query_firstrow($sql);
$image_extention = get_file_extension($row['image_media_file']);
$image_id = $row['image_id'];
$cat_id = $row['cat_id'];
$image_name = $row['image_name'];
$image_comments = $row['image_comments'];

if (empty($row['image_thumb_file'])) {
  $thumb_src = ICON_PATH."/".$image_extention.".gif";
}
else {
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];
}
if (!check_thumb_type($image_extention)) {
   $full_src = ICON_PATH."/".$image_extention.".gif";
}
else {
   $full_src = (is_remote($row['image_media_file'])) ? $row['image_media_file'] : ROOT_PATH.MEDIA_DIR."/".$cat_id."/".$row['image_media_file'];
}
$full_src_link = ROOT_PATH."details.php?image_id=$image_id";
?>

Offline irocracer

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #110 on: December 01, 2002, 01:39:48 AM »

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: [Mod] Random image / Zufallsbild
« Reply #111 on: December 01, 2002, 01:42:15 AM »
no, one line should be like this:
Code: [Select]
define('ICON_PATH', ROOT_PATH.TEMPLATE_DIR."/default/icons/"); // path to your template icons.

since u already set ROOT_PATH, u dont need repeat it for ICON_PATH
u only need change path for ICON_PATH if u use different templates then default, then just change /default/icons/ to /your_templates_folder/icons/
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 irocracer

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #112 on: December 01, 2002, 02:28:05 AM »
sorry to be buggin you :

i have this error on the test page
Quote

Warning: Failed opening './members/gallery/config.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site1/fst/var/www/html/random.php on line 29

Warning: Failed opening './members/gallery/includes/db_mysql.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site1/fst/var/www/html/random.php on line 30

Warning: Failed opening './members/gallery/includes/constants.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site1/fst/var/www/html/random.php on line 31

Fatal error: Cannot instantiate non-existent class: db in /home/virtual/site1/fst/var/www/html/random.php on line 33


you can find my test page here
http://www.torquespeed.net/test/main.php

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: [Mod] Random image / Zufallsbild
« Reply #113 on: December 01, 2002, 03:16:12 AM »
well, I can see, that u use compleately different gallery script, not 4images:
http://gallery.menalto.com/modules.php?op=modload&name=News&file=index
atleast,
Quote
define('ROOT_PATH', '/home/virtual/site1/fst/var/www/html/members/gallery/'
point to that gallery.
if u use 4images, make sure that this path point to root of 4images directory.
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 irocracer

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #114 on: December 01, 2002, 05:36:29 AM »
Quote from: V@no
well, I can see, that u use compleately different gallery script, not 4images:
http://gallery.menalto.com/modules.php?op=modload&name=News&file=index
atleast,
Quote
define('ROOT_PATH', '/home/virtual/site1/fst/var/www/html/members/gallery/'
point to that gallery.
if u use 4images, make sure that this path point to root of 4images directory.


ya i have too , but the main gallery i use is 4 images
www.torquespeed.net ...... i'm transfering all images from the old to the new which is 4images..

4images ,
www.torquespeed.net/members/gallery

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: [Mod] Random image / Zufallsbild
« Reply #115 on: December 01, 2002, 06:23:59 AM »
ah, ok. now I see where is the problem:
try change this:
Code: [Select]
define('ROOT_PATH', '/home/virtual/site1/fst/var/www/html/members/gallery/'); to this:
Code: [Select]
define('ROOT_PATH', './members/gallery/');
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 irocracer

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #116 on: December 01, 2002, 06:58:51 AM »
this is what the random.php file looks like

Quote
<?php
/**************************************************************************
*                                                                        *
*    4images - A Web Based Image Gallery Management System               *
*    ----------------------------------------------------------------    *
*                                                                        *
*             File: random.php                                           *
*        Copyright: (C) 2002 Jan Sorgalla                                *
*            Email: jan@4homepages.de                                    *
*              Web: http://www.4homepages.de                             *
*    Scriptversion: 1.0 for 4images 1.6.1                                *
*                                                                        *
*    Never released without support from: Nicky (http://www.nicky.net)   *
*                                                                        *
**************************************************************************
*                                                                        *
*    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
*    bedingungen (http://www.4homepages.de/4images/lizenz.php) für       *
*    weitere Informationen.                                              *
*    ---------------------------------------------------------------     *
*    This script is NOT freeware! Please read the Copyright Notice       *
*    (http://www.4homepages.de/4images/lizenz_e.php) for further         *
*    information.                                                        *
*                                                                        *
*************************************************************************/

// PATH to your 4images Gallery / PFAD zu Ihrer 4images Gallerie'
define('ROOT_PATH', './members/gallery/');  // change this to your 4images dir.
include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');
define('ICON_PATH', ROOT_PATH.TEMPLATE_DIR."/templates/default/icons/"); // path to your template icons.
$site_db = new Db($db_host, $db_user, $db_password, $db_name);
function is_remote($file_name) {
  return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
}
function get_file_extension($file_name) {
  ereg("(.+)\.(.+)", basename($file_name), $regs);
  return strtolower($regs[2]);
}
function check_thumb_type($file_name) {
  return (preg_match('#(gif|jpg|jpeg|png)$#is', $file_name)) ? 1 : 0;
}
$sql = "SELECT COUNT(*) as total_images
        FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
        WHERE a.image_active=1
        AND a.cat_id = b.cat_id
        AND b.auth_viewcat=".AUTH_ALL."
        AND b.auth_viewimage=".AUTH_ALL."
        ";
$row = $site_db->query_firstrow($sql);
$total_images = $row['total_images'];

mt_srand((double)microtime() * 1000000);
$number = ($total_images > 1) ? mt_rand(0, $total_images - 1) : 0;
$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_media_file, a.image_thumb_file, a.image_comments
        FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
        WHERE a.image_active=1
AND a.cat_id = b.cat_id
        AND b.auth_viewcat=".AUTH_ALL."
        AND b.auth_viewimage=".AUTH_ALL."
        LIMIT $number, 1";
$row = $site_db->query_firstrow($sql);
$image_extention = get_file_extension($row['image_media_file']);
$image_id = $row['image_id'];
$cat_id = $row['cat_id'];
$image_name = $row['image_name'];
$image_comments = $row['image_comments'];

if (empty($row['image_thumb_file'])) {
  $thumb_src = ICON_PATH."/".$image_extention.".gif";
}
else {
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : ROOT_PATH.THUMB_DIR."/".$cat_id."/".$row['image_thumb_file'];
}
if (!check_thumb_type($image_extention)) {
   $full_src = ICON_PATH."/".$image_extention.".gif";
}
else {
   $full_src = (is_remote($row['image_media_file'])) ? $row['image_media_file'] : ROOT_PATH.MEDIA_DIR."/".$cat_id."/".$row['image_media_file'];
}
$full_src_link = ROOT_PATH."details.php?image_id=$image_id";
?>

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: [Mod] Random image / Zufallsbild
« Reply #117 on: December 01, 2002, 07:30:06 AM »
ok, lets see.
since u put your random.php (main.php) file in /text/ dir, u'll need change
Code: [Select]
define('ROOT_PATH', './members/gallery/'); to this
Code: [Select]
define('ROOT_PATH', '../../members/gallery/'); if that wont work, try delete one ' ../ ' so it would looks like this:
../members/gallery/
and about ICON_PATH, u put extra ' /templates/ '
delete it because its allready added by TEMPLATE_DIR
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 irocracer

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: [Mod] Random image / Zufallsbild
« Reply #118 on: December 01, 2002, 10:31:31 AM »
lol... error
Quote
 

 
Warning: Failed opening '././members/gallery/config.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site1/fst/var/www/html/random.php on line 29

Warning: Failed opening '././members/gallery/includes/db_mysql.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site1/fst/var/www/html/random.php on line 30

Warning: Failed opening '././members/gallery/includes/constants.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site1/fst/var/www/html/random.php on line 31

Fatal error: Cannot instantiate non-existent class: db in /home/virtual/site1/fst/var/www/html/random.php on line 33


test page 1
http://www.torquespeed.net/test/main.php

test page 2
http://www.torquespeed.net/test.php

random.php
http://www.torquespeed.net/random.php

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: [Mod] Random image / Zufallsbild
« Reply #119 on: December 01, 2002, 05:35:28 PM »
hmmm....did u copy/past my code?
make sure it's ../ not ./
let me explain what is the differenece between those two.
if u have your gallery as www.yoursite.com/members/gallery/
and then u put your random.php into www.yoursite.com/test/random.php
then u must change ROOT_PATH to ../members/gallery/
if u put as ./members/gallery/ the server will trying find your path as www.yoursite.com/test/members/gallery/

" ../ " means, server will look one directory behind it was called from.
" ./ " means, server will look from the same directory it was called from.
so, again. as many dirrectories are bihind your random.php (/test/proba/random/pictures/random.php ) as many ../../../../ u must put to make sure server look from the root.
hope this can help.
so, if u run your random.php from the root, change to this: ./members/gallery/
if u run from /test/random.php - to this: ../members/gallery/
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)