Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Maian Script World on YouTube Maian Script World on LinkedIn


Please Read

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.

#26 01-01-2012 23:13:22

Klauwaart
Members
From: United Kingdom (Great Britain)
Registered: 22-10-2007
Posts: 184

Re: Language of emails

Oh dear, this is getting more confusing by the minute. sad

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. smile

Nevertheless, i will try to work it out step by step.

Thank you for your help.

Offline

#27 01-01-2012 23:32:19

Skywalker
Members
Registered: 13-06-2011
Posts: 16

Re: Language of emails

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

#28 01-01-2012 23:47:17

Klauwaart
Members
From: United Kingdom (Great Britain)
Registered: 22-10-2007
Posts: 184

Re: Language of emails

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

#29 02-01-2012 00:02:27

Skywalker
Members
Registered: 13-06-2011
Posts: 16

Re: Language of emails

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

#30 02-01-2012 00:09:12

Klauwaart
Members
From: United Kingdom (Great Britain)
Registered: 22-10-2007
Posts: 184

Re: Language of emails

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

#31 02-01-2012 00:19:53

Skywalker
Members
Registered: 13-06-2011
Posts: 16

Re: Language of emails

i'm still building the system the way i want it to be when its ready i'll post it smile

Offline

#32 02-01-2012 00:20:57

Klauwaart
Members
From: United Kingdom (Great Britain)
Registered: 22-10-2007
Posts: 184

Re: Language of emails

OK.
Thank you.

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2013 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy