4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Plugins => Topic started by: uksoreeyes on May 20, 2003, 01:53:30 AM

Title: [Plugin] Postcard Viewer
Post by: uksoreeyes on May 20, 2003, 01:53:30 AM
Hi I am writing a little mod so I can view postcards people have sent from my site. I have come up with the following code but it needs a tiny tweak which I'm having problems with. Can anyone help? Heres the code.
Code: [Select]
<?PHP

$result = "SELECT p.postcard_id, p.image_id, p.postcard_date, p.postcard_bg_color, p.postcard_border_color, p.postcard_font_color, p.postcard_font_face, p.postcard_sender_name, p.postcard_sender_email, p.postcard_recipient_name, p.postcard_recipient_email, p.postcard_headline, p.postcard_message, i.image_name, i.cat_id, i.image_media_file, i.image_thumb_file, p.postcard_confirm
            FROM ".POSTCARDS_TABLE." p, ".IMAGES_TABLE." i
            WHERE p.image_id = i.image_id";
while($row = mysql_fetch_array($result))
{    
    $postcard_id = $row["postcard_id"];
$postcard_date = date("D d M, Y g:i a", $row["postcard_date"]);
$image_id = $row["p.image_id"];
$postcard_bg_color = $row["p.postcard_bg_color"];
$postcard_border_color = $row["p.postcard_border_color"];
$postcard_font_color = $row["p.postcard_font_color"];
$postcard_font_face = $row["p.postcard_font_face"];
$postcard_sender_name = $row["p.postcard_sender_name"];
$postcard_sender_email = $row["p.postcard_sender_email"];
$postcard_recipient_name = $row["p.postcard_recipient_name"];
$postcard_recipient_email = $row["p.postcard_recipient_email"];
$postcard_headline = $row["p.postcard_headline"];
$postcard_message = $row["p.postcard_message"];
$cat_id = $row['i.cat_id'];
$image_media_file = $row[i.'image_media_file'];

echo <<<END
<table cellspacing="0" cellpadding="1" align="center" border="0">
  <tbody>
    <tr>
      <td bgcolor="$postcard_border_color"><table cellspacing="0" cellpadding="10" bgcolor="$postcard_bg_color" border="0">
  <tbody>
    <tr>
      <td valign="top"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_date</font><br><a href="/details.php?image_id=$image_id" target="_blank"><img src="/data/media/$cat_id/$image_media_file" border="0"></a><br>
        <br> <font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_recipient_name - </font>
<a href="mailto:$postcard_recipient_email"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_recipient_email</font></a></td>
      <td valign="top" width="200" height="250"><div align="right"><img src="/templates/myleeneklass/images/stamp.gif" border="0"></div>
        <br> <br> <b><font face="$postcard_font_face" color="$postcard_font_color" size="4">$postcard_headline</font></b><br>
        <br> <font face="$postcard_font_face" color="$postcard_font_color" size="2">$postcard_message</font><br>
        <br> <font face="$postcard_font_face" color="$postcard_font_color" size="2">$postcard_sender_name</font><br> <a href="mailto:$postcard_sender_email"><font
                  face="$postcard_font_face" color="$postcard_font_color" size="2">$postcard_sender_email</font></a></td>
    </tr>
  </tbody>
</table></td>
    </tr>
  </tbody>
</table><br>
END;
}  

?>

Thanks in advance

Carl
Title: [Plugin] Postcard Viewer
Post by: uksoreeyes on May 20, 2003, 01:57:46 AM
Sorry for posting in the wrong forum, I just realised  :oops:
Title: [Plugin] Postcard Viewer
Post by: V@no on May 20, 2003, 02:22:02 AM
Quote from: uksoreeyes
Sorry for posting in the wrong forum, I just realised  :oops:
no, not wrong forum, unless u dont wont to publish it ;) :lol:
$row["p.blah-blah-blah"] must be without p. ;)
also, this line might give u error:
$image_media_file = $row[i.'image_media_file'];
Title: [Plugin] Postcard Viewer
Post by: uksoreeyes on May 20, 2003, 03:52:22 AM
Ok I've removed all the p's and that i from the $row...

