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 - ch€ri{Bi}²

Pages: 1 ... 12 13 14 15 [16]
227
 finaly i find why it was limilited to 100Ko !!!!
change this code in the modified postcard.php:

Code: [Select]
$mel = new html_mime_mail(102400, "iso-8859-1");
by this one :
Code: [Select]
$mel = new html_mime_mail(1024000, "iso-8859-1");
now it should work :wink:

228
 :oops: Sorry for the language!! Anyway I do not understand either German or Dutch!!!
 But it is not the problem...

If the modification of this code is so complicated, I am going to work on another MOD with the features which I want : calendar with navigation, link towards pictures, and other things... :roll: any idea?

229
i don't know if my question has been answered... i just speak french and english... i don't understand dutch (at this moment)!

 :?: Is there a way to add buttons for navigation (last month / next month)?

and

 :?: Can we set up a link which send towards the seach or the pictures of the wanted day?

230
But did you try a more important value?
And what is the size of your image?

The error message is explicit: it is a problem of size.
Try to increase the value of limit up to 3Mb (  :arrow: 3000000). Generally mailboxes accept this size...

or try to inhibit this code (responsible for the check of the size of the attach):
Code: [Select]
if(($this->msg_att_size + strlen($fichier)) > $this->limit_up)
{ # erreur
printf("<font color=\"#ff0000\"><b>error</b></font> :: cannot attach <b>%s</b> (limited to 100ko/mail) !!!<br>\n", $nom);
$rtval = false;
}
but if you do that, I do not know if the script will continue to work correctly  :?

 this check is done 2 times in the code : change the error message to know the part whitch fails.


231
Is that a server side setting or something in the HTML_MIME_MAIL.PHP file?
you're right for the error!
there is a limit for attached files in the mail (see html_mime_mail.php line 58).
if you want to modify this, find this code in html_mime_mail.php:
Code: [Select]
function html_mime_mail($limit=102400, $charset="iso-8859-1", $headers="")
and change 102400 (value of $limit)  by whatever you want.
it should work better now  :wink:

232
Mods & Plugins (Releases & Support) / Re: Flash Slideshow
« on: June 01, 2005, 11:27:30 PM »
maybe its flash itself limitation?

I guess so.. I am no expert in flash - could be that it does not accept gif files (animated and non-animated) - I just noticed that the slideshow states 4 images (which is true) but then it skips the gif files and shows only the jpg ones - hence in actuality only showing 2 images.

I confirm: in the original version of the script, no gif file is shown...  :?
I fetch in the code if it is an explicit limitation or not!

and what happens with the characters in europe? (i can not test this!!!)
  :?:  Is the file xml in accordance with the expectations?
  :?:  How are written the names of the images?

233
Tested with 4images1.7
this mod allows users to send the complete ecard thanks to an email in HTML language .
the sender can choose between those notifications :
    1) text notification (classic way => default choice)
    2) whole ecard by html mail
    3) both methods (1 & 2 => 2 mails sent)

never forget to backup the files which you will modify.

 >> 04 files to edit from 4images root:

[change]/postcards.php
[change]/templates/<yourtemplate>/postcard_create.html
[change]/templates/<yourtemplate>/postcard_preview.html
[change]/lang/<yourlanguage>/main.php

 >> 01 new file to create from 4images root:

[new]/include/html_mime_mail.php


------ Installation ------

STEP 1:
Open postcards.php
1.1:
Find:
Code: [Select]
$recipient_email = un_htmlspecialchars(trim($HTTP_POST_VARS['recipient_email'])); Add after:
Code: [Select]
$email_format = $HTTP_POST_VARS['email_format'];
1.2:
Find:
Code: [Select]
include(ROOT_PATH.'includes/email.php');
    $site_email = new Email();
    $site_email->set_to(stripslashes($recipient_email));
    $site_email->set_from(stripslashes($sender_email), stripslashes($sender_name));
    $site_email->set_subject($lang['send_postcard_emailsubject']);
    $site_email->register_vars(array(
      "sender_name" => stripslashes($sender_name),
      "sender_email" => stripslashes($sender_email),
      "recipient_name" => stripslashes($recipient_name),
      "postcard_url" => stripslashes($postcard_url),
      "postcard_send_date" => format_date($config['date_format']." ".$config['time_format'], $current_time),
      "site_name" => $config['site_name']
    ));
    $site_email->set_body("postcard_message", $config['language_dir']);
    $site_email->send_email();
