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) »
  • really need help
Pages: [1] 2

Author Topic: really need help  (Read 5237 times)

jrthor2

  • Guest
really need help
November 05, 2009, 05:07:45 pm
I am having issues with creating profiles and having the form save my data.  I have created 2 profiles and 2 groups (1 for each profile).  One is a Newsletter signup, that just has 1 field, email address.  The other is a form for people to request a speaker at an event of theirs.  I have both forms on my pages the way I want, but when I submit either of them, I am taken to the homepage, and nothing is stored.  On the request a speaker page, all fields are marked as required, but if I just submit the form with nothing entered, it takes me back to my homepage.  Below are the links for each of these forms.  Could someone please help me get this working?  I am using Joomla, and I would be willing to give someone a userid/password if the need be  to help me with this.

Newsletter signup: http://www.vickiesangelwalk.org/joomla15/
Request a speaker: http://www.vickiesangelwalk.org/joomla15/index.php?option=com_content&view=article&catid=31&id=49&Itemid=16

Thank you very much!!!

Well, I just tested my site in IE6, and submitting both of these forms actually works.  The Newsletter signup redirects me back to the same page, and has my url parameter on it.  this is the only browser that seems to work.  I have been testing on FireFox 3.55 and IE 8, and neither of those browsers work.

Please, can anyone help me?
« Last Edit: November 06, 2009, 04:07:19 pm by jrthor2 »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: really need help
November 06, 2009, 05:06:41 pm
It looks like you've set up the front-end menu links for these profiles by selecting CiviCRM > Profile Edit as the Menu Type (in Joomla Menu Manager). You SHOULD use "CiviCRM > Profile Create" - since this is for anonymous (not logged in) users. If you also want logged in front-end users to update their contact info in a profile, THEN use CiviCRM > Profile Edit to create that menu item AND restrict "Access Level" to Registered for that menu item.
Protect your investment in CiviCRM by  becoming a Member!

jrthor2

  • Guest
Re: really need help
November 06, 2009, 05:12:07 pm
I don't have either of these forms assingned in my Joomla Menu Manager.  The request a speaker is part of an article and the newsletter signup is the html that you get from using the HTML form code snippet provided by CiviCRM.  I have just noticed something though.  If I go to my Events page, and register for the Test Event, the registration works, and I can now use the newsletter signp and request a speaker forms with no problems???

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: really need help
November 06, 2009, 05:25:41 pm
You need to use these procedures to have functional front-end profile forms:
http://wiki.civicrm.org/confluence/display/CRMDOC/Configuring+Front-end+Profile+Listings+and+Forms+in+Joomla%21+Sites
Protect your investment in CiviCRM by  becoming a Member!

jrthor2

  • Guest
Re: really need help
November 06, 2009, 05:32:28 pm
I've read that before, but that is not how my site is set up.  I have the Newsletter form as part of my homepage design, not a seperate page that you click a link to get to.  Also, the request a speaker is part of an article, as i want this item to be a part of a category in Joomla, so I had to create an article and use the HTML Form Snippet code in my article.  What is the purpose of the HTML Form Snippet if I can't use it anywhere on my site?  The instructions for the HTML Form Snippet say "The HTML code below will display a form consisting of the active fields in this Profile. You can copy this HTML code and paste it into any block or page on ANY website where you want to collect contact information".  so, I should be able to take the code this generates and put it anywhere to display my profile form, right?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: really need help
November 06, 2009, 07:36:50 pm
Try changing the <form> action in the snippet to this:
Code: [Select]
<form action="index.php?option=com_civicrm&amp;task=civicrm/profile/create&amp;gid=8&amp;reset=1&amp;" method="post" name="Create" id="Create">

It looks like not too many folks have used the HTML snippet in Joomla front-end :-(
Protect your investment in CiviCRM by  becoming a Member!

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: really need help
November 07, 2009, 02:37:02 am
If the form is in an article / custom module Joomla submission strips certain attributes and sometimes these need whitelisting in the config. So id attribute in form might be stripped if not explicitly allowed. You can enable blakc/whitelist in article manage config.

hth
alanski

jrthor2

  • Guest
Re: really need help
November 07, 2009, 03:32:39 pm
I tried changing the form action as Dave suggested, that did not help.  I changed my article listings to be whitelisted, and that didn't help anything.  Do I need to recreate the article after checking the whitelist setting?

jrthor2

  • Guest
Re: really need help
November 14, 2009, 05:19:25 pm
Can anyone Please help me with this?  I have put the form code in my custom template.  Would Joomla still strip things?  Has anyone used the stadalone html code with Joomla?

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: really need help
November 14, 2009, 05:46:06 pm

you might want to consider hiring someone from http://civicrm.org/professional/ to help you out

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: really need help
November 14, 2009, 05:55:20 pm
There is no one here that can help??  I'm willing to give access to my admin area temporarily for help.

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: really need help
November 15, 2009, 12:45:04 pm
Hi,
If your willing to trust access I am happy to take a look - though it looks like we have a 5 hr time differential :)

