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) »
  • Public viewer subscribing to mailing list in a JOOMLA installation?
Pages: [1]

Author Topic: Public viewer subscribing to mailing list in a JOOMLA installation?  (Read 2183 times)

magnusl

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Public viewer subscribing to mailing list in a JOOMLA installation?
February 25, 2009, 11:36:31 pm
Hi!

I am running CiviCRM for a voluntary organization, and would need a way for public users to easily subscribe to our newsletters. I find a lot of descriptions on how to accomplish this on drupal installations, using the http://drupal.demo.civicrm.org/civicrm/mailing/subscribe?reset=1 type of form. However, mine is a Joomla installation.

So far, what I have is a group for contacts called "newsletter" to which I manually add people wanting our newsletters. I have not utilized the member function at all.

I have been digging around in these fora and the documentation but still getting no wiser. Anyone that can give advice or point in the right direction?

Magnus Larsson

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: Public viewer subscribing to mailing list in a JOOMLA installation?
February 26, 2009, 06:30:16 am

the equivalent joomla url would be:

http://jomla.demo.civicrm.org/index.php?option=com_civicrm&task=civicrm/mailing/subscribe&reset=1

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

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: Public viewer subscribing to mailing list in a JOOMLA installation?
February 26, 2009, 02:51:46 pm
Or you can create a profile (that is, a form with fields for collecting info) in administer civiCRM and set it (in advanced settings) to automatically add people to a group on entry ("newsletter" in this case).  Then you can click
"stand-alone form" in the profile listing page and you get code you can paste into a module.

Having done the above, you then need a Joomla module in which you can paste code, which means you'll have to download something from the Joomla extensions directory (google it).  I use "Sorcerer" which is simple and gives me no problem.

This way is more work than linking to the pre-made subscription form, but your users will have one less step, which presumably will mean you'll get a few more results.  You get their e-mail address on the first click.

I've then taken it one step further and made a second profile that contains lots more information: name, address, phone, interests, etc.  I chose the option in the first newsletter sign-up profile to redirect them to another page, which was the page of the second profile.  The number of people who fill out the second page is only a fraction of the just entering an e-mail option, but at least they can.

Oh - one other thing I learned.  If you do set up a newsletter sign-up, you've got to remember to set any groups that people shouldn't sign up for to user and admin only access.  I forgot and for a little while I gave folks an option to sign up for the state legislature list.  You gotta get elected to be on that list!
« Last Edit: February 26, 2009, 02:54:13 pm by conductorchris »
Thanks to those who help create and enhance civiCRM!

magnusl

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: Public viewer subscribing to mailing list in a JOOMLA installation?
February 28, 2009, 06:31:00 am
Hi!

Thanks for advice. And I am moving towards a solution...:)

1st solution: the subscription form that exists. I have two issues with this:

It seems to work well when I simply use the page and form that is already there, as: http://agslo.se/http://www.agslo.se/index.php?option=com_civicrm&task=civicrm/mailing/subscribe&reset=1&gid=5. I then get a confirmation email from civicrm, that I either can respond to or use the subscribe.url to click on. The email response works well - but the web confirmation does not work. How do I configure and solve this?

Secondly, trying to utilize the solution from http://civicrm.org/node/472, I created a small form to include in the left column, with the code below. But the mail sent is not recognized by civimail as a civimail mail. What is wrong here?

Code: [Select]
<form action="http://www.agslo.se/index.php?option=com_civicrm&task=civicrm/mailing/subscribe" method="post">
  <p>
    Email: <input name="email" type="text" id="email" />
    <input type="hidden" name="mark_x_2" value="5" />
    <input name="_qf_Subscribe_next" value="Subscribe" type="submit" />
  </p>
</form>

2nd solution: Creating a profile and a form
This felt quite elegant, BUT this seems to directly add the mailadress to the contact group, without any confirmation email process. Is there a way to include this?


Regards,


Magnus

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: Public viewer subscribing to mailing list in a JOOMLA installation?
February 28, 2009, 07:31:31 am

a couple of questions

1. Can you elaborate on what "but the web confirmation does not work" mean? what does not work, what are the error messages? what do u get when u click on the link

2. What do u mean by "mail sent is not recognized by civimail as a civimail mail"

3. Your 2nd solution should include confirmation email IF you have civimail enabled. Can you double check and ensure u have CiviMail enabled (I think u do)

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

magnusl

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: Public viewer subscribing to mailing list in a JOOMLA installation?
February 28, 2009, 07:58:22 am
Hi!

Sorry, should have been more explicit.

However, now as I try to register again to get a new mail, using the http://www.agslo.se/index.php?option=com_civicrm&task=civicrm/mailing/subscribe&reset=1&gid=5, I get the following error msg:
Code: [Select]
Sorry. A non-recoverable error has occurred.
Could not find valid Key
Return to home page.

The confirmation mail I received earlier sent me to
http://agslo.se/index.php?option=com_civicrm&task=civicrm/mailing/confirm&reset=1&cid=590&sid=1&h=1489b61f29632e9a

With the error msg:
You do not have permission to execute this url.

Concerning mails not being recognized by civimail - seems to have been a user mistake. I mixed mailboxes in trying to test and adjust these functions.

Concerning solution 2: Users are immediately added to the group, the contact listing says "Added by admin". Civimail is enabled, as shown by Global Settings - Enable Components.

Magnus

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: Public viewer subscribing to mailing list in a JOOMLA installation?
March 01, 2009, 08:04:03 am

to fix the "You do not have permission to execute this url."

edit components/com_civicrm/civicrm.php, search for subscribe (line 129 or so)  and also add 'confirm' there. this has been fixed in 2.2

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

magnusl

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: Public viewer subscribing to mailing list in a JOOMLA installation?
March 02, 2009, 12:59:28 am
OK, found that in /components/com_civicrm/civicrm.php, and included 'confirm' after 'subscribe'.

However, I cannot test it as the subscribe just don't work. I keep getting this:

Code: [Select]
Sorry. A non-recoverable error has occurred.

Could not find valid Key

Return to home page.

I have set the groups to Public User Pages and Listings, tried other settings there but no luck. Is there anything else that I can have mixed up?

I found these threads and issues relating to this:

http://issues.civicrm.org/jira/browse/CRM-1894
http://issues.civicrm.org/jira/browse/CRM-1948
http://issues.civicrm.org/jira/browse/CRM-3463

According to this
http://forum.civicrm.org/index.php?topic=5165.0

it could be about session handling, however, that is slightly above my horizon and since this is a live site, I don't wanna experiment wildly... so any advice very welcome.


Magnus
« Last Edit: March 02, 2009, 07:16:24 am by magnusl »

magnusl

  • I’m new here
  • *
  • Posts: 27
  • Karma: 2
Re: Public viewer subscribing to mailing list in a JOOMLA installation?
March 02, 2009, 09:48:35 am
Okej. Solved. It was a question of the site url being set inconsistently, sometimes to www.agslo.se and sometimes to agslo.se. After making sure it is www.agslo.se everywhere in the civicrm settings, and only using this, subscription via standard form works, and web confirmation of this works.

Still. however, my customized module based on the standard subscribe form, does not work. I'll return when it does.

Magnus

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Public viewer subscribing to mailing list in a JOOMLA installation?

This forum was archived on 2017-11-26.