Hot answers tagged

13 votes
Accepted

Add more than 2 profile in Civicrm contribution page

There's no way of doing this through the user interface. An alternative approach would be to use a Drupal webform integrated with CiviCRM. You'll need the Webform module, the webform_civicrm ...
user avatar
  • 616
12 votes
Accepted

Migration issue: Drupal markup isn't rendered on CiviCRM pages

Ah, I think I've seen this before, did you by chance mess with your CiviCRM settings file? Double-check your CIVICRM_UF setting, Civi might be tripping up if it thinks the CMS is something other than ...
user avatar
  • 341
10 votes

Is it possible to use civicrm stand alone profile page to edit existing contacts?

Generally agree with the previous commenters -- you can do an edit screen using "civicrm/profile/edit", and "webform_civicrm" is generally the next level to go if you want the effect of a standalone ...
user avatar
  • 331
10 votes
Accepted

Webform-CiviCRM integration: autocomplete employer

The anonymous user does not have permission to view contacts in your database. Be thankful for this default, it can save you from accidentally exposing your entire database to the world! You can ...
user avatar
  • 1,352
9 votes
Accepted

Is it possible to use civicrm stand alone profile page to edit existing contacts?

no - since standalone html cannot do smart things like populate stuff from db etc not via drupal hook but civicrm also has a hook system similar to drupal. so u can modify stuff via civi hooks. If ...
user avatar
8 votes
Accepted

Force initialization of custom field set in CiviCRM

Can you include 'publish my profile' custom field in your membership page? If option 1 is not possible, the next best bet might be to implement the civicrm postProcess hook on membership form and ...
user avatar
8 votes

Is CiviCRM data vulnerable to the Drupageddon bug?

Since a potential attacker got access to the database, and through the evil php module, could execute code, everything on the same server must be considered compromised.
user avatar
  • 27.4k
8 votes
Accepted

Drupal 7 cron does not run civicrm Scheduled Jobs

You should configure a separate cron entry for CiviCRM on your server. CiviCRM's Managing Scheduled Jobs is the reference documentation here. Best practice is to run your CiviCRM cron separately. ...
user avatar
8 votes
Accepted

How to install a module which includes a different version of Symfony?

So, I think if CiviCRM were installed into Drupal 8 via composer (ie. composer require civicrm/civicrm-core in the Drupal root) and CiviCRM's use of Symfony was compatible with Symfony 2.8 or 3.x (ie. ...
user avatar
7 votes

Is it possible to use civicrm stand alone profile page to edit existing contacts?

1) It's important to clarify what you mean by "standalone profile page". a) If you mean the form presented by CiviCRM at e.g. example.com/civicrm/profile then yes. Construct the url like so: ......
user avatar
  • 1,352
7 votes
Accepted

Is CiviCRM data vulnerable to the Drupageddon bug?

I probably would guess, yes to this one especially if you have added the civicrm db to the drupal settings file and/or share the civicrm tables in the same drupal db. the primary reason for this is, ...
user avatar
6 votes

Add more than 2 profile in Civicrm contribution page

Another approach would be to manipulate the page via JavaScript inserted in the content fields to arrange the fields as required. I admit though it's not very elegant and somewhat hacky.
user avatar
5 votes

Copying a CiviCRM/Drupal install from one server to another (got error)

If you have Drush installed, you can also use the following command to update some of those settings: drush civicrm-update-cfg It will try to update the URL and directory settings, which is pretty ...
user avatar
  • 724
5 votes

CiviCRM Email Record appearing in other members profile Information

