- Posts: 2
- Thank you received: 0
Signup Module pre-populates after registered Joomla users logins.
13 Jun 2011 08:34 #1386
by osagatech
joomlamailer version: 1.7
Joomla! version: 1.5.23
PHP version: 5.2.14
MySQL version: 5.0.91
After a registered Joomla user logs in, the field for the mailchimp newsletter signup pre-populates with that users info. I do not want this to happen. Please see the screen-caps at this link: design1.firefly-designgroup.com/images/s...tter_signup_mod2.jpg
Can i prevent this from happening?
Joomla! version: 1.5.23
PHP version: 5.2.14
MySQL version: 5.0.91
After a registered Joomla user logs in, the field for the mailchimp newsletter signup pre-populates with that users info. I do not want this to happen. Please see the screen-caps at this link: design1.firefly-designgroup.com/images/s...tter_signup_mod2.jpg
Can i prevent this from happening?
Please Log in or Create an account to join the conversation.
13 Jun 2011 15:33 #1400
by pete
Replied by pete on topic Signup Module pre-populates after registered Joomla users logins.
Hi osagatech,
You need to edit the file /modules/mod_mailchimpsignup/tmpl/default.php Remove the if statement in line 243 to 255 :
Please be aware that you have to repeat that after each joomlamailer update!
Kind regards,
Pete
You need to edit the file /modules/mod_mailchimpsignup/tmpl/default.php Remove the if statement in line 243 to 255 :
Code:
if(!$user->guest && $field[0] == 'EMAIL'){
$field[2] = $user->email;
} else if(!$user->guest && $field[0] == 'FNAME'){
$fname = explode(' ',$user->name);
$field[2] = $fname[0];
} else if(!$user->guest && $field[0] == 'LNAME'){
$field[2] = '';
$lname = explode(' ',$user->name);
for($i=1;$i<count($lname);$i++){
$field[2] .= $lname[$i].' ';
}
$field[2] = JText::_(trim($field[2]));
}
Please be aware that you have to repeat that after each joomlamailer update!
Kind regards,
Pete
Please Log in or Create an account to join the conversation.
13 Jun 2011 19:12 #1405
by osagatech
Replied by osagatech on topic Signup Module pre-populates after registered Joomla users logins.
Thanks Pete, worked like a charm!
Cheers,
Cheers,
Please Log in or Create an account to join the conversation.
joomlamailer uses cookies!
This website uses cookies to provide user authentication and improve your user experience. Please indicate whether you consent to our site placing these cookies on your device. We are not using cookies for marketing purposes. For more information visit our privacy policy
I agree
Copyright 2010 freakedout.de - All Rights Reserved
Joomlamailer.com is not affiliated with or endorsed by The Joomla! Project™, Open Source Matters, Inc. or Intuit Mailchimp.
Any products and services provided through this site are not supported or warrantied by The Joomla! Project, Open Source Matters, Inc. or Intuit Mailchimp.
Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Mailchimp® is a registered trademark of The Rocket Science Group.
Joomlamailer.com is not affiliated with or endorsed by The Joomla! Project™, Open Source Matters, Inc. or Intuit Mailchimp.
Any products and services provided through this site are not supported or warrantied by The Joomla! Project, Open Source Matters, Inc. or Intuit Mailchimp.
Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Mailchimp® is a registered trademark of The Rocket Science Group.