CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • adding custom field to newsletter subscribe page... help please!
Pages: [1]

Author Topic: adding custom field to newsletter subscribe page... help please!  (Read 11043 times)

rancid

  • Guest
adding custom field to newsletter subscribe page... help please!
November 25, 2010, 08:41:23 am
Hi all,
it's the first time i'm using civicrm. I'm using 3.2.5 version with Drupal 6. I must make public viewer subscribe to a mailing list with custom field.
I've serched in forum al lot, but I don't found a good reply so I didn't solve yet.
This is what I've done:
- adding custom data "User type" (/civicrm/admin/custom/group) for all contact types, with 2 fields to specify user type
- adding a group "myGroup" with "mailing list" and public visibility (this has added the newsletter that public user view from /civicrm/mailing/subscribe?reset=1 or directly /civicrm/mailing/subscribe?reset=1&gid=2)
- adding a Profile "Newsletter user" (type:Contact) linked to "myGroup", but there isn't custom data fields previous added. Anyway I've added some field to test functionality with no results.

Now only field show is email.
I've tried to modify "Subscribe.tpl" adding "{contact.custom_1}" with no results.
I've tried also adding "hook_form_alter" function in template.php theme file... maybe I've wrong location?

I'm thinking to adding hard-code forms in "Subscribe.tpl", but I don't know where modify to add values to db.

CiviCrm seems powerfull, but this problem make me crazy and if I don't solve I should find any other way.
Sorry my english...
Please... any kind of support will be very appreciated, thank you!!!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: adding custom field to newsletter subscribe page... help please!
November 25, 2010, 03:32:49 pm

might want to read:

http://en.flossmanuals.net/CiviCRM/DevelopIntro

that will help you get started. Note that CiviCRM does not use drupal's form api or templating system

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: adding custom field to newsletter subscribe page... help please!
November 25, 2010, 09:20:08 pm
You probably just need to create a new profile with the field(s) you require, set the Adv Setting for the profile to 'add to a Group' and then use that Group for your Mailing List.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

rancid

  • Guest
Re: adding custom field to newsletter subscribe page... help please!
December 01, 2010, 10:10:33 am
Quote from: peterd on November 25, 2010, 09:20:08 pm
You probably just need to create a new profile with the field(s) you require, set the Adv Setting for the profile to 'add to a Group' and then use that Group for your Mailing List.

Thank you for the suggestions. I've tried many times and the two configurations:
- Version 3.3.beta3 don't open Advanced settings (yet)
- Version 3.2.5 don't work like you say (maybe for me)

@Donald Lobo: thank you, I've read a little...

...anyway at the end I've changed my solution: due to my only requirement of newsletter I've uninstalled civicrm and I've installed PHPList.
It requires a little bit work to show like my drupal theme because it isn't integrated like civicrm, but it's more simple to manage.
Thanks and sorry my english
Rancid

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • adding custom field to newsletter subscribe page... help please!

This forum was archived on 2017-11-26.