Now When I execute the script I get the following error:
Quote

Parse error: parse error in \www\myleeneklass.com\htdocs\admin\plugins\postcard.php on line 48


On line 48 is: ?>
Title: [Plugin] Postcard Viewer
Post by: V@no on May 20, 2003, 04:20:31 AM
I hope u didnt remove quote along with p. from
$row['image_media_file'];
Title: [Plugin] Postcard Viewer
Post by: uksoreeyes on May 20, 2003, 04:31:07 AM
nope this is how it stands
Code: [Select]
$image_media_file = $row['image_media_file'];
Its just the image display I have problems with, I can have all the other information displayed on the page from the postcards table except for the image.
Title: [Plugin] Postcard Viewer
Post by: V@no on May 20, 2003, 04:34:56 AM
well, anyway, the error u showed above usualy accure when u lost a quote ( ' or " ) or a bracket ( } )
Title: [Plugin] Postcard Viewer
Post by: uksoreeyes on May 20, 2003, 06:19:13 AM
Ok, finally got it right after an hour of neck ache lol. I don't know what I done but I changed a few things and it worked. Obviously there's improvements that can be made to the mod but I'll leave that to the people who know how. I've just set up the basics and it does its job.

--------------------------------------------------------------------
Installation:

- Create a new directory called plugins in your admin folder
- Extract the zip and copy the file postcard_view.php to the new plugins directory
- Log in to your Control Panel, a new link should appear in the left navigation frame
- Click it to view your postcards

Download postcard_view.zip (http://soreeyes.myby.co.uk/scripts/postcard_view.zip)
--------------------------------------------------------------------

I hope everyone finds this mod useful.

Carl

[EDITED by V@no]
The attached file below is a fixed version that works on servers with register_globals turned off.
Title: [Plugin] Postcard Viewer
Post by: V@no on May 20, 2003, 06:52:19 AM
very nice!
but by default I had problem with displaying images...
now working great
thx!
Title: [Plugin] Postcard Viewer
Post by: Chris on May 20, 2003, 07:03:14 AM
I don't have time to look at it all but, this change will eliminate the need to hard code the database name.
Code: [Select]
<?php // PLUGIN_TITLE: Postcard Viewer

$nozip 1;
define('IN_CP'1);

define('ROOT_PATH'"./../../");
require(
ROOT_PATH.'admin/admin_global.php');

function 
display_results() {
global 
$site_db;

$sql "SELECT * FROM ".POSTCARDS_TABLE." p, ".IMAGES_TABLE." i WHERE p.image_id = i.image_id ORDER BY postcard_id DESC";
$result $site_db->query($sql);
while($row $site_db->fetch_array($result))
{
 
   $postcard_id $row["postcard_id"];
$postcard_date date("D d M, Y g:i a"$row["postcard_date"]);
$image_id $row["image_id"];
$postcard_bg_color $row["postcard_bg_color"];
$postcard_border_color $row["postcard_border_color"];
$postcard_font_color $row["postcard_font_color"];
$postcard_font_face $row["postcard_font_face"];
$postcard_sender_name $row["postcard_sender_name"];
$postcard_sender_email $row["postcard_sender_email"];
$postcard_recipient_name $row["postcard_recipient_name"];
$postcard_recipient_email $row["postcard_recipient_email"];
$postcard_headline $row["postcard_headline"];
$postcard_message $row["postcard_message"];
$cat_id $row['cat_id'];
$image_media_file $row['image_media_file'];

echo <<<END
<table cellspacing="0" cellpadding="1" align="center" border="0">
  <tbody>
    <tr> 
      <td bgcolor="
$postcard_border_color"><table cellspacing="0" cellpadding="10" bgcolor="$postcard_bg_color" border="0">
  <tbody>
    <tr> 
      <td valign="top"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">
$postcard_date</font><br><a href="../../../details.php?image_id=$image_id" target="_blank"><img src="../../../data/media/$cat_id/$image_media_file" border="0"></a><br> 
        <br> <font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">
$postcard_recipient_name - </font>
<a href="mailto:
$postcard_recipient_email"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_recipient_email</font></a></td>
      <td valign="top" width="200" height="250"><div align="right"><img src="../../../templates/default/images/stamp.gif" border="0"></div>
        <br> <br> <b><font face="
$postcard_font_face" color="$postcard_font_color" size="4">$postcard_headline</font></b><br> 
        <br> <font face="
$postcard_font_face" color="$postcard_font_color" size="2">$postcard_message</font><br> 
        <br> <font face="
$postcard_font_face" color="$postcard_font_color" size="2">$postcard_sender_name</font><br> <a href="mailto:$postcard_sender_email"><font 
                  face="
$postcard_font_face" color="$postcard_font_color" size="2">$postcard_sender_email</font></a></td>
    </tr>
  </tbody>
</table></td>
    </tr>
  </tbody>
</table><br>
END;
}
}
?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr">
<head>
     <title>4images - Control Panel</title>
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     <link rel="stylesheet" href="../../admin/cpstyle.css">
</head>
<body>
<?php display_results(); ?>
</body>
</html>
Interesting mod.  Be careful of privacy issues.
Title: [Plugin] Postcard Viewer
Post by: uksoreeyes on May 20, 2003, 07:42:03 AM
I have updated the file now, thanks guys.
Title: [Plugin] Postcard Viewer
Post by: toto1 on May 20, 2003, 09:17:00 AM
Parse error: parse error, expecting `','' or `';'' in /usr/local/www/data.users/xxxx/www/admin/plugins/postcard_view.php on line 33

 :?  :?
Title: [Plugin] Postcard Viewer
Post by: uksoreeyes on May 20, 2003, 02:07:18 PM
Make sure there is no spaces after the echo <<<END and END;
Title: [Plugin] Postcard Viewer
Post by: Chris on May 20, 2003, 03:05:37 PM
Cool.  :)
Title: [Plugin] Postcard Viewer
Post by: Apollo13 on May 20, 2003, 04:42:22 PM
well great think no question, but i think with this plugin u hurt the data security...
Title: [Plugin] Postcard Viewer
Post by: Chris on May 20, 2003, 05:13:50 PM
Yeah.  I think there is an expectation of privacy when someone sends a postcard.  When I visit a site, I wouldn't want someone else peeking at a postcard I had sent.
Title: [Plugin] Postcard Viewer
Post by: Apollo13 on May 20, 2003, 10:48:26 PM
the same think is with emails... On my site u can send freemails... But i dont log them
Title: [Plugin] Postcard Viewer
Post by: uksoreeyes on May 21, 2003, 02:31:45 AM
I can see what you mean. You can always place a message on the postcards page stating to visitors that their postcards may be viewed by the administrator.

I wrote this mod more for security of my visitors. With about 97% of my visitors being under the age of 17, it's important that I keep my eyes open for anything that may seem odd. When there's children involved it's my job as an administrator to make sure they are kept safe on my site and that they don't see anything that is unfit.

But naturally if this wasn't the case and I ran a site which involved more mature visitors I personally wouldn't bother logging messages, because it's a full time job and I'm basically not really interested in what people have to say in their private conversations.
Title: [Plugin] Postcard Viewer
Post by: hoelzlmani on May 22, 2003, 04:38:34 PM
great mod  :D but how can i see all postcards, it shows me only the last 5.
Title: [Plugin] Postcard Viewer
Post by: V@no on May 22, 2003, 07:20:26 PM
Quote from: hoelzlmani
great mod  :D but how can i see all postcards, it shows me only the last 5.
postcards automaticaly deletes after time set in the settings.
Title: [Plugin] Postcard Viewer
Post by: Shap on May 22, 2003, 11:18:13 PM
worked like a charm for me!

One question, when I installed it, and clicked the "postcard Viewer" link, it showed me 2 cards from a week ago already.... how far back does it go?
Title: [Plugin] Postcard Viewer
Post by: hoelzlmani on May 22, 2003, 11:35:47 PM
@veno: i looked in the postcard_view.php and in the 4images control panel (settings) but i can´t find the time set! where can i find it? is it possible to make it without time limit or is this not good for performance?
Title: [Plugin] Postcard Viewer
Post by: Chris on May 23, 2003, 01:18:12 AM
Look inside includes/constants.php
Code: [Select]
// Days postcards will be held in the database
define('POSTCARD_EXPIRY', 10);
Title: [Plugin] Postcard Viewer
Post by: Shap on May 23, 2003, 03:55:49 AM
Quote from: Chris
Look inside includes/constants.php
Code: [Select]
// Days postcards will be held in the database
define('POSTCARD_EXPIRY', 10);

THX!
Title: well mod
Post by: Sheep707 on May 28, 2003, 05:49:39 PM
8)  8)  8)  8)  8)  Well, great mod! Thanks!
Title: klasse
Post by: limes on May 31, 2003, 07:37:33 PM
danke für den tollen mod. genau das habe ich schon länger gesucht ...
Title: sort by date
Post by: Sheep707 on June 07, 2003, 06:45:06 PM
:lol: Just al little question: is it possible to sort the postcarts by date and time?  The newest at top!

  Thanks...
