Author Topic: [Mod] Notify sender on received eCard  (Read 73264 times)

0 Members and 1 Guest are viewing this topic.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [Mod] Notify sender on received eCard
« Reply #45 on: January 01, 2008, 11:40:45 PM »
I use 4images v1.74 and I see on line 153 of postcards.php file ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

jojomart

  • Guest
Re: [Mod] Notify sender on received eCard
« Reply #46 on: January 02, 2008, 12:02:24 AM »
I use 4images v1.74 and I see on line 153 of postcards.php file ...

Here's what I have in that section:

Code: [Select]

  if (!$image_row) {
      show_error_page($lang['invalid_postcard_id']);
    }
    else {
      $image = get_media_code($image_row['image_media_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode, 1);
      $thumbnail = get_thumbnail_code($image_row['image_media_file'], $image_row['image_thumb_file'], $image_row['image_id'], $image_row['cat_id'], $image_row['image_name'], $mode);
      $image_name_link = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$image_row['image_id'])."\">".format_text($image_row['image_name'])."</a>";
      $site_template->register_vars(array(
        "image" => $image,
        "thumbnail" => $thumbnail,
        "image_name_link" => $image_name_link,
        "bg_color" => format_text($image_row['postcard_bg_color'], 2),
        "border_color" => format_text($image_row['postcard_border_color'], 2),
        "font_color" => format_text($image_row['postcard_font_color'], 2),
        "font_face" => format_text($image_row['postcard_font_face'], 2),
        "sender_name" => format_text($image_row['postcard_sender_name'], 2),
        "sender_email" => format_text($image_row['postcard_sender_email'], 2),
        "recipient_name" => format_text($image_row['postcard_recipient_name'], 2),
        "recipient_email" => format_text($image_row['postcard_recipient_email'], 2),
        "headline" => format_text($image_row['postcard_headline']),
        "message" => format_text($image_row['postcard_message'])
      ));

Does all the stuff after:

Code: [Select]
  if (!$image_row) {
      show_error_page($lang['invalid_postcard_id']);
    }
    else {

get replaced by the mod code - or is it added before the other?

Thanks!

NEVER MIND - figured it out for myself
« Last Edit: January 02, 2008, 12:33:02 AM by jojomart »

Offline surferboy

  • Full Member
  • ***
  • Posts: 142
    • View Profile
Re: [Mod] Notify sender on received eCard
« Reply #47 on: April 23, 2010, 04:27:37 AM »
Hi -

Just installed this MOD.  Using v1.7.7.

Pulling this post. Just realized I uploaded the postcard_confirm.html to the template directory instead of the email directory.

Sorry to take up your time.

Brian

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [Mod] Notify sender on received eCard
« Reply #48 on: July 31, 2010, 09:07:25 PM »
Vano

I cannot find this code

if (!$image_row) {
      $msg = $lang['invalid_postcard_id'];
    }
    else {

inside of postcard.php, and i was wondering then how do i do this mod?? thank u sir

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] Notify sender on received eCard
« Reply #49 on: July 31, 2010, 09:28:13 PM »
search for
    if (!$image_row) {
      
show_error_page($lang['invalid_postcard_id']);
    }
    else {
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 zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [Mod] Notify sender on received eCard
« Reply #50 on: July 31, 2010, 10:01:15 PM »
sorry sir, i just have one question and this is for ALLL of the mods that are made by u and also others.

Whenever i go back in time to look at the MODs and then i want to try them i tend to see alot of syntax not being the same, now a variable here and there are changed, does this mean things have changed and MOD's that are later back in time cannot be integrated with version 1.77. Or does it just mean that certain syntaxs have changed and it doesnt really matter, MODS will still work.

Sorry sir, i thought i should ask this question now instead of keep on asking u everytme i find a syntax not matching the MOD u have made.

God bless u 

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] Notify sender on received eCard
« Reply #51 on: July 31, 2010, 10:07:00 PM »
Most of the time mods will work fine on newer 4images version. We are trying keep mods up to date with any changes required for newer 4images version, but as you can see not all of them are updated. At the end it's up to users as yourself to tell us if mod is working or not ;)
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 zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: [Mod] Notify sender on received eCard
« Reply #52 on: July 31, 2010, 10:18:24 PM »
hello sir

So does this mean that even though the syntax isnt quite the same as the one in the MOD section can i still tweak it?

thanks