Newletter Builder Add Name Field
2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: April 14, 2017 (RSS)
By RGC - March 30, 2017
Newsletter Builder Ver 3.04
I have added a new field to the _nlb_subscribers table called "name" in an effort to identify which members are subscribed to my clients website which is also using the Membership Plugin. The newsletter manage subscriptions page will be accessed by members logged into the membership manager. I have modified the manage subscriptions page to automatically display the users email and name which is pulled from the members accounts table. Within the newsletter subscribe form I am using the following 2 hidden form fields:
<input type="hidden" name="e"value="<?php echo htmlencode($membersRecord['email']) ?>" />
<input type="hidden" name="name"value="<?php echo htmlencode($membersRecord['fullname']) ?>" />
When the user strikes the Update Subscriptions button the email and selected newsletters update properly, but the name does not.
What code is required to get the name field to update the _nlb_subscribers table when the user updates their subscriptions? I have tried modifying the code within the newsletterBuilder.php file, but have had no success.
By ross - April 14, 2017
Hi Rod
Thanks for posting.
Having a name field added and updatable is an advanced option and you'll need to do some custom PHP programming.
The idea would be that when the page submits, you need to have some code that manually updates the user's record in your "Subscribers" table with the "name" field you added to the page.
If you like, this would be something I can do for you pretty quickly in consulting. Send me an email to consulting@interactivetools.com if you'd like to discuss that further.
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/