You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees
when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.
IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.
You are not logged in.
Oh dear, this is getting more confusing by the minute. ![]()
For the time being I have just renamed my email templates to *****.txt.txt and ****.txt_nl.txt.
I told you I am as thick as two planks of wood when it comes to PHP coding. ![]()
Nevertheless, i will try to work it out step by step.
Thank you for your help.
Offline
just looked at your site then it should be:
$MAIANEMAIL->email_message('templates/email/change_email'.(isset($_COOKIE['language_file']) && $_COOKIE['language_file']=='nl.php' ? '_nl' : '').'.txt')
if you only use english and dutch
or try next code if u use more
if (isset($_COOKIE['language_file']) && $_COOKIE['language_file']=='nl.php') {
$MAIANEMAIL->email_message('templates/email/change_email_nl.txt')
}
else if (isset($_COOKIE['language_file']) && $_COOKIE['language_file']=='thirdlang.php') {
$MAIANEMAIL->email_message('templates/email/change_email_thirdlang.txt')
}
else if (isset($_COOKIE['language_file']) && $_COOKIE['language_file']=='english.php') {
$MAIANEMAIL->email_message('templates/email/change_email.txt')
}
else {
your default language file u want to use
}
Last edited by Skywalker (01-01-2012 23:33:15)
Offline
Thank you, Skywalker.
But the code you give me is exactly what it saya on my site.
The line below was copied and pasted literally from my website, and it seems to be identical to what you advise me to write.
"$MAIANEMAIL->email_message('templates/email/change_email'
.isset($_COOKIE['language_file'])&&$_COOKIE['language_file']=='nl.php'?'_nl':'').'.txt')"
And, yes, I only use English and Dutch, nothing further.
Thank you for your input so far.
Offline
strange it does work on my site
then you can try
if (isset($_COOKIE['language_file']) && $_COOKIE['language_file']=='nl.php') {
$MAIANEMAIL->email_message('templates/email/change_email_nl.txt')
}
else if (isset($_COOKIE['language_file']) && $_COOKIE['language_file']=='english.php') {
$MAIANEMAIL->email_message('templates/email/change_email.txt')
}
else {
$MAIANEMAIL->email_message('templates/email/change_email_nl.txt') or $MAIANEMAIL->email_message('templates/email/change_email.txt')
}
choose one off the 2 and delete or
Offline
Yes, that seems to be the best solution, just put the change in there directly.
I'll give that a try.
BTW can I have your site's URL so i can look at your e-card system?
Thanks.
Offline
i'm still building the system the way i want it to be when its ready i'll post it ![]()
Offline
OK.
Thank you.
Offline