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) »
  • CiviMail Subscribe Block?
Pages: 1 [2]

Author Topic: CiviMail Subscribe Block?  (Read 13298 times)

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviMail Subscribe Block?
February 24, 2009, 01:36:44 pm
Hmm - have you switched to using a Profile (civicrm/profile/create) for this? I wouldn't expect to see the "View Listings" link after submitting civicrm/mailing/subscribe forms.

Depending on your timing - might be best to upgrade to 2.2 where you'll have better control over mailing/subscribe behavior.
Protect your investment in CiviCRM by  becoming a Member!

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: CiviMail Subscribe Block?
February 24, 2009, 08:33:33 pm
yes I have two groups, one for the newsletter, and one for a volunteer group and I want separate sign up blocks for each as well as the option to sign up on the registration page.

Does the 2.2 version separate the view/edit forms from the view listings permissions?

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: CiviMail Subscribe Block?
February 24, 2009, 08:38:37 pm
I also tried the civicrm_subscribe module but got this error:
Fatal error: Call to undefined function crm_get_groups() in ...html/sites/all/modules/civicrm_subscribe/civicrm_subscribe.module on line 38

theDigger

  • Guest
Re: CiviMail Subscribe Block?
March 16, 2009, 06:30:51 am
Is this working in a Joomla install as well? If so: what is the url to the form?

Nils

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviMail Subscribe Block?
March 16, 2009, 03:21:29 pm
Yes - should work fine in Joomla! The front-end URL would be:

http://<joomla_site>/index.php?option=com_civicrm&task=civicrm/mailing/subscribe&reset=1

.. you can add a gid=X parameter if you want to expose only one specific group (X = the group ID as shown in the Manage Groups listing).
Protect your investment in CiviCRM by  becoming a Member!

winterlemming

  • Guest
Re: CiviMail Subscribe Block?
October 12, 2009, 12:54:35 pm
I'm just moving into using CiviCRM 3.0 and finding many things I wanted CiviCRM to have for a long time :) 

One thing I haven't discovered, is how to allow anonymous users to subscribe to one or more of our mailing lists.  The drupal module CiviCRM Subscribe isn't supported for d6 so I can't use that. The other option I'd read about was to use a custom profile and put this in a block.... but there was no documentation on how to put a profile form into a block.  At the moment, I've created the mailing list groups, and made a new CiviCRM profile that has only an email field.  How can I get a subscribe block going that will allow anyone to join our mailing list(s).

robinhood

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 6
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.56
  • PHP version: 5.3.5
Re: CiviMail Subscribe Block?
October 12, 2009, 01:46:20 pm
In 3.0, this is easy.  Go to the Profile page and find the profile you want to use in the list.  Click on the little arrow next to 'more' at the far right hand side on that line, and you will get a list of options.  One of them will be 'HTML Form Snippet'.  Go there and copy the code into the body of a new drupal block.  Make sure you set the drupal edit page for 'Full HTML'.  I also found that I could edit the HTML to change the size of the input fields, etc.  Works like a charm.


jrthor2

  • Guest
Re: CiviMail Subscribe Block?
November 06, 2009, 06:21:50 pm
Quote from: robinhood on October 12, 2009, 01:46:20 pm
In 3.0, this is easy.  Go to the Profile page and find the profile you want to use in the list.  Click on the little arrow next to 'more' at the far right hand side on that line, and you will get a list of options.  One of them will be 'HTML Form Snippet'.  Go there and copy the code into the body of a new drupal block.  Make sure you set the drupal edit page for 'Full HTML'.  I also found that I could edit the HTML to change the size of the input fields, etc.  Works like a charm.


I've been trying to get this to work on my site for a week now.  I have my profile created, a group created, I have the html form snippet code on my homepage, and on another page (using Joomla 1.5), but when I submit the 2 forms, I just get the homepage displayed, and nothing gets written to the database.  I have found that if I register for an event that I created (which works fine), and then go back and submit my 2 forms that didn't work, they seem to work then.  Could someone help me get this working?  Is there a setting that i'm missing somewhere?

Thanks!!

Andy Laken

  • I’m new here
  • *
  • Posts: 27
  • Karma: 3
Re: CiviMail Subscribe Block?
March 20, 2010, 04:56:39 am
Quote from: robinhood on October 12, 2009, 01:46:20 pm
In 3.0, this is easy.  Go to the Profile page and find the profile you want to use in the list.  Click on the little arrow next to 'more' at the far right hand side on that line, and you will get a list of options.  One of them will be 'HTML Form Snippet'.  Go there and copy the code into the body of a new drupal block.  Make sure you set the drupal edit page for 'Full HTML'.  I also found that I could edit the HTML to change the size of the input fields, etc.  Works like a charm.

This did work for me, but there is an ungodly amount of javascript and CSS includes. I'm just doing a super-basic newsletter signup block with email address and password – what's the minimum I can get away with including from the HTML Form Snippet?
Andy Laken
Engineer | CivicActions, LLC
e: andy.laken@civicactions.com | skype: mcantsin | http://twitter.com/alaken

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviMail Subscribe Block?
March 20, 2010, 10:20:34 am
I think you're ok just grabbing the <form ...> tags and the <input ...> tags. The js and css stuff s/b only needed for autocomplete and state/country select fields which you're not using.

YMMV - so test it out :-)
Also helpful to update your profile so folks know what CMS and Civi version(s) you're working with.
Protect your investment in CiviCRM by  becoming a Member!

Andy Laken

  • I’m new here
  • *
  • Posts: 27
  • Karma: 3
Re: CiviMail Subscribe Block?
March 20, 2010, 02:38:15 pm
Quote from: Dave Greenberg on March 20, 2010, 10:20:34 am
I think you're ok just grabbing the <form ...> tags and the <input ...> tags. The js and css stuff s/b only needed for autocomplete and state/country select fields which you're not using.

YMMV - so test it out :-)
Also helpful to update your profile so folks know what CMS and Civi version(s) you're working with.

Thanks Dave, that's what I ended up doing. BTW did you guys switch from Dojo to jquery for your js library?

Nice to be back using Civi after a few years, it's come a very long way since 1.7! I will update my profile.

Cheers,

– Andy
Andy Laken
Engineer | CivicActions, LLC
e: andy.laken@civicactions.com | skype: mcantsin | http://twitter.com/alaken

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: CiviMail Subscribe Block?
March 22, 2010, 11:26:04 am
Quote
BTW did you guys switch from Dojo to jquery for your js library?

Yup. :)
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail Subscribe Block?

This forum was archived on 2017-11-26.