Closed (fixed)
Project:
CiviCRM Subscribe
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2009 at 06:40 UTC
Updated:
9 Oct 2010 at 19:10 UTC
Hi!
It's a very useful module.
And it may be very useful to generate subscribe form code to put on other sites.
It will greatly increase its functionality.
I tried to do it myself but failed)
How to do it?
Comments
Comment #1
EvanDonovan commentedAre you trying to add the subscribe form to another Drupal site, or a non-Drupal site? Note that if you put it on a site that is non-Drupal, and is at a separate domain, this could cause cross-site request forgery.
If you are not concerned about this, though, you can simply copy the form HTML and make sure that the form is set to post to the absolute path of the subscribe page. Or, if you are embedding on a Drupal site, you can find out the form ID and call drupal_get_form() to render the HTML.
Please mark this issue fixed if it answers your question.
Comment #2
EvanDonovan commentedThis module is intended to add subscribe forms to Drupal sites, not to other external sites. A CiviCRM profile that has an action set to add a user to a group can be added to any arbitrary site, if you get the HTML for it.
See the CiviCRM FLOSS Manual section called Capturing & Exposing Data for more information: http://en.flossmanuals.net/CiviCRM/CapturingExposing. More specifically, see the sub-section called Linking to Your Form.
Comment #3
EvanDonovan commentedI'm going to consider this as fixed.