• rajaman

    (@rajaman)


    Is it possible to add custom fields to the subscription form? I think it would be very valuable to capture at least a name and/or additional information for newsletter subscriptions. Would love to see that feature become available soon. Or is it already possible to do that?

Viewing 10 replies - 16 through 25 (of 25 total)
  • I will try and get in touch with the author – the mailpress.org site seems to be having some difficulties at the moment though.

    Thanks for the code just what I was looking for.

    @davelassanske: I have been looking on how to do this too; so thanks a lot!

    I haven’t tried your hack yet, but was wondering if the extra form fields also will be available on the subscriber’s “manage subscription” page?

    @davelassanske I’ve setup you hack as described, seems to work but I’m unable to view the custom fields (in my case “Country” & “City”) in the back-end, is there a way to show the fields in the “MailPress Users” section?

    still no feedback from the plugin author ?? I am really unsure if I should use this plugin or search for another alternative…

    anyone knows another newsletter plugin with the following features:

    – allow double opt-in
    – allow collection of additional user details i.e. cell number, age, sex, preferred method of communication
    – allows me to customize the newsletter which by the way won’t/shouldn’t contain content from the blog buyt rather hand crafted news
    – can handle i.e. 3000 subscribers…

    I think that is all…

    Awesome!

    @davelassanske thanks for the hack to the front end, gave a HUGH head start into making this thing work.

    @priamlodyssey and anyone else wanting the back end hack follow along

    I recommend activating the plugin
    “mailpress_user_custom_fields”
    as this will allow you to edit the custom fields we have entered with out having to do the following code hack. But if you want nice fancy organised rows with custom info then carry on…

    How to show those custom fields in the back end in a nice way
    edit the page
    mailpress\mp-includes\class\MP_User.class.php

    *The following will vary depending on your personal situation*
    Find line 867 switch ($column_name)
    You will need to enter a “case” into the “switch” statement depending on your custom fields.

    My “case” looked like this

    case 'firstname' :
    					$metas = MP_Usermeta::get($mp_user->id);
    
    					if ($metas) {
    						if (!is_array($metas)) $metas = array($metas);
    
    						foreach ($metas as $meta) {
    							if ($meta->meta_key[0] == '_') continue;
    
    							if ($meta->meta_key == 'FirstName')
    								$firstname = $meta->meta_value;
    						}
    					}
    ?>
    		<td  <?php echo $attributes ?>>
    			<abbr title="<?php echo $firstname; ?>"><?php echo $firstname; ?></abbr>
    		</td>
    <?php
    				break;

    You can see the names and values of your meta data by editing the a Mailpress user.

    I know there is not a heap of detail but it should be enough for those who have done the first hack. The trick here was pulling the meta data out.

    HTH
    =-)

    new release: MailPress 4.0.1
    new documentation : https://www.mailpress.org
    a forum : https://groups.google.com/group/mailpress

    @arena: Are you implying that this latest release resolves this custom fields issue? Or are you just randomly posting that info to a non-related thread? If 4.01 sorts this issue out (provides this feature) I’ll be very happy.

    Hi folks,
    I see that the above hack/solution requires the use of Register Plus. I note that RP is considered compatible only to WP v.2.6
    Is anyone using it successfully on WP 2.8.x ?

    i am using WordPress 2.8.6 with Register Plus and it works great.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘[Plugin: MailPress] Custom fields for subscription form’ is closed to new replies.