CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Check if user owes dues, display message on access denied page?
Pages: [1]

Author Topic: Check if user owes dues, display message on access denied page?  (Read 554 times)

mjohnson290

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: Unsure
  • PHP version: Unsure
Check if user owes dues, display message on access denied page?
October 19, 2013, 01:36:30 pm
The title says it all.

I'm hoping to find a somewhat simple variable to check if the user has let their dues go unpaid. Currently, it blocks access to a members-only page, but I'd like to display the reason they are unable to visit the page and provide a link to the page to pay their dues. I'm assuming I can just insert some php to evaluate a variable and display the corresponding message.

Does anyone happen to know the best way to go about this?

Thanks in advance!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Check if user owes dues, display message on access denied page?
October 20, 2013, 08:31:17 am

i'm assuming you are using  drupal member role sync module to grant access to members only page

if so, u can use the permissioning function (user_access) to check if the user did not have permissions.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

mjohnson290

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: Unsure
  • PHP version: Unsure
Re: Check if user owes dues, display message on access denied page?
October 21, 2013, 12:53:26 pm
Hmmm thanks, I'll try this out!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Check if user owes dues, display message on access denied page?

This forum was archived on 2017-11-26.