6

Your best bet with Drupal is to use the Rules module. I think you also need to have CiviCRM Entity installed to get the proper tokens. Add a new Rules Component: Component Plugin: Action Set Name the component (e.g.: Fetch CiviCRM ID of logged in user) You only need one variable, choose CiviCRM > CiviCRM Contact (may need the CiviCRM Entity module for ...


4

Looking at the demo site, you are inserting JavaScript directly into the thank-you message: <p>Thanks for supporting our organization with your membership. You can learn more about membership benefits from our members only page.</p> <p><br /> <script type="text/javascript"> <!-- window.location = "https://civicrm.org/" //--&...


4

Xavier's answer is generally right but because you are in the context of a form I advise don't use the function CRM_Utils_System::redirect because that is a rather blunt instrument, and breaks pop-ups and other ajax-based forms (which don't follow the normal round-trip webpage lifecycle). Instead from your hook you can call CRM_Core_Session::singleton()->...


4

It could be the SSL. Verify the home url (WordPress General settings) and the CIVICRM_UF_BASEURL in the civicrm.settings.php file. These should match exactly including the https:// If not that can be the issue. If it matches I would look for a plugin or theme conflict next.


4

Allen has a great explanation for how to do this, particularly for anytime anyone logs in. Just for completeness, I wanted to make sure this simple option was documented, too. You may not really want all logins to go to the contact dashboard. It may be really that you want certain links to lead people there, but others logging in (you and other admins, ...


3

The way I did it In my most recent extension with a fair amount of CRUD happening via the UI, I used a different form at a specific URL (civicrm/sms/conversation/confirmdelete) for deleting. This gave the user the chance to see what they were deleting and confirm it. I then set the context in preProcess of that form, deleted the entity in postProcess, and ...


3

You might find this Fuzion extension does what you need. Front End Page options adds the ability to choose an alternate thank you page instead of standard CiviCRM thank you page


3

Have you looked at adding a .tpl.extra file? This can be a very easy way to add more content to any template. Instructions are here. Your .tpl.extra file could contain either the extra content you wish, or one line of javascript to perform the redirect.


3

You can redirect using the CRM_Utils_System::redirect($urlyouwant) and use CRM_Utils_System::url to build the url itself. you can as well display pop up messages using CRM.alert() or CRM.status() That page describes the options or how to call them from php too: http://wiki.civicrm.org/confluence/display/CRMDOC/Notifications+and+Confirmations


2

How about redirecting the user to a page that has the pdf download link? Granted its not automatic...


1

Depending on the exact flow you need you may find this Fuzion extension offers what you need as it provides fields eg on an Event where you can specify the page to redirect to after submission. Note it has a dependency on another Extension


1

Since all the thank you pages have the same url (from Drupal's point of view), using Drupal's redirect module https://www.drupal.org/project/redirect should work.


1

This is not supported by CiviCRM by default and i cant find any drupal modules which can do the redirect from the thank you page. If you are a developer, you can do this using hook_civicrm_buildForm hook. We have done something similar to redirect from thank you page using buildForm hook. I have packaged the hook in an extension. You can download the ...


1

It looks like the same behavior occurs on the official CiviCRM/WP demo site. The browser title for this demo page: http://wpmaster.demo.civicrm.org/civicrm/?page=CiviCRM&q=civicrm/event/info&reset=1&id=3 Does not match the generic title being scraped by FB: https://developers.facebook.com/tools/debug/og/object/ Meanwhile, the CiviCRM/Drupal ...


1

I am not familiar with WPML, but what I normally do with multilingual sites is that I add one profile per language, that way you can also create the field labels as you want. That way you can set the redirect URL as you want. In WordPress you can then use a different shortcode per language to embed the profiles.


1

So when filling the form, you submit it (the data is into the post, so you have the feeling it's truncated as you don't see the params in the log/net tab). Once that data is processed, it needs to display something (the confirmation that everything went well). They are two ways of doing that: - either the result of the post is the confirmation message - or ...


1

I'm pretty sure that token availability is the exception rather than the rule. You shouldn't expect tokens to be replaced in the redirect URL.


Only top voted, non community-wiki answers of a minimum length are eligible