Replace with:
Code: [Select]

 if ($email_format == 'html' || $email_format == 'txthtml') {
 // email html
 
    include(ROOT_PATH.'includes/html_mime_mail.php');

  $html_to_send .= "<center>
   <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">
      <tr>
        <td>
          <table border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
            <tr>
              <td bgcolor=\"".$border_color."\">
                <table border=\"0\" cellspacing=\"0\" cellpadding=\"10\" bgcolor=\"".$bg_color."\">
                  <tr>
                      <td valign=\"top\"><div><img src=\"".MEDIA_PATH."/".$cat_id."/".$image_row['image_media_file']."\" border=\"0\" /></div></td>
                    <td valign=\"top\" width=\"200\" height=\"250\">
                      <div align=\"right\"><img src=\"".TEMPLATE_PATH."/images/stamp.gif\" border=\"0\" /></div>
                      <br /><br />
                      <b><font face=\"".$font_face."\" color=\"".$font_color."\" size=\"4\">".$headline."</font></b>
  <br /><br />
                      <font face=\"".$font_face."\" color=\"".$font_color."\" size=\"2\">".$message."</font>
  <br /><br />
                      <font face=\"".$font_face."\" color=\"".$font_color."\" size=\"2\">".$sender_name."</font><br />
  <a href=\"mailto:".$sender_email."\"><font face=\"".$font_face."\" color=\"".$font_color."\" size=\"2\">".$sender_email."</font></a>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
           <br />
        </td>
      </tr>
    </table>
     
         <b><font face=\"".$font_face."\" color=\"".$font_color."\" size=\"2\">See your eCard <a href=\"".$postcard_url."\">here</a>.</font><br />
         ".$config['site_name']."</center>";
 
  $mel = new html_mime_mail(102400, "iso-8859-1");
 
  $fp      = fopen(MEDIA_PATH."/".$cat_id."/".$image_row['image_media_file'], "r");
  $bin_img = fread($fp, filesize(MEDIA_PATH."/".$cat_id."/".$image_row['image_media_file']));
  fclose($fp);
  $mel->add_img($bin_img, MEDIA_PATH."/".$cat_id."/".$image_row['image_media_file'], "image/jpeg");
 
  $fp      = fopen(TEMPLATE_PATH."/images/stamp.gif", "r");
  $bin_img = fread($fp, filesize(TEMPLATE_PATH."/images/stamp.gif"));
  fclose($fp);
  $mel->add_img($bin_img, TEMPLATE_PATH."/images/stamp.gif", "image/gif");

  $mel->add_body($html_to_send);

  $mel->build_mail("base64", 5);

  $mel->send($sender_name, $sender_email, $recipient_name, $recipient_email, "eCard for you !");

  //echo $mel->get_rfc822($sender_name, $sender_email, $recipient_name, $recipient_email, "test ecard");

  } // end if

  if ($email_format == 'txt' || $email_format == 'txthtml') {
    include(ROOT_PATH.'includes/email.php');
    $site_email = new Email();
    $site_email->set_to(stripslashes($recipient_email));
    $site_email->set_from(stripslashes($sender_email), stripslashes($sender_name));
    $site_email->set_subject($lang['send_postcard_emailsubject']);
    $site_email->register_vars(array(
      "sender_name" => stripslashes($sender_name),
      "sender_email" => stripslashes($sender_email),
      "recipient_name" => stripslashes($recipient_name),
      "postcard_url" => stripslashes($postcard_url),
      "postcard_send_date" => format_date($config['date_format']." ".$config['time_format'], $current_time),
      "site_name" => $config['site_name']
    ));
    $site_email->set_body("postcard_message", $config['language_dir']);
    $site_email->send_email();
  } // end if
now, you can modify the code in $html_to_send .= to customize the final email.