Title: Re: sort by date
Post by: uksoreeyes on June 07, 2003, 07:42:34 PM
Quote from: Sheep707
:lol: Just al little question: is it possible to sort the postcarts by date and time?  The newest at top!

  Thanks...

Find in postcard_view.php:
Code: [Select]
ORDER BY postcard_id DESC
Change to:
Code: [Select]
ORDER BY postcard_date DESC
Carl
Title: Re: [Plugin] Postcard Viewer
Post by: ascanio on March 14, 2005, 04:15:38 PM
Nice MOD  :D :wink:
Title: Re: [Plugin] Postcard Viewer
Post by: starkeeper on June 28, 2005, 05:13:59 PM
i get only an error message :(

Parse error: parse error, unexpected '&', expecting T_PAAMAYIM_NEKUDOTAYIM or '(' in /home/www/marcomarten.com/htdocs/gallery/admin/plugins/postcard_view.php on line 7
Title: Re: [Plugin] Postcard Viewer
Post by: TIMT on September 15, 2005, 12:09:28 AM
Quote
i get only an error
Parse error: parse error, unexpected '&', expecting T_PAAMAYIM_NEKUDOTAYIM or '(' in /home/www/marcomarten.com/htdocs/gallery/admin/plugins/postcard_view.php on line 7

I get the same error
Title: Re: [Plugin] Postcard Viewer
Post by: kleiner_Hobbit on January 19, 2006, 10:16:15 PM
Bei mir kam auch immer diese Fehlermeldung.

Ich habe den Code vom "Modified Card Viewer" entsprechend angepasst und nun klappt es  8)
 :arrow: Datei siehe Zip-File

