New answers tagged

0

When you edit a role its the first item under "Other Capabilities"


2

Thanks a lot guys. You got me on the right way and I looked for a wordpress solution instead of a civi one. I just added the following bits of code to my function.php file (in the child theme) to get disconnected and immediately redirected to a specific page (otherwise I was getting a civicrm error telling me I had no access to the page it was redirecting me ...


2

You're running into the effects of this code which automatically logs the user in. Unfortunately there's no way to override this code at the moment - except to override the class file itself by putting an edited copy in your custom PHP folder like this and remove those lines. A couple of alternative approaches are to: Use BuddyPress to create the signup ...


2

CiviCRM relies on CMS(i.e WP) settings when creating users. By default WP doesn't provide any such settings so you may need to install some plugin which needs admin approval for newly created user. Probably something like User Approve plugin.


5

You can keep the URLs you're currently using - as long as you're using a recent version of CiviCRM - simply by adding this to your wp-config.php file: define( 'CIVICRM_CLEANURL', 1 ); This will create URLs in the same format as Drupal ones, i.e. https://domain.com/civicrm/event/info?reset=1&id=3 This does assume that you are using the default base ...


3

Using nginx it's possible to catch these links and redirect: In the relevant server block add a location match on /civicrm/event/info then redirect this to https://$server_name/?page=CiviCRM&q=civicrm%2Fevent%2Finfo&reset=1&$args So it will look like this: location /civicrm/event/info { return 301 https://$server_name/?page=CiviCRM&q=...


2

If you run your report and copy all the info after wp-admin/admin.php and paste that after your page URL it will drop the report in. The data you from the report url begins with a "?" and looks similar to this. ?page=CiviCRM&q=civicrm%2Freport%2Finstance%2F50&reset=1&force=1 So you URL to show the report on the WordPress page will look like ...


0

This is based on what user17092013 wrote above. add_action('admin_head', 'my_custom_fonts'); function my_custom_fonts() { echo ' .select2-drop-active { z-index: 99999999 !important; } '; }


0

OK, the answers here finally sunk in. The key is Aidan's answer in my mind, to simply use the same PHP version in your cron job as in your CiviCRM setup. Thanks, @Aidan, this is the 2nd (unrelated) problem you solved for me today! In our case, we run CiviCRM 5.10.3 under PHP 7.2.11 with CMS WordPress 5.2.1. After updating our Sparkpost API Key at Sparkpost ...


1

disabling the ONLY_FULL_GROUP_BY SQL mode (which it is by default in MySQL 5.7) with this command mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); solve the problem about the paging, but it must be considered a workaround.


2

An elegant solution really depends on having a reliable way to detect that someone is an existing member. However, assuming you have such a method (e.g. members are logged in or can be detected via unsupervised dedupe rules), I would recommend using CiviDiscount to apply an automatic discount based on membership status.


1

Philippe, Welcome to CiviCRM SE. It looks like your server is using older version of php. Can you please check here if your server is using any one of the ones that are incompatible? If so you will need to upgrade your php. Cheers Pradeep


3

You can use a combination of CiviCRM WordPress Profile Sync (which provides 2-way sync between WordPress profiles and CiviCRM contact details) and CiviCRM WordPress Member Sync to achieve this. Have a look at the docs for CiviCRM WordPress Member Sync to see how you can use the Groups or Members plugin to restrict access to WordPress content for your ...


1

This has been answered in comments above


1

You need to create a page in Wordpress that has a CiviCRM Profile embedded in it, like: https://culturalenterprises.org.uk/register-as-a-user/ Update the advanced settings on the profile so that CMS account creation is mandatory, and that it is set to update the details of any matching contact it finds. For this to work your CiviCRM profile must include the ...


1

If by "When a new member registers herself" you mean filling in a CiviMember (ie Contribution) Form - then you should be able to set 'create CMS user' on the Profile that is exposed on the form.


0

The issue has been solved with help I got on the civiCRM repo. (https://lab.civicrm.org/dev/wordpress/issues/25). First I found two files in my site that are loaded on every page that contain a BOM. find . -type f -printf "%p " -a -exec od -x -N 4 \{\} \; | grep "bbef 3cbf" Secondly I removed those BOMs with vim. Edit the files (which in my case where ...


0

As discussed in https://lab.civicrm.org/dev/wordpress/issues/25 and using a different grep since the grep linked to in the comments above doesn't seem to work, there were two theme files with a BOM. This grep find . -type f -printf "%p " -a -exec od -x -N 4 \{\} \; | grep "bbef 3cbf" located wp-content/themes/ari/functions.php wp-content/themes/ari/...


Top 50 recent answers are included