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
Re: newsletters
November 05, 2009, 12:54:28 pm
It seems to not work when I have a postUrl as a hidden field.  I have this as the postUrl, so I come back to the same page (homepage).

<input name="postURL" type="hidden" value="index.php?newsletter=1" />

then, I'm checking in my Joomla template for this request variable and storing a value in session, so the form doesn't display, but a message that says the user has been subscribed.

Thanks.

jrthor2

  • Guest
Re: newsletters
November 10, 2009, 04:35:56 pm
Quote from: Donald Lobo on 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

the code that is generated by my CiviCRM does not have javascript cd(function) code at all.  Any reason why??  this is the code my CiviCRM generates:
Code: [Select]
<form  action="http://www.vickiesangelwalk.org/joomla15/index.php?option=com_civicrm&amp;task=civicrm/profile/edit&amp;gid=7&amp;reset=1&amp;" method="post" name="Edit" id="Edit" >



  <div><input name="postURL" type="hidden" value="" />
<input name="cancelURL" type="hidden" value="http://www.vickiesangelwalk.org/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="http://www.vickiesangelwalk.org/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"></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>
My modified code doesn't have all this javascript.  Do I need this?

I'm debating if I should uninstall and re-install to see if that works any better.  Any suggestions?

Thanks
« Last Edit: November 10, 2009, 05:58:10 pm 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.