latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Marcos Figueroa

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To


My Latest Replies (From Various Topics)

Viewing 10 replies - 1 through 10 (of 10 total)
Author Replies
Author Replies
Posted: Monday Jul 16th, 2012 at 9:25 pm #19422

I’m having the same problem. My themes background is “whited out” when a user isn’t logged in.

After login, it shows the background (that matches the rest of the site) just fine.

What can be done about this?

http://www.keepourforestopen.org/forum

Posted: Tuesday Jul 3rd, 2012 at 2:30 pm #18213

After testing:

  • This works great on new records being created in s2Member…everything carries over to MailChimp!
  • Looks like it will transition membership levels(s2Member) – changing the list group associated with subscriber (MailChimp)
  • It will NOT however change any other information… Name, address, phone, etc…
  • If you change the email, it will NOT transition…since MailChimp’s unique identifier is the email.
  • It appears that MailChimp maintains the additional fields and just updates list group associated… removing them from one and subscribing them to another.
  • It WILL delete a record in MailChimp if deleted in s2Member!
  • You must check the: Re-process List Servers: [?] [] Yes, send a mailing list confirmation email to this User. – for any of this to happen. It will only transition the record the first time you change it in s2Member…so make sure this is checked!
  • Does NOT sync to MailChimp when doing a mass import.
  • Thats it! :-)

    • This reply was modified 4 years, 6 months ago by  Marcos Figueroa. Reason: updated a functionality
    • This reply was modified 4 years, 6 months ago by  Marcos Figueroa.
    Posted: Tuesday Jul 3rd, 2012 at 2:01 pm #18210

    Cool, Thanks Raam!

    Posted: Tuesday Jul 3rd, 2012 at 2:00 pm #18209

    As an update, I decided to remove my site from a multisite environment.

    I am now running these sites on separate wordpress installs.

    Posted: Tuesday Jul 3rd, 2012 at 1:59 pm #18208

    I do have one other question, Christian…. or anyone…

    Will this work (export to MailChimp) if I upload an import into s2Member via your import feature?

    Or will I need to import into both, s2Member and MailChimp to start?

    Thanks,

    Marcos

    Posted: Tuesday Jul 3rd, 2012 at 1:55 pm #18207

    I got it!!!

    user_login calls the username!

    I’ll attach my completed code that is pulling over everything I want into MailChimp so others can hopefully benefit. I do believe that this hack only works on new registrations. It won’t work on updates or even transitioning… Is this correct, Cristian? I believe this function is being integrated into the next major release… Is that correct?

    Here goes:

    Also… it must be placed in the following location on your install: /wp-content/mu-plugins/s2-hacks.php
    (This stands for MUST USE PLUGINS – if the mu-plugins folder doesn’t exist – create it)

    My working Code:

    <?php
    add_filter("ws_plugin__s2member_mailchimp_merge_array", "my_filter", 10, 2);
    function my_filter($merge, $vars)
        {
    // $merge /* Array of existing MERGE fields that s2Member passes by default. */
    // $vars /* Array of defined variables in the scope/context of this Filter. */
    
    		$user_id = $vars["user_id"];
            // print_r($vars); // Lots of good stuff in this array.
    
    		$user_address = get_user_field("address", $user_id);
    		$user_city = get_user_field("city", $user_id);
    		$user_state = get_user_field("state", $user_id);
    		$user_zip = get_user_field("zip", $user_id);
    		$user_phone = get_user_field("phone", $user_id);
    		$user_login = get_user_field("user_login", $user_id);
    
    		$my_custom_merge_vars = array(
    				"ADDRESS" => $user_address, 
    				"CITY" => $user_city, 
    				"STATE" => $user_state, 
    				"ZIP" => $user_zip, 
    				"PHONE" => $user_phone, 
    				"USERNAME" => $user_login);
    
            return array_merge($merge, $my_custom_merge_vars);
        }
    ?>

    Thank you to Jason & Christian for the help!

    Cheers!

    Posted: Tuesday Jul 3rd, 2012 at 1:41 pm #18205

    OH MY GOSH!!! Thank you so much!!

    Hours and hours spent working on this and I had it right at the beginning…mostly! Since I’m so new to this world…I didn’t know the mu-plugins folder was a “must use” folder… I assumed it was the plugin folder for multi user (old multisite). Dang!

    I’ll NEVER make that mistake again! Learning Pains!!!

    Thank you so much for your very generous and kind help (even if you snickered under your breath…”newbie”!!! haha!

    I really do appreciate it!

    Oh, and yes… It worked like a champ. I had to fix a few glaring errors I made when I was half asleep (field names), but it works!!!

    There is one field I’m attempting to export… Username… but I’ve not been successful, yet! Any chance you know the appropriate field name?

    Thanks!

    Marcos

    Posted: Tuesday Jul 3rd, 2012 at 2:07 am #18129

    Raam,

    I’m curious, is there an expected time for the next major release?

    Posted: Tuesday Jul 3rd, 2012 at 1:57 am #18127

    Cristain,

    I’ve searched until my eyes hurt! :-) I’m not very experienced with php, but am pretty determined. I’ve found variations of code, mostly due to updates…but you linked the one above 7 days ago, so I’m assuming it’s current.

    I’m hoping you can give me some insite as to why this isn’t working:

    I’m attempting to have the custom fields in s2 merge into mailchimp. I do have the basic integration working fine, but I can’t seem to get anything other than name, email, time and ip to carry.

    keepourforestopen.org

    NOT A MULTI-USER ENVIRONMENT: I’ve created a file h2-hacks.php and it’s located as such – /wp-content/plugins/s2-hacks.php

    <?php
    add_filter("ws_plugin__s2member_mailchimp_merge_array", "my_filter", 10, 2);
    function my_filter($merge, $vars)
        {
    // $merge /* Array of existing MERGE fields that s2Member passes by default. */
    // $vars /* Array of defined variables in the scope/context of this Filter. */
    
    		$user_id = $vars["user_id"];
            // print_r($vars); // Lots of good stuff in this array.
    
    		$user_st_address = get_user_field("st_address", $user_id);
    		$user_city = get_user_field("city", $user_id);
    		$user_state = get_user_field("state", $user_id);
    		$user_zip_coode = get_user_field("zip_code", $user_id);
    		$user_phone = get_user_field("phone", $user_id);
    
    		$my_custom_merge_vars = array(
    				"ST_ADDRRESS" => $user_st_address, 
    				"CITY" => $user_city, 
    				"STATE" => $user_state, 
    				"ZIP_CODE" => $user_zip_code, 
    				"PHONE" => $user_phone);
    
            return array_merge($merge, $my_custom_merge_vars);
        }
    ?>

    I really did research the forums for hours and hours, but I just don’t seem to be making headway.

    Thanks in advance.

    • This reply was modified 4 years, 6 months ago by  Marcos Figueroa. Reason: added website
    Posted: Sunday Jul 1st, 2012 at 1:48 am #18006

    I’m currently working on a new install of wordpress multisite using subdomains.

    I have a main site (empty) @ moonshinemedia.cc

    I have 4 “subdomain” sites @ xxxxxxxx.moonshinemedia.cc that are being mapped with: WordPress MU Domain Mapping to standard domains.

    The one I’m currently working with (Probably the same problem on all, though)…
    keepourforestopen.org

    This is the domain that I’ve activated S2Member Pro.

    I’m walking through the setup (step at a time) and am at the: LOGIN/REGISTRATION DESIGN –

    Login/Registration Page Customization ( required )

    These settings customize your Standard Login/Registration Pages:
    ( http://keepourforestopen.org/wp-login.php?action=register )

    The above “registration url” takes me to the main site for registration. All of these sites are independent. I installed Multisite because I thought it was just that…multi (many) sites. The information I read before said it was the direction that developers/designers were going…because of it’s ease of updating and managing.

    I’ve searched and am thoroughly confused. I’m not sure if things have changed with updates to WordPress or ?????

    All of my sites seem to have “separate” users…I’ve tested and added to one and it doesn’t show up in others…That’s good!

    However, all site users show up in the Network Admin Panel. That doesn’t bug me so much, but when a user is deleted from a site… the site is removed from said user name, but the user remains…even if it’s not associated with a site…

    2 Questions…

    1. How do I make the “registration” urls actually stay within the site. I thought that this is what the domain mapping was supposed to do. They’re all separate sites…I can’t have it redirect to the main site for registers.

    2. How do I make a user be deleted from the Network Admin when they’re deleted from a site?

    Sorry if this is too long, but I’m somewhat new to all of this and am trying to learn quickly. This one has me stumped!

    Thanks so much!

    Viewing 10 replies - 1 through 10 (of 10 total)

    Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

    Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.