Viele Grüße

kleiner_Hobbit
Title: Re: [Plugin] Postcard Viewer
Post by: TheOracle on January 19, 2006, 11:04:07 PM
If I may leave my inputs, even though the last english post was on sept 15 2005, I'd like to comment on something.

This paragraph :

Quote

<?php // PLUGIN_TITLE: Postcard Viewer

$nozip = 1;
define('IN_CP', 1);

$root_path = (eregi("\/plugins\/", $PHP_SELF)) ? "./../../" : "./../";
define('ROOT_PATH', $root_path);
require(ROOT_PATH.'admin/admin_global.php');
show_admin_header();

function display_results() {
    global $site_db;

    $sql = "SELECT *
                    FROM ".POSTCARDS_TABLE." p, ".IMAGES_TABLE." i
                    WHERE p.image_id = i.image_id
                    ORDER BY postcard_id DESC";
    $result = $site_db->query($sql);
    while($row = $site_db->fetch_array($result)){
      $postcard_id = $row["postcard_id"];
        $postcard_date = date("D d M, Y g:i a", $row["postcard_date"]);
        $image_id = $row["image_id"];
        $postcard_bg_color = $row["postcard_bg_color"];
        $postcard_border_color = $row["postcard_border_color"];
        $postcard_font_color = $row["postcard_font_color"];
        $postcard_font_face = $row["postcard_font_face"];
        $postcard_sender_name = $row["postcard_sender_name"];
        $postcard_sender_email = $row["postcard_sender_email"];
        $postcard_recipient_name = $row["postcard_recipient_name"];
        $postcard_recipient_email = $row["postcard_recipient_email"];
        $postcard_headline = $row["postcard_headline"];
        $postcard_message = $row["postcard_message"];
        $cat_id = $row['cat_id'];
        $image_media_file = get_media_code($row['image_media_file'], $image_id, $cat_id, $row['image_name']);
        $template = TEMPLATE_PATH;

        echo <<<END
        <table cellspacing="0" cellpadding="1" align="center" border="0">
  <tbody>
    <tr>
      <td bgcolor="$postcard_border_color"><table cellspacing="0" cellpadding="10" bgcolor="$postcard_bg_color" border="0">
  <tbody>
    <tr>
      <td valign="top"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_date</font><br><a href="../../details.php?image_id=$image_id" target="_blank">$image_media_file</a><br>
        <font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_recipient_name - </font>
      <a href="mailto:$postcard_recipient_email"><font color="#000000" size="1" face="Verdana, Arial, Helvetica, sans-serif">$postcard_recipient_email</font></a></td>
      <td valign="top" width="200" height="250"><div align="right"><img src="$template/images/stamp.gif" border="0"></div>
        <br> <br> <b><font face="$postcard_font_face" color="$postcard_font_color" size="4">$postcard_headline</font></b><br>
        <br> <font face="$postcard_font_face" color="$postcard_font_color" size="2">$postcard_message</font><br>
        <br> <font face="$postcard_font_face" color="$postcard_font_color" size="2">$postcard_sender_name</font><br> <a href="mailto:$postcard_sender_email"><font
                  face="$postcard_font_face" color="$postcard_font_color" size="2">$postcard_sender_email</font></a></td>
    </tr>
  </tbody>
</table></td>
    </tr>
  </tbody>
</table><br>
END;
    }
}

