Recent Posts

Pages: [1] 2 3 ... 10
I would like to block the associated Drupal user account when a membership expires. I am using Rules and CiviCRM Entity, but can't figure out what data selector to use. I've tried both:


but neither of them seem to hold the user ID for the user.

I have the Event and Condition set up as follows and (as a test) when I enter a Drupal user ID in direct input mode, it blocks out that particular user when any membership expires. What I need is the right data-selector so that the associated user is blocked.

Event: CiviCRM Membership has been updated
Condition: Data Comparison: Parameter: Data to compare: [civicrm-membership:status-id], Data value: 4
Action: Block a User: Data Selector: ?????

I have seen posts with similar questions but haven't been able to find a solution.

Thanks for your help!
Using CiviContribute / Re: Recurring links not working on user dashboard
« Last post by ashok on Today at 02:43:16 am »
Hi Lobo,

Thanks for responding. Upgrade looks like a long process and due to time constraint I can not perform an upgrade.

Here is what I did in order to make it work

I dug down a bit and found that in Contribute.xml file (inside sites/all/modules/civicrm/CRM/Contribute/xml/Menu directory), the access argument for View link had not been specified. So I provided the access argument for the View link

<access_arguments>access Contact Dashboard</access_arguments>

and rebuilt the menu (<your_site>/civicrm/menu/rebuild?reset=1) and it started working. Authenticated users can now view their recurring donations.

This certainly is not an elegant approach, but it fixes my problem for now. I will see with a fresh installation if the problem still persists. If yes, creating a patch should be the next step I guess?
Whatever CMS you are using, the paths for CiviCRM customisations can be found through the UI at Administer > System Settings > Directories.   

It is only for "custom code ... in the form of CMS native modules" that you will need to look elsewhere. (ie for where Drupal modules or WordPress plugins or a Joomla! extensions are stored). 

Also, the documentation is maintained by volunteers (like me).  So WordPress or Joomla! users need to contribute if they feel the documentation is lacking in detail for their CMS.   

Is that the only place you can point to where Drupal and/or Joomla examples are given but Wordpress is left out?
Sure. On the previous example:
Copy any custom code from the original site including the custom templates, custom reports, hooks etc. that you will find in your "Custom PHP Path Directory" and "Custom Templates" path. If some of your custom code is in the form of CMS native modules then this custom code may be outside those CiviCRM folders. For example for Drupal this may often be found in <Drupal base>/sites/all/modules/custom/<yourcustomcmodule>.
So that's the path in Drupal, but it doesn't discuss WordPress or Joomla for that matter. Now obviously, I'm not using Joomla but I would think it would an improvement to include all three examples here instead of, "Here's the Drupal example....the rest of you, go figure it out!"

And improvement would have been:
For example for Drupal this may often be found in <Drupal base>/sites/all/modules/custom/<yourcustomcmodule> and in Joomla go look for /whatever/whatever/<yourcustommodule> and in WordPress, you can locate it in /wp-content/plugins/civicrm/<yourcustommodule>
Now mind you, my knowledge of Joomla could easily fit in a thimble, so I made that path up. And the WP one? Kind of the right idea, but clearly it's not precise.

Simple things like that can really help us WordPress (and Joomla) folk immensely. Not trying to insult anyone, but it really would help and I wouldn't be here right now.

What I want to know is where to even look for the Custom PHP Path Directory and Custom Templates. I don't think the past developer put in any custom templates, but I'm not even sure where to look.

If there are specific wiki pages that only give drupal or joomla examples, you might want to post them here along with the line/paragraph.

Most of the times there is a simple translation between all 3 CMS'es. Please do update the wiki docs once someone has pointed you towards a solution

Using Core CiviCRM Functions / Re: Trying to create a read only user group....
« Last post by Donald Lobo on December 26, 2014, 05:22:53 pm »

Would be great if you can investigate and submit a PR to fix this issue. Should be a relatively easy fix since most of the code is already present. You need to check permissions and if view-only, freeze the QF element and do not process the submitted form

the developer documentation on the wiki should get u started

I don't. That's why I'm relying on the forums.
Using Core CiviCRM Functions / Restrict view of contacts to only a selection....
« Last post by TheEdge on December 26, 2014, 05:03:11 pm »

I have a requirement to provide read only / view access to some contacts in the system. I know it is possible to configure a Joomla group for read only access to contacts but that is for all contacts. Is it possible in any way to restrict what contacts a Joomla user sees and then make those ready only?

Hi Lobo,

I will look. For what it is worth the permissions appear to be working as expected.

Using CiviContribute / Re: Recurring links not working on user dashboard
« Last post by Donald Lobo on December 26, 2014, 04:59:45 pm »

can you upgrade to 4.5.x and see if you have the same issue

Pages: [1] 2 3 ... 10