Best to agree a time and send me an email alan - at - joomkit - dot - com

alanski

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: really need help
November 16, 2009, 02:23:24 am
I think I have solved your issue. Profile no 8 for speaker - when accessed direct it throws an error which suggest that the profile is actually an editing profile rather than a create.

I noticed the profiles settings have no profile or search box ticked - so civi doesn't know what this profile should be used for. As soon as I checked profile in the profile settings, the form starts to behave more sensibly.

However there is something counterintuitive and possibly a bug.

HTML snippet creates urls like:

index.php?option=com_civicrm&task=civicrm/profile/edit&gid=7&reset=1&

However since checking the profile box under settings the page now renders the followng url

speaker = index.php?option=com_civicrm&task=civicrm/profile/create&gid=8&reset=1&

which works fine.

The HTML snippet for your email sign up produces the same edit profile link but unlike the speaker sign up it produces a form action url as an edit rather than create profile link.

eg.email= index.php?option=com_civicrm&task=civicrm/profile/edit&gid=7&reset=1&

If you change this to
index.php?option=com_civicrm&task=civicrm/profile/create&gid=7&reset=1&
I am sure it will work as planned.

I havent checked if any of your profiles are published in menus but I cant explain the difference in the rendering of form action urls

Bug masquerading as feature?

alanski

jrthor2

  • Guest
Re: really need help
November 16, 2009, 04:33:15 am
Ok, I really appreciate you trying to help me with these issues.  I have changed the email signup form action url to index.php?option=com_civicrm&amp;task=civicrm/profile/create&amp;gid=7&amp;reset=1&amp; and when I submit my form, the same thing happens, I get my homepage, but nothing saved in the database, and the postUrl I have is not where I go, so changing the url to have "create" didn't work either.

For the request a speaker, I have my form action url already set to index.php?option=com_civicrm&task=civicrm/profile/create&gid=8&reset=1&, and the form does not submit anything, just like the newsletter profile.  You can see my request a speaker form on this page: http://www.vickiesangelwalk.org/joomla15/index.php?option=com_content&view=article&catid=31&id=49&Itemid=16

thanks

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: really need help
November 16, 2009, 01:55:35 pm
Mmmm
Really puzzling - havent checked IE browser but in FF mac i signed up three times from here:http://www.vickiesangelwalk.org/joomla15/index.php?option=com_content&view=article&catid=31&id=49&Itemid=16

A civiurl in joomla for email signup works: http://www.vickiesangelwalk.org/joomla15/index.php?option=com_civicrm&amp;task=civicrm/profile/edit&amp;gid=7&amp;reset=1&amp has definitely signed me up the email list.

Trying the source code as a standalone file also works too - though it has some empty javascript tags.
(I notice there are no cancellation urls setup n CiviCRM - might be useful to set these up)

You might want to add this to your module/template on home page sign up and test It should work.

If your issue is INternet Explorer not processing forms then I suspect some javascript issue - will have a quick look tomorrow for IE errors 

Code: [Select]
  <!-- .tpl file invoked: CRM/Profile/Form/Edit.tpl. Call via form.tpl if we have a form in the page. -->
            <form  action="http://www.vickiesangelwalk.org/joomla15/index.php?option=com_civicrm&amp;task=civicrm/profile/edit&amp;" method="post" name="Edit" id="Edit" >



  <div><input name="postURL" type="hidden" value="" />
<input name="cancelURL" type="hidden" value="/joomla15/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" />
</div>


<script type="text/javascript" src="/joomla15/administrator/components/com_civicrm/civicrm/js/Common.js"></script>
<div id="crm-container" lang="en" xml:lang="en">

       
    <div id="profilewrap7"><fieldset><legend>News & Events Newsletters</legend><table class="form-layout-compressed"><tr id="editrow-email-Primary"><td class="label"><label for="email-Primary">  Email
   <span class="marker" title="This field is required.">*</span>
</label></td><td class="edit-value"><input maxlength="64" size="30" name="email-Primary" type="text" id="email-Primary" class="form-text big required" /></td></tr><tr id="helprow-email-Primary"><td>&nbsp;</td><td class="description">Sign up to receive email updates on the latest news and events.</td></tr></table></fieldset></div><div class="crm-submit-buttons"><input class="form-submit default" accesskey="S" name="_qf_Edit_next" value="Save" type="submit" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input class="form-submit default" name="_qf_Edit_cancel" value="Cancel" type="submit" /></div>

</div>

<script type="text/javascript">
  </script>
 


<script type="text/javascript">
   
cj(document).ready(function(){
cj('#selector tr:even').addClass('odd-row ');
cj('#selector tr:odd ').addClass('even-row');
});


</script>


</form>
   

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

This forum was archived on 2017-11-26.