Help for macro of NAML

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Help for macro of NAML

Silvana
Ciao. Following the advice of this forum, I was able to make the changes I needed in NAML. In particular, I added the Italian translation of the text of some messages to users. I was able to do everything, but I have a little problem. In this  part of code, I would like to start a new line after the word which I have marked in bold, but do not know how to do. The tag <br> does not work.

             "<t>For the safety of all, you can post in the forum only after you have been included in the group "Utenti confermati." This will happen as soon as possible and you will receive notice in a future email./ Per la sicurezza di tutti, potrai postare nel forum solo dopo che sarai stato inserito nel gruppo "Utenti confermati". Questo avverrà al più presto e ne riceverai avviso in una prossima email.</t>
                
              <t>If you didn't request this email or have no idea why you received it, please ignore it. It might have been a mistake from someone else./ Se tu non hai richiesto questa email e non sai perchè l'hai ricevuta, ignorala. Può essere stato un errore di qualcuno.</t>"

Can you tell me how should I do? I'm not an expert in html.
In emails that users receive, this part appears in one piece, without separation, so....

"For the safety of all, you can post in the forum only after you have been included in the group "Utenti confermati." This will happen as soon as possible and you will receive notice in a future email. /Per la sicurezza di tutti, potrai postare nel forum solo dopo che sarai stato inserito nel gruppo "Utenti confermati". Questo avverrà al più presto e ne riceverai avviso in una prossima email.  If you didn't request this email or have no idea why you received it, please ignore it. It might have been a mistake from someone else. Se tu non hai richiesto questa email e non sai perchè l'hai ricevuta, ignorala. Può essere stato un errore di qualcuno. "

....and I do not like. Thank you very much..
I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"
Reply | Threaded
Open this post in threaded view
|

Re: Help for macro of NAML

GregChapman
I haven't tried to do what you are attempting and you don't say exactly which macro you are editing. So I took a look at "ad_notice" as an example.

It seems that in that macro there is both a "text" and "html" part and things behave differently in each.
             <text_part>
                <t>Dear user,</t>
 
                <t><t.location.root_node.subject/> is running out of credits.</t>
                <t>Current Credits</t>: <t><t.number.current_credits/> Credits</t>
 
                <t>If you want to buy more credits, please visit:</t>
                <n.base_url/><n.buy_credits_path/>
 
                <t>Regards,</t>
                <t>The Nabble team</t>
            </text_part>
            <html_part>
                <t>Dear user,</t><br/>
                <br/>
                <t><t.location.root_node.subject/> is running out of credits.</t><br/>
                <t>Current Credits</t>: <t><t.number.current_credits/> Credits</t><br/>
                <br/>
                <t>If you want to buy more credits, please visit:</t><br/>
                <a href="[n.base_url/][n.buy_credits_path/]"><n.base_url/><n.buy_credits_path/></a><br/>
                <br/>
                <t>Regards,</t><br/>
                <t>Nabble Team</t>
            </html_part> 

It appears that within the "text_part" spacing out the "<t>...</t>" blocks with spaces or empty lines will make things appear as you wish, but within the "html_part" you need to insert an XHTML <br/> tag - and it must be done OUTSIDE the <t>...</t> tags.

Hope that helps!
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Help for macro of NAML

Silvana
Ciao Greg and thank you.  Macro is: "send_registration_email". I'll try to understand what you have explained. It is not easy, for me, for my inexperience and for  problems with the language. I hope to do. I wish you a wonderfull evening
I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"
Reply | Threaded
Open this post in threaded view
|

Re: Help for macro of NAML

GregChapman
That macro follows the same principles as the one I looked at, except that it has an additional "aol_part". However, for formatting, that part appears to follow the same rules as the "text_part".

"send_registration_email" is a little more complicated because of the additional HTML code that is included in the body of the message, but hopefully you can work it out.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Help for macro of NAML

Silvana
OK, Greg, I was able to do it. Tell me if I understand the procedure (for the future): to start a new line in the text of the macro, I have to add the tag <br/>, but I have to put it between the blocks <t> .... </ t> . So if I want to separate parts of a text, I have to create blocks with the text and close them in tags <t> .... </ t> and then separate them with <br/>. It is right?
I'm learning a lot of things .... THANKS!
I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"
Reply | Threaded
Open this post in threaded view
|

Re: Help for macro of NAML

GregChapman
Yes! You seem to understand. Just remember what you wrote only applies to the "html_part".

The other parts can just be spaced out without needing to use the <br/> tag.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Help for macro of NAML

Silvana
OK, but I have found only text in <t>....</t> , up to this moment. I will understand what you say, when I find different situations. If I'll not be sure, I'll ask you again . Ciao Greg, you are very kind..
I'm Italian. Excuse me if I'll make mistakes writing my posts. Ciao
This is my site: "La chiave nel pozzo"..
..and this is my forum: "La chiave nel pozzo - il forum"