 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
April 9th, 2009, 04:14 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Sep 2005
Posts: 141
| How to change email text
After upgrading to 3.1 email sent from server are corrupted. Where can I find the email texts and translate them?
See examples of e-mails: Code: Content visible to verified customers only.
|
| |
April 9th, 2009, 07:55 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
they are corrupt?
what download are you using?
|
| |
April 9th, 2009, 08:18 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Sep 2005
Posts: 141
|
As you can see there are a lot of visible <br /> codes and links are missing.
Where are the email-text now? In the database or in a file, in case which?
I have the 5th April build.
|
| |
April 9th, 2009, 08:40 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
You can choose to send HTML email in admin settings.
Your email string should be in the database under edit language strings and you can search for it.
|
| |
April 9th, 2009, 11:46 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Sep 2005
Posts: 141
| Quote:
Originally Posted by Chuck S You can choose to send HTML email in admin settings.
Your email string should be in the database under edit language strings and you can search for it. | In my admin settings I have html email off and send mail as email.
I do not want to send as html, I just don't want the <br /> tags to show in the email as they didn't do before.
Some of the emails are as strings in the phrase database, but not the auction emails - they are as code in sendnotice.php - maybe they can be moved into strings in the database?
|
| |
April 9th, 2009, 01:01 PM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Sep 2005
Posts: 141
|
I have tested several things now, and I cannot get the email to function properly.
I have tested with the report email.
With setting Email and HTML of the result is: Quote:
*user* has complained (^reason) about one of the ads in the database:<br />
<br />
| *user* is name of the user - that works fine, but the email text stops there.
With html on: Quote: |
*user* has complained (^reason) about one of the ads in the database:
| I turned html of again, and removed the nl2br() from pp-inc.php and that was better: Quote:
*user* has complained (^reason) about one of the ads in the database:
<a href="*url*" target="_blank">*url*</a>
with the following description:
*desc*
| But still there are two errors: reason doen't show and the link is in html code.
Something must be wrong with the email system - does it work like it should on the demo site?
|
| |
April 9th, 2009, 01:45 PM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
Can you please actually post your email so I can see what might be wrong.
|
| |
April 9th, 2009, 01:52 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Sep 2005
Posts: 141
|
I have posted them in post 6. Just removed personal information. They are short like that, but removing nl2br resulted in the last email with full text like shown above.
|
| |
April 9th, 2009, 02:57 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
You have blanked out the url so I am not really sure what your trying to say which is indeed why I need a real email nothing you alter.
Based on the actions I see you might try redownloading the build and uploading pp-inc.php and misc.php those are the two files that govern that process.
|
| |
May 21st, 2011, 02:40 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Apr 2011
Posts: 43
|
I am running the latest version, clean install, and my complaint emails are doing this as well.
All I am getting in the email is:
USER has complained (^reason) about one of the ads in the database:
.. and thats it.
Any ideas?
|
| |
May 21st, 2011, 04:50 PM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
I will test it and see but we do declare these variables in misc.php simple str_replace in php. Code: Content visible to verified customers only.
|
| |
May 21st, 2011, 05:07 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Apr 2011
Posts: 43
|
Well. I tried setting HTML email to NO, and now it seems to be working (almost).
I am now getting the "more information" and the link .. but it still says ^reason.
Looks like the HTML version is broken.
|
| |
May 21st, 2011, 07:48 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
The ^reason line must be added for subject the code should look like this Code: Content visible to verified customers only.
Last edited by Chuck S; May 21st, 2011 at 08:20 PM.
|
| |
May 22nd, 2011, 09:54 AM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Apr 2011
Posts: 43
|
Thanks! .. but that didn't work. I got it working though. It should be:
$letter = str_replace("^reason","$reason",$letter);
(not in the subject)
|
| |
May 22nd, 2011, 10:27 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,676
|
LOL yeah saturday night posting not a good thing.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:53 AM. | |