Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-03T23:48:05-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16573 2012-01-03T23:48:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=59614#p59614 <![CDATA[Re: Need membership level in admins new user notification em]]>

Statistics: Posted by Cristián Lávaque — January 3rd, 2012, 11:48 pm


]]>
2012-01-02T15:20:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=59439#p59439 <![CDATA[Re: Need membership level in admins new user notification em]]>
Then there may be hope for me yet!

Thank you for your timely, persistent and, pardon the pun, primo support!

Geo

Statistics: Posted by Uncle Geo — January 2nd, 2012, 3:20 pm


]]>
2011-12-31T06:06:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=59325#p59325 <![CDATA[Re: Need membership level in admins new user notification em]]>

By the way, you can have more than one custom value custom="www.yoursite.com|firstvalue|secondvaule|etc" and they'd be available as %%cv1%%, %%cv2%% and %%cv3%%. The domain name is not counted as a cv#, only those after it.

Statistics: Posted by Cristián Lávaque — December 31st, 2011, 6:06 am


]]>
2011-12-30T15:58:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=59256#p59256 <![CDATA[Re: Need membership level in admins new user notification em]]>
I install and activate the PHP Execution plugin.

I add the php line you gave me into the shortcode for each signup level button like this (I'm showing only two of the levels but I changed them all to include the php line):
Code:
Member: $75/year [s2Member-Pro-Google-Button level="2" ccaps="" desc="Member" cc="USD" custom="www.smallbusinessmn.org|<?php echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL; ?>" ta="75.00" tp="1" tt="Y" ra="75.00" rp="1" rt="Y" rr="1" image="default" output="anchor" /]

Supporter: 150/year [s2Member-Pro-Google-Button level="3" ccaps="" desc="Supporter" cc="USD" custom="www.smallbusinessmn.org|<?php echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL; ?>" ta="150.00" tp="1" tt="Y" ra="150.00" rp="1" rt="Y" rr="1" image="default" output="anchor" /]


Then I'd add user_level %%cv1%% into the Administrative: User Notification Email.

Logically is it going like this?:

The PHP line is what picks up the user level from level="n" within the button's shortcode and stores it in an array or table (or sends it along to Google with the other info and Google sends it back).

Then that value is retrieved and added to the e-mail by the line user_level %%cv1%% in the Administrative: User Notification E-mail. And it knows it's cv1 because it's the first and only custom value in the shortcode.

(By now you see I'm not a programmer!)

Statistics: Posted by Uncle Geo — December 30th, 2011, 3:58 pm


]]>
2011-12-30T00:23:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=59201#p59201 <![CDATA[Re: Need membership level in admins new user notification em]]>
Yes, you'd pipe the custom value like this: custom="www.smallbusinessmn.org|1" where the 1 would be the Level of the user.

You can change that dynamically, too. viewtopic.php?f=36&t=1604
WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants

Code:
custom="www.smallbusinessmn.org|<?php echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL; ?>"



Then in the email you'd use it like this: User Level %%cv1%%.

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — December 30th, 2011, 12:23 am


]]>
2011-12-29T16:06:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=59137#p59137 <![CDATA[Re: Need membership level in admins new user notification em]]>
custom="www.smallbusinessmn.org|cv1|cv2|cv3"

Do I then put all these %%cv1%% %%cv2%% %%cv3%% in the New User Email Notification Message area? And then only one will have a value when the e-mail is sent?

Am I off the rails, in over my head and hopelessly lost at this point?

Statistics: Posted by Uncle Geo — December 29th, 2011, 4:06 pm


]]>
2011-12-29T15:55:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=59133#p59133 <![CDATA[Re: Need membership level in admins new user notification em]]> think I see where you are going -check this and let me know if I'm way off or not:

In the E-mail Configuration/New User notification Message I see the "custom replacement codes" you mentioned which suggests I add a custom value into the shortcode. I might choose cv1 and set it to value "75" like this:
Code:
Member: $75/year [s2Member-Pro-Google-Button level="2" ccaps="" desc="Member" cc="USD" custom="www.smallbusinessmn.org" cv1="75" ta="75.00" tp="1" tt="Y" ra="75.00" rp="1" rt="Y" rr="1" image="default" output="anchor" /]


This suggests that Google will return that cv1 value as 75 to S2Member's database at my Worpress install when it is done extracting cash from my new member.

It seems I would then add %%cv1%% to the list if fields in the New User Notification Message.

Any of that sound right? (I'm checking first because payments are working now I don't want to break that!)

Statistics: Posted by Uncle Geo — December 29th, 2011, 3:55 pm


]]>
2011-12-29T05:13:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=59075#p59075 <![CDATA[Re: Need membership level in admins new user notification em]]> WP Admin -> s2Member -> General Options -> Email -> New User -> Administrator -> Custom Replacement Codes

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — December 29th, 2011, 5:13 am


]]>
2011-12-28T15:17:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=59020#p59020 <![CDATA[Re: Need membership level in admins new user notification em]]>
I'm just adding in the field names as instructed in the Admniistrator: New User Notification area under E-mail Config. The first four are default fields already in there and the rest I added from the field names on the custom form -to whit:

Code:
New User Registration on your site:
Small Business MN

User ID: %%user_id%%
Username: %%user_login%%
Email: %%user_email%%
IP Address: %%user_ip%%
company_name: %%company_name%%
position: %%position%%
street_address: %%street_address%%
address2: %%address2%%
city: %%city%%
state: %%state%%
zip: %%zip%%
phone: %%phone%%
company_email: %%company_email%%
company_website: %%company_website%%
employees: %%employees%%
company_does: %%company_does%%
home_address: %%home_address%%
home_city: %%home_city%%
home_state: %%home_state%%
home_zip: %%home_zip%%
home_tel: %%home_tel%%
cel: %%cel%%
home_email: %%home_email%%
spouse_name: %%spouse_name%%
pref_email: %%pref_email%%
pref_phone: %%pref_phone%%
mail: %%mail%%
pref_listing: %%pref_listing%%
pref_vol: %%pref_vol%%


I guessed (wrongly) that %% member_level%% might return the member level in the new user e-mail sent to admins.

Statistics: Posted by Uncle Geo — December 28th, 2011, 3:17 pm


]]>
2011-12-27T16:49:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=58969#p58969 <![CDATA[Re: Need membership level in admins new user notification em]]>
Can you share the code you're using to include the custom form data?

Statistics: Posted by Raam Dev — December 27th, 2011, 4:49 pm


]]>
2011-12-27T16:37:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16573&p=58966#p58966 <![CDATA[Need membership level in admins new user notification email]]> new user notification for admins to include our custom form data (I figured that part out) and the member's sign-up level (I haven't figured that part out).

Is there a way to add their membership level to that e-mail?

Statistics: Posted by Uncle Geo — December 27th, 2011, 4:37 pm


]]>