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 CiviEvent (Moderator: Yashodha Chaku) »
  • How can I change an error message?
Pages: [1]

Author Topic: How can I change an error message?  (Read 687 times)

hallman

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 10
How can I change an error message?
February 23, 2011, 08:32:58 am
I want people to register as Drupal users, so I'm not allowing anonymous registrations -- "register for events" is not checked for anonymous but is for authenticated. If someone goes to the registration form without logging in, they get the message:

You do not have permission to register for this event

I would like to change the message to:

You must register with the site and login before registering for the conference
with a link to /user/register

What file is this message in? I'm OK changing code, but I don't know how to find which file to change.

Or instead, is there a way to create the Drupal username from the online registration process?

The conference is http://nctech4good.org
Judy Hallman

hallman

  • I post occasionally
  • **
  • Posts: 87
  • Karma: 10
Fixed: Re: How can I change an error message?
February 23, 2011, 02:46:20 pm
A friend found it for me:

Changed CRM/Event/Form/Registration.php message
You do not have permission to register for this event
to
You must register with the site and login before registering for the
conference
with a link to /user/register

I works!
Judy Hallman

kmarkley

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 14
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7.24
  • MySQL version: 5.1.56
  • PHP version: 5.3.27
Re: How can I change an error message?
February 23, 2011, 04:48:41 pm
You might also try civicrm/admin/options/wordreplacements&reset=1

I haven't tried it on error messages, but it works great elsewhere.  And it would save you from having to re-patch on every upgrade.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • How can I change an error message?

This forum was archived on 2017-11-26.