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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • newsletters
Pages: [1] 2

Author Topic: newsletters  (Read 2796 times)

jrthor2

  • Guest
newsletters
October 27, 2009, 06:10:13 pm
I have a client that wants to use CiviCRM with Joomla.  I installed it and have a question.  My client wants an email entry textbox on the homepage that allows users to sign up to get the latest news and events.  How would I go about doing that with CiviCRM?  I'm completely new to CiviCRM.

Thanks!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: newsletters
October 30, 2009, 04:50:51 am
You should check: http://en.flossmanuals.net/CiviCRM/CapturingExposing

Kurund
Found this reply helpful? Support CiviCRM

jrthor2

  • Guest
Re: newsletters
October 30, 2009, 05:54:41 pm
Ok, that really helped, and I have the form on my page the way I want it, but I have an issue when submitting the form.  The form seems to submit the data fine using FireFox (although I go to the joomla error page because I don't have an smtp server set up on my localhost), but in IE, when I submit the form, it just gives me the same page, and does not submit the data to the database.  Below is the code that I am using.  I took the code the CiviCRM generated and tweaked it a bit.  If someone could help me get this working, that would be great!
Code: [Select]
<div class="newsletterForm">
                    <p>Sign up to receive email updates on the latest news and events.</p>
                        <form  action="index.php?option=com_civicrm&amp;task=civicrm/profile/edit&amp;gid=7&amp;reset=1&amp;" method="post" name="Edit" id="Edit" >
                            <input name="postURL" type="hidden" value="" />
                            <input name="cancelURL" type="hidden" value="index.php?option=com_civicrm&amp;task=civicrm/profile&amp;reset=1&amp;gid=7" />
                            <input name="group[2]" type="hidden" value="1" />
                            <input name="_qf_default" type="hidden" value="Edit:cancel" />
                            <script type="text/javascript" src="../administrator/components/com_civicrm/civicrm/js/Common.js"></script>                           
                            <fieldset>
                            <input maxlength="64" size="30" name="email-Primary" type="text" id="email-Primary" class="left" />
                                <input class="button" accesskey="S" name="_qf_Edit_next" value="Sign Up" type="submit" />                           
                            </fieldset>
                        </form>
                    </div>
Thanks

jrthor2

  • Guest
Re: newsletters
October 31, 2009, 11:57:26 am
actually, it's not working at all in any browser.  I want to submit the form, but stay on the same page.  It is just loading the same page when submitted, but it's not storing anything in CiviCRM.

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: newsletters
October 31, 2009, 02:00:23 pm

did you get the front end profile working within civicrm?

i would ensure that the front end stuff works nicely before switching to a standalone form

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

jrthor2

  • Guest
Re: newsletters
October 31, 2009, 04:35:13 pm
what do you mean by frontend profile?

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: newsletters
October 31, 2009, 05:13:01 pm

the profile exposed to the front end

something like:

http://joomla.demo.civicrm.org/index.php?option=com_civicrm&task=civicrm/profile/create&reset=1&gid=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

jrthor2

  • Guest
Re: newsletters
October 31, 2009, 05:27:36 pm
Yes, I can see my profile, and I can submit the form, and it works.  So what am I missing?  I took the RAW Html that CiviCRM produced for me and put it in my page?  I only changed the layout, I didn't change anything else.

Thanks!!

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: newsletters
October 31, 2009, 05:37:09 pm

no idea, you might want to step thru the code and figure out what is happening and why.

What happens if you take the code exactly as is and use that as the html. make no changes whatsoever. if it still does not work, can you reproduce the same on the joomo.demo.civicrm.org server

thanx

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

jrthor2

  • Guest
Re: newsletters
October 31, 2009, 06:10:22 pm
If I take the code that is given by CiviCRM by going to the Administer -> Customize -> CiviCRM Profiles, click on the "more" link, and choose "HTML Form Snippet", I should be able to take that and put it on any page and the form should work.  If I take that code, put it in my homepage template as is, making no changes, and submit it, it doesn't do anything, just gives me my homepage back.

I've set up a News & Events Newsletter, just like I have on my site on the demo server as suggested.  It works fine there as well, but how can I test the standalone version (using the HTML Form Snippet code) somewhere else?
« Last Edit: October 31, 2009, 06:29:15 pm by jrthor2 »

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: newsletters
November 01, 2009, 08:01:32 am

i tried it with this html snippet:

http://joomla.demo.civicrm.org/administrator/index2.php?option=com_civicrm&task=civicrm/admin/uf/group&action=profile&gid=1

and hosted it locally. worked fine

you might want to compare the html generated there vs what your install generates

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

jrthor2

  • Guest
Re: newsletters
November 01, 2009, 03:21:13 pm
that's not my profile though, that has name, address, etc.  What about my Newsletter that I set up?

jrthor2

  • Guest
Re: newsletters
November 01, 2009, 05:59:11 pm
Ok, I tried this again with a different profile.  My client wants users to be able to Request A Speaker, where a user can fill out a form to request someone form my client to speak and an event.  I created a new profile and contact group, assigned all my form fields that I wanted.  I took the HTML Form Snippet code and placed it in an article on my site.  the form shows up fine when I click on the article, but when submitted, it takes me back to my homepage, and nothing was entered into my Contact group.  Am I missing something with using CiviCRM?

Thanks for the help!!

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: newsletters
November 01, 2009, 07:14:05 pm

your best bet might be to hire someone from http://civicrm.org/professional/ to help sort out this issue

not sure what the problem is, but seems to work fine on our demo servers

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

jrthor2

  • Guest
Re: newsletters
November 05, 2009, 05:53:20 am
Well, I moved my site from my local server to my hosting company, and it seemed to be working.  The form would submit and take me to a page that said thanks for signing up.  All was good.  Then, I made a change to the post url, so that it would go back to the same page and display a message.  Well, the form now is not submitting anymore, and even if i take the code out that I put in, it still does not work.

This is getting frustrating.  Can anyone help?  If you want to see my form, you can go to www.vickiesangelwalk.org/joomla15/

Thanks!!
« Last Edit: November 05, 2009, 06:43:51 am by jrthor2 »

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • newsletters

This forum was archived on 2017-11-26.