display_results();
show_admin_footer();
?>


should rather be re-coded like this :

Code: [Select]

<?php // PLUGIN_TITLE: Postcard Viewer

$nozip 1;

define('IN_CP'1);
define('ROOT_PATH''../../');
require(
ROOT_PATH.'admin/admin_global.php');
show_admin_header();

if (
$action == "") {
$action "postcards_view";
###### End of if statement.

if ($action == "postcards_view") {

function 
display_results() {
global 
$site_db$table_menu$site_sess;

$sql "

SELECT *
FROM "
.POSTCARDS_TABLE." p, ".IMAGES_TABLE." i
WHERE p.image_id = i.image_id
ORDER BY postcard_id DESC

"
;

$result $site_db->query($sql);

while (
$row $site_db->fetch_array($result)) {

$postcard_id $row["postcard_id"];
$postcard_date date("D d M, Y g:i a"$row["postcard_date"]);

$image_id $row["image_id"];

$postcard_bg_color $row["postcard_bg_color"];
$postcard_border_color $row["postcard_border_color"];
$postcard_font_color $row["postcard_font_color"];
$postcard_font_face $row["postcard_font_face"];
$postcard_sender_name $row["postcard_sender_name"];
$postcard_sender_email $row["postcard_sender_email"];
$postcard_recipient_name $row["postcard_recipient_name"];
$postcard_recipient_email $row["postcard_recipient_email"];
$postcard_headline $row["postcard_headline"];
$postcard_message $row["postcard_message"];

$cat_id $row['cat_id'];

$image_media_file get_media_code($row['image_media_file'], $image_id$cat_id$row['image_name']);

$table_menu "";
$table_menu .= "

<table cellspacing=\"0\" cellpadding=\"1\" align=\"center\" border=\"0\">
  <tbody>
    <tr>
      <td bgcolor=\""
.$postcard_border_color."\"><table cellspacing=\"0\" cellpadding=\"10\" bgcolor=\"".$postcard_bg_color."\" border=\"0\">
  <tbody>
    <tr>
      <td valign=\"top\"><font color=\"#000000\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">"
.$postcard_date."</font><br><a href=\"".$site_sess->url(ROOT_PATH."details.php?&amp;".URL_IMAGE_ID)."\" target=\"_blank\">".$image_media_file."</a><br>
        <font color=\"#000000\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">"
.$postcard_recipient_name." - </font>
<a href=\"mailto:"
.$postcard_recipient_email."\"><font color=\"#000000\" size=\"1\" face=\"Verdana, Arial, Helvetica, sans-serif\">".$postcard_recipient_email."</font></a></td>
      <td valign=\"top\" width=\"200\" height=\"250\"><div align=\"right\"><img src=\""
.get_gallery_image("stamp.gif")."\" border=\"0\"></div>
        <br> <br> <b><font face=\""
.$postcard_font_face."\" color=\"".$postcard_font_color."\" size=\"4\">".$postcard_headline."</font></b><br>
        <br> <font face=\""
.$postcard_font_face."\" color=\"".$postcard_font_color."\" size=\"2\">".$postcard_message."</font><br>
        <br> <font face=\""
.$postcard_font_face."\" color=\"".$postcard_font_color."\" size=\"2\">".$postcard_sender_name."</font><br> <a href=\"mailto:".$postcard_sender_email."\">
             <font face=\""
.$postcard_font_face."\" color=\"".$postcard_font_color."\" size=\"2\">".$postcard_sender_email."</font></a></td>
    </tr>
  </tbody>
</table></td>
    </tr>
  </tbody>
</table><br>

"
;

echo 
$table_menu;
unset (
$table_menu);

###### End of while statement.
###### End of function statement.

$disp_results = (function_exists('display_results')) ? display_results() : '';
unset (
$disp_results);

show_admin_footer();

###### End of if statement.
?>



Tell me if you still have these error messages after replacing this block. ;)
Title: Re: [Plugin] Postcard Viewer
Post by: TIMT on January 20, 2006, 12:48:16 AM
Great job, now it works.

Thank you TheOracle!   :D
Title: Re: [Plugin] Postcard Viewer
Post by: TheOracle on January 20, 2006, 12:50:18 AM
Great job, now it works.

Thank you TheOracle!   :D

Excellent. Glad to see it worked out fine for you. The first codings gave me the creaps a little.  8O  :mrgreen:
Title: Re: [Plugin] Postcard Viewer
Post by: maninblue on January 21, 2006, 11:03:29 PM
sorry i am not an advance user but i got the code and put it to site as card_viewer.php and run it and i got the error

Warning: main(../../admin/admin_global.php): failed to open stream: No such file or directory in D:\Inetpub\vhosts\gulce.net\httpdocs\card_viewer.php on line 8

Fatal error: main(): Failed opening required '../../admin/admin_global.php' (include_path='.;./includes;./pear') in D:\Inetpub\vhosts\gulce.net\httpdocs\card_viewer.php on line 8

Not sure if i make a mistake. Can you help?
Title: Re: [Plugin] Postcard Viewer
Post by: TheOracle on January 21, 2006, 11:09:22 PM
@maninblue: (thought it was maninblack  :mrgreen:)

Simply play with this bolded part below :

Quote

define('ROOT_PATH', '../../');


from your file.

Hint: If you have another plugin file, from inside the plugins folder, simply copy that line and copy it into your new one. ;)
Title: Re: [Plugin] Postcard Viewer
Post by: maninblue on January 21, 2006, 11:14:34 PM
now it works i change it:)

note: men sometimes wear blue also (not an alien buster)
Title: Re: [Plugin] Postcard Viewer
Post by: V@no on January 21, 2006, 11:21:59 PM
sorry i am not an advance user but i got the code and put it to site as card_viewer.php and run it and i got the error

Warning: main(../../admin/admin_global.php): failed to open stream: No such file or directory in D:\Inetpub\vhosts\gulce.net\httpdocs\card_viewer.php on line 8

Fatal error: main(): Failed opening required '../../admin/admin_global.php' (include_path='.;./includes;./pear') in D:\Inetpub\vhosts\gulce.net\httpdocs\card_viewer.php on line 8

Not sure if i make a mistake. Can you help?
You didnt follow properly the installation instructions:
http://www.4homepages.de/forum/index.php?topic=5769.msg24828#msg24828
The file must be placed in admin/plugins/ folder not into your 4images root.