Author Topic: [MOD] Send complete HTML-Postcards in mailboxes  (Read 51530 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] Send complete HTML-Postcards in mailboxes
« Reply #15 on: August 05, 2005, 02:33:53 PM »
and do u receive any kind fof emails through 4images at all?
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 Martin.G

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #16 on: August 05, 2005, 09:48:19 PM »
As long as I have not installed the mod above it works.

As soon as I have made the described changes I do not get any e-mail by sending an eCard.

TheOracle

  • Guest
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #17 on: August 06, 2005, 04:30:54 AM »
That's strange. I have never seen this kind of array in 4images before :

Quote

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


I thought it needed to be like this :

Code: [Select]

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


Have I missed something ? :|

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] Send complete HTML-Postcards in mailboxes
« Reply #18 on: August 06, 2005, 04:54:40 AM »
its actualy just append ? to the end of the string in the $lang['postcard_email_format'] variable ;)

it's like:
Code: [Select]
$lang['postcard_email_format'] = "cool";
echo $lang['postcard_email_format']."?";
it will output:
Quote
cool?
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 ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #19 on: August 08, 2005, 02:08:54 AM »
When I send the postcard the system shows me a successful action (Vielen Dank! Ihre eCardwurde erfolgreich versendet), but I do not recieve any e-mail whether I choose html or txt.

humm.. the end of step 1.2 is almost the same than original code. then if you choose TXT or Both TXT  & HTML, a part of the script works like original code : i just add a condition. if you remove the last if in  step 1.2, a normal txt email will be sent.

if not you should restore your backup files  and try to re-install  the mod  :wink:
ch€ri{Bi}²


Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #20 on: August 14, 2005, 05:32:42 PM »
I tried this mod but it doesn`t work.
I am using 4images 1.7.1.
When I send the postcard the system shows me a successful action (Vielen Dank! Ihre eCardwurde erfolgreich versendet), but I do not recieve any e-mail whether I choose html or txt.
Any idea what goes wrong?
With version 1.7.1 many problems at this time,
try to download 1.7, you search this from google ;)
something wrong with global.php and paging system...

Offline renicolay

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #21 on: November 13, 2005, 05:54:53 PM »
Any idea if this is somthing that is easily fixed for 1.71? I've been working on this feature and would love to have it on my site?

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #22 on: November 15, 2005, 09:46:37 AM »
Quote
With version 1.7.1 many problems at this time,
this mod works very well with v1.7.1  :wink:
ch€ri{Bi}²


Offline renicolay

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #23 on: November 16, 2005, 09:36:59 PM »
Thanks! I'll try and reinstall the MOD.


Michael

  • Guest
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #24 on: December 21, 2005, 11:46:48 PM »
Thanks for wonderful MOD  :D

Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #25 on: December 30, 2005, 08:29:23 PM »
I have just installed this mod and its working fine!  :)
I have also uploaded FCKeditor and integrated it into the message field, the out produced is in html and on the card preview the raw html code is show…. :x

Is it possible that the HTML code is integrated into the postcard, so that formatted text is show and not the raw html codes:?:
Thanks for this useful mod  :D

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] Send complete HTML-Postcards in mailboxes
« Reply #26 on: December 31, 2005, 01:38:17 AM »
omg...you are letting your visitors use HTML? did you know only one line of javascript code needed to get control of your gallery if you let use HTML?
bad idea!
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 ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #27 on: December 31, 2005, 10:52:59 AM »
Is it possible that the HTML code is integrated into the postcard, so that formatted text is show and not the raw html codes:?:
yes it is possible here the solution:

open postcard.php file in your root

everywhere you find this :
Code: [Select]
$message = htmlspecialchars(trim($HTTP_POST_VARS['message']));add after:
Code: [Select]
$message_preview  = un_htmlspecialchars(trim($HTTP_POST_VARS['message']));
you must  also register a new var called $message_preview corresponding to the last change
i.e : find
Quote
"message" => stripslashes($message),
add after:
Quote
"message_preview" => stripslashes($message_preview),

and in your template, if you want to display formated HMTL message, don't use {message} but modify it to {message_preview}  
but as v@no said : it is very risky... :roll:
try to use FCKeditor with a basic tool bar :wink:
ch€ri{Bi}²


Offline Eagle Eye

  • Full Member
  • ***
  • Posts: 191
    • View Profile
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #28 on: December 31, 2005, 11:16:09 AM »
Happy New Year!

Thanks V@no  & cheribibi  :D

I guess warning by one of the best php coder should not be ignored!!! :idea:

don’t want to see my hard work blown into air by leaving silly security holes, thanks guys I will not be using this addition…

p.s V@no, is there any way to work around this? like not allowing JavaScript? will this help "try to use FCKeditor with a basic tool bar" or the answer is simple, “don’t allow visitors to use html codes in your gallery”  :(


Thanks a lot


Edited: I have noticed that after “ecard preview”, the “modify ecard” button does not work, like if I press it once no change, the second time it goes back to the photo details page….

Is this a bug? or its my mistake somewhere…


Offline cj_storm

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: [MOD] Send complete HTML-Postcards in mailboxes
« Reply #29 on: January 11, 2006, 10:49:28 AM »
Send please on email (storm@e1.ru) the working postcards.php
And that after a step 1.2 that does not come :(