We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Variables - Birthday Greetz | Forum

dave Leader
dave Jun 14 '13

Do i need to add the $ to all of these variables  this is how you have it as is now.

 

Dear {user_name},

We friends at {site_name} wish you a very Happy Birthday.

Regards,
{site_name}
{site_email}
{site_url}

dave Leader
dave Jun 14 '13

I see why you have it that way now, because if you put the $ in lang then it puts the value on the pluggins settings page..

 

So where you have:

 

You can use the following variables.  if i add the $  then it parses the values on the page like so

 

You can use the following variables: {$user_name}, Anorexiadating, http://www.anorexiadating.com/ and admin@anorexiadating.com

 

 

 

The Forum post is edited by dave Jun 14 '13
Purusothaman Ramanujam
No. You don't need to change them. I am yet to get home to see on the code myself.
dave Leader
dave Jun 14 '13

Ok thanks,

 

i put in the lang this just to remind me.. :)

 

You can use the following variables: {user_name}, {site_name}, {site_url} and {site_email} Add $ to the beginning of each variable.

 

thanks i will wait for you..

The Forum post is edited by dave Jun 14 '13
dave Leader
dave Jun 14 '13

yes i like the way you have it done in the new user alert plugin, it only has this

 

"You can use the below constants to replace with actual values in Email:"

 

in the lang

 

and the constants are listed under that (but not from lang) and does not parse in the instructions.

 

{$display_name} - User Display Name

{$user_name} - User Name

{$user_avatar} - User Avatar Image

{$user_url} - User Profile Link

 

good job with that one.... :)

Purusothaman Ramanujam
Thanks. I am in my office for the past 20 hours :(

Once I get back I will change those strings.
dave Leader
dave Jun 14 '13

wow thats a long time to work sorry, hope you get some rest soon.  I did find how you did this in the admin_settings html in the adminnotify.   nice use of the smarty function, i have never seen that idelim before,  good stuff. :) 

 

You can still fix your end when you get a chance, and send me a copy, no hurry with this  i know you work alot, im gonna try here to do it just to see if i can... 

 

Looks like i just need to post the text key, the ul and li with the escaped vars in the admin index of the greetz under the form just like you did for the other one...  diff  vars but same concept

The Forum post is edited by dave Jun 14 '13
dave Leader
dave Jun 14 '13

yep got it...

 

in the admin index html  right before the close div  

 

text key already displayed so no need for it again

 

     <ul>
     <li><b>{ldelim}$user_name{rdelim}</b> - User Name </li>
     <li><b>{ldelim}$site_name{rdelim}</b> - Website Name </li>  
     <li><b>{ldelim}$site_url{rdelim}</b> - Website URL </li>
     <li><b>{ldelim}$site_email{rdelim}</b> - Website Email </li>
    </ul>

 

and then in the key just have

 

You can use the following variables:

 

perfect :)

The Forum post is edited by dave Jun 14 '13
dave Leader
dave Jun 14 '13

And then for the message all  plugin its just

 

 <ul>
   <li><b>{ldelim}$user_name{rdelim}</b> - User Name </li>
 </ul>

 

in the admin index  because you already have the lang text above in the form display..

 

just alittle bored here thought i would save you some time cause i know your working...

 

done thanks... :)

The Forum post is edited by dave Jun 14 '13
Purusothaman Ramanujam
Thanks for your time on this. Hope all is set so that nothing needs to be done from my side now.
dave Leader
dave Jun 14 '13

yes i am all set, but up to you if you just wanted to standardize the way you do it on the form for all three plugins. For me its always better to allways do it one way on stuff like that so that they all use th same process.  But thats up to you on your end if you wanted to change your side or not ... :) 

 

Hope you get some rest :) 

The Forum post is edited by dave Jun 14 '13
Purusothaman Ramanujam
Thanks :)

This topic is locked
You do not have permission to reply this topic