CiviCRM has a table civicrm_uf_match, which links CiviCRM contacts to Drupal (or Wordpress or Joomla) users. Here is its structure: CREATE TABLE `civicrm_uf_match` ( `id` int(10) unsigned NOT NULL ...
user avatar
  • 411
5 votes
Accepted

How to add a custom field to personal campaign page - Civicrm

At this time, you cannot currently add custom data to Personal Campaign Pages (see the list at example.org/civicrm/admin/custom/group?action=add&reset=1). If you wanted to do that, your best bet ...
user avatar
5 votes

Why does Drupal webform civicrm returns DB Error: syntax error when trying to add a new organization type contact?

I found a similar question on the webform_civicrm issue queue: https://www.drupal.org/node/2356741 . If this is your question too, then based on the further information you provide there of the MySQL ...
user avatar
  • 411
5 votes

Why does Drupal webform civicrm returns DB Error: syntax error when trying to add a new organization type contact?

Might want to ensure that you are using the latest versions of all the above modules. There have been significant improvements in the newer releases Also can the user create non-organization contacts?...
user avatar
5 votes

Defining the primary address of a CiviCRM contact

Webform-CiviCRM will always set the first address as "primary". You don't need to expose the location-type field if you don't want to - you can set it on the backend form. This has the downside of ...
user avatar
  • 1,352
5 votes
Accepted

How can I define the activity and/or case in a CiviCRM-integrated webform?

Case and activity settings are a bit tangled up with each other in the current (v4.9) version of the module... BUT, I've just committed several changes to 4.x-dev (soon to be released as v4.10) which:...
user avatar
  • 1,352
5 votes
Accepted

Civicrm membership expiration date after renewal

This works in the 4.5.2 sandbox (unknown if it works in 4.4.6) Set your membership type to rolling instead of fixed Disable the "Grace" membership status If you are having a membership period shorter ...
user avatar
5 votes

How to Configure WebForm to Allow Users to Choose Which CiviCRM Campaign to Contribute to?

You can actually do this without Webform-CiviCRM if you like: Set up your campaigns in CiviCampaign Create a new profile to add a field to (or from the Profiles page, click "Fields" beside an ...
user avatar
5 votes

How to install a module which includes a different version of Symfony?

I don't think this is possible. Drupal 8.4 actually already switched to Symfony 3 although there are still similar discussions related to drush, which has the same problem. see Drush 8.x doesn't ...
user avatar
  • 81.5k
5 votes

Hook name in module doesn't seem to work

there is no hook_buildForm() hook in Drupal. The hook you are trying to implement is hook_civicrm_buildForm(), so to get it work you should use mymodule_civicrm_buildForm(). You can always use ...
user avatar
4 votes

How can I define the activity and/or case in a CiviCRM-integrated webform?

We use Drupal Webform-CiviCRM to create cases, but ofcourse not for the steps you are asking about :-) I would reckon passing in the activityID should be enough, have a play and let me know!
user avatar
4 votes

Searchable civiEvents in drupal7

I would use the CiviCRM views integration to create views of the events, and ensure that these are searchable by using the Search by Page module which according to the project page "allows you to ...
user avatar
4 votes

Multiple Relationships in CiviCRM Views Integration

You can do this with a custom module and using the preprocess views hook to pass in the contextual filter. The filters are passed into the $args[] variable. You also may need to enable multiple ...
user avatar
  • 361
4 votes

How can I find all database schema changes introduced in a CiviCRM major version upgrade?

One way to do it would be to pore through the CRM/Upgrade/ directory in the new version, looking for schema changes. However these are distributed across multiple files, depending on which alpha or ...
user avatar
  • 411
4 votes

How can I find all database schema changes introduced in a CiviCRM major version upgrade?

An easier way of doing it from a pure structural perspective is to use a mysql schema diff tool, something like: http://adamspiers.org/computing/mysqldiff/ However that might not give you all the ...
user avatar
4 votes

How can I find all database schema changes introduced in a CiviCRM major version upgrade?

Another option would be to diff the xml schema between versions. The xml schema files are not shipped in the tar.gz releases, only in git, so it's not exactly the most user-friendly method, but it ...
user avatar
  • 724
4 votes

Is CiviCRM data vulnerable to the Drupageddon bug?

To expand on Letharion's answer, any files on the server were vulnerable due to the nature of the exploit. "Arbitrary PHP execution" means server-level access is possible. https://www.drupal.org/SA-...
user avatar

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