View Single Post
  #1  
Old 04-23-2003, 03:29 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default Show Membership level in profile email - DONE

Howdy!

I've done some searching and I'm not quite sure how to integrate the user's membership level in the profile modified email tpl.

Any help would really really be appreciated. I have moderated memberships on, but all the User receives is an email with their contact info when I "approve" their membership.

From the client side this is a little clunky.

*************************************
SOLUTION
*************************************

1. Create new label. Admin, Languages, Pull Down Lang (English in my case), create new label "lbl_your_membership" with text "Your current membership level is: ".

2. Edit template skin1/mail/profile_modified.tpl. Insert User Membership information from database by calling "userinfo.membership".

My adds are in bold.

{$lng.lbl_first_name}: {$userinfo.firstname}
{$lng.lbl_last_name}: {$userinfo.lastname}

{$lng.lbl_your_membership}{$userinfo.membership}

{$lng.lbl_billing_address}:
{$lng.lbl_address}: {$userinfo.b_address}
{$lng.lbl_city}: {$userinfo.b_city}

*******************************
RESULT
*******************************

First Name: Jerry
Last Name: Seinfeld

Your current membership level is: Sponsored by ADP

Billing Address:
Address: 123 Sesame Street
City: Somewhere

Easy. Figured it out myself but I thought I would leave this tiny mod for anyone else interested in doing the same, but unsure of where to start.

Reply With Quote