Can you modify the newsletter subscription form?

Hi,

I'd like to eliminate one field on the newsletter subscribe form. I only need the email input box. How can I remove the name box? 

Best,

Quote · 1 Sep 2014

 

Hi,

I'd like to eliminate one field on the newsletter subscribe form. I only need the email input box. How can I remove the name box? 

Best,

 
Your not actually building a site with a Alpha version are you?

https://www.deanbassett.com
Quote · 2 Sep 2014

Sorry...the question was supposed to be in 7.1 forum. I tried to delete this message but I couldn't. If you have the answer for version 7.1, please enlighten me!

Thanks,

Quote · 2 Sep 2014

The simplest way is to do this.

Edit inc/classes/BxDolSubscription.php

Look for this at about line 181

                'user_name' => array (
                    'type' => 'text',
                    'name' => 'user_name',
                    'caption' => _t('_sys_txt_sbs_name'),
                    'value' => '',
                    'attrs' => array (
                        'id' => 'sbs_name'
                    )
                ),

Change to this.

                'user_name' => array (
                    'type' => 'hidden',
                    'name' => 'user_name',
                    'caption' => _t('_sys_txt_sbs_name'),
                    'value' => 'Guest',
                    'attrs' => array (
                        'id' => 'sbs_name'
                    )
                ),

https://www.deanbassett.com
Quote · 2 Sep 2014

Thank you Sir/Madam! Works like a charm.

On a side note, I have a separate landing page with its own subscribe form. Is it possible to use Dolphin form to replace it so I don't have to transfer the subscriptions over to Dolphin database manually? If so, what is the correct direction? Please share your opinion if you don't mind.

Best of wishes,

Quote · 2 Sep 2014

Switching to a dolphin form is not going to solve the problem of transferring all the ones that previously signed up using your old system. You would still have to do that manually.

You also can't just switch to a dolphin form if the current form your using is not in dolphin. You can't use dolphin functions inside another system. So the form and it's current scripts would have to be modified to directly connect and insert it's data into the dolphin database.

https://www.deanbassett.com
Quote · 2 Sep 2014

That what I thought. Thank you for replying.

All the best!

Quote · 2 Sep 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.