How coluld I use html tags in language files and NMS module ?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

How coluld I use html tags in language files and NMS module ?

Post by amin30b »

I want to use some html tags like or in language file , but they don`t compile as a html construction in pages and pages print those tags beside of other words .

Also in some modules like NMS (Subscription mail) when I edit template with html tags in mail services those tags don`t compile with browsers .
How could I use those tags ?
Last edited by amin30b on Mon Sep 17, 2007 8:02 pm, edited 1 time in total.
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

Re: How coluld I use html tags in language files ?

Post by amin30b »

This is an example :
$lang['prompt_replyto'] = 'Reply To';
it cause in pages I would see Reply To instead of Reply To .
Please guide me  ::)
Last edited by amin30b on Tue Sep 11, 2007 11:34 pm, edited 1 time in total.
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

Re: How coluld I use html tags in language files ?

Post by amin30b »

Oh , let me know if I couldn`t  :-\
Pierre M.

Re: How coluld I use html tags in language files ?

Post by Pierre M. »

I don't know. Have you tried to encode : > etc ?

Pierre M.
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

Now I need it just in Newsletter Made Simple module

Post by amin30b »

Using html tags in language files is not very important for me , but I need it with Newsletter Made Simple module .
Because my native language is right to left and I should use Html tags for showing my mail content with true direction .
Of course this problem only appears with some messages that will be send to users email and I don`t have this problem with messages that appear in my website pages through Newsletter Made Simple module .
Please learn me a trick for it  ;)
thanks 
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

Re: How coluld I use html tags in language files and NMS module ?

Post by amin30b »

As I found it is impossible for me to have a messages html template because nobody offers a posible solution .
Am I right ? ???
alby

Re: How coluld I use html tags in language files ?

Post by alby »

amin30b wrote: Oh , let me know if I couldn`t  :-\
Why you don't edit templates, for example compose.tpl:
{if isset($message)}{$message}{/if}
{$startform}
{$messageid}
{$isediting}
 
    {$prompt_from}:
    {$from}
 
 
    {$prompt_replyto}:
    {$reply_to}
 
.....................
with:
{if isset($message)}{$message}{/if}
{$startform}
{$messageid}
{$isediting}
 
    THIS IS FROM:
    {$from}
 
 
    THIS IS REPLY:
    {$reply_to}
 
......................
Alby
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

Re: How coluld I use html tags in language files and NMS module ?

Post by amin30b »

Thanks Alby , I`ll do that and report result . :D
User avatar
amin30b
Forum Members
Forum Members
Posts: 146
Joined: Sat Mar 31, 2007 8:02 am

Re: How coluld I use html tags in language files and NMS module ?

Post by amin30b »

I`m sorry  :-[ I can`t find related content tpl file ,
For example , which tpl file is related to below message ?
Hello {$username}.
Someone, hopefully you, has subscribed your email address to the following newsletters:
{foreach from=$lists item=list}
* {$list}
{/foreach}
If this is correct, please click the following link to confirm your subscription or copy and paste the link into your web browser. Without this confirmation, you will not receive any newsletters. {$confirmurl} If you did not sign up for this newsletter you do not need to do anything, simply delete this message. Thank you!
Last edited by amin30b on Mon Sep 24, 2007 8:43 pm, edited 1 time in total.
alby

Re: How coluld I use html tags in language files and NMS module ?

Post by alby »

amin30b wrote: I`m sorry  :-[ I can`t find related content tpl file ,
prompt_replyto is in template/compose.tpl

amin30b wrote: For example , which tpl file is related to below message ?
Hello {$username}.
Someone, hopefully you, has subscribed your email address to the following newsletters:
{foreach from=$lists item=list}
* {$list}
{/foreach}
If this is correct, please click the following link to confirm your subscription or copy and paste the link into your web browser. Without this confirmation, you will not receive any newsletters. {$confirmurl} If you did not sign up for this newsletter you do not need to do anything, simply delete this message. Thank you!
NMS.module.php #33

Alby
Post Reply

Return to “CMSMS Core”