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

EvanDonovan’s picture

Assigned: Aws_law » Unassigned
Category: feature » support

Are 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.

EvanDonovan’s picture

This 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.

EvanDonovan’s picture

Status: Active » Fixed

I'm going to consider this as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.