1.3:
Find:
Code: [Select]

    $main_template = "postcard_preview";
    $image = get_media_code($image_row['image_media_file'], $image_id, $cat_id, $image_row['image_name'], $mode, 1);
    $thumbnail = get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_id, $cat_id, $image_row['image_name'], $mode);
    $site_template->register_vars(array(
Add right after:
Code: [Select]

         "lang_postcard_email_format" => $lang['postcard_email_format'],
         "postcard_email_format" => ($HTTP_POST_VARS['email_format'] == 'txt') ? 'text' : (($HTTP_POST_VARS['email_format'] == 'html') ? 'HTML' : 'text & HTML'), 
         "email_format" => $HTTP_POST_VARS['email_format'],

1.4:
Find:
Code: [Select]

if ($action == "createcard") {
  if (!$sendprocess) {
    $bg_color = "";
    $border_color = "";
    $font_color = "";
    $font_face = "";
    $sender_name = ($user_info['user_level'] != GUEST) ? $user_info['user_name'] : "";
    $sender_email = ($user_info['user_level'] != GUEST) ? $user_info['user_email'] : "";
    $recipient_name = "";
    $recipient_email = "";
    $headline = "";
    $message = "";
  }
  $image = get_media_code($image_row['image_media_file'], $image_id, $cat_id, $image_row['image_name'], $mode, 1);
  $thumbnail = get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_id, $cat_id, $image_row['image_name'], $mode);
  $site_template->register_vars(array(
Add right after:
Code: [Select]

      "lang_postcard_email_format" => $lang['postcard_email_format']."?",

Step 2:
Open /lang/<yourlanguage>/main.php
Add at the end of the file, just before ?> :
Code: [Select]
$lang['postcard_email_format'] = "Type of notification";
Step 3:
Open /templates/<yourtemplate>/postcard_create.html
Add this:
Code: [Select]

                            <tr>
                              <td class="row2" valign="top"><b>{lang_postcard_email_format}</b></td>
                              <td class="row2" valign="top">
                                <table border=0 cellspacing=3 cellpadding=1>
                                  <tr>
                                    <td>
                                      <input name="email_format" type="radio" value="txt" checked />
                                    </td>
                                    <td><font face="arial">Text</font></td>
                                    <td>
                                      <input name="email_format" type="radio" value="html" />
                                    </td>
                                    <td><font face="verdana">HTML</font></td>
                                    <td>
                                      <input name="email_format" type="radio" value="txthtml" />
                                    </td>
                                    <td><font face="arial">text & HTML</font></td>
                                  </tr>
                                </table>
                              </td>
                            </tr>

Step 4:
Open /templates/<yourtemplate>/postcard_preview.html
Add this:
Code: [Select]

<B>{lang_postcard_email_format}:</B> {postcard_email_format}
and this:
Code: [Select]

    <INPUT type="hidden" name="email_format" value="{email_format}" />

Step 5:
Download attched file, unzip it and copy it in 4images/includes/ directory.

------ END of Installation ------
 it should work !!! :wink:

234
Mods & Plugins (Releases & Support) / Re: Flash Slideshow
« on: May 24, 2005, 01:54:48 AM »
@Vincent
find this code in categories.php:
Code: [Select]
//-----------------------------------------------------
//--- flash Show changes 01 starts here          ---------
//-----------------------------------------------------
//-----------------------------------------------------
// Configrable variables ------------------------------
$max_height = "1024";  // any images with a greater height will not be included in slide show
$max_width   = "1024";  // any images with a greater width will not be included in slide show
check the height/width of the pics which do not display and try to modify the max values shown in this code.

For those who ask the question, I wrote the original version of this mod for 4images 1.7 and in this (actual!!!) mod I do not see the management of the researches, lightbox and paging...   :?
after a problem of hard disk  :roll: I get back my data (slowly but certainly). I'll publish the complete mod for version 1.7 when I'll find it with some missing line of codes.. 8)

235
When the following mode will be available.

3.[MOD] Send HTML-Postcards in Mailboxes (by cheribibi)
 old URL : http://www.4homepages.de/forum/viewtopic.php?t=14564
probably never, untill someone finds the post. (as u should see, this topic is listed as missing.
That's it! I am back! 8)
I have this complete mod but there are attached files (bigger than 128 KB...) and I do not know how to put them (at the moment) in downloading...  :oops:
If somebody has a solution...

Pages: 1 ... 12 13 14 15 [16]