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 Profiles (Moderator: Dave Greenberg) »
  • BUG - Profile Notification Email Template Issues
Pages: [1]

Author Topic: BUG - Profile Notification Email Template Issues  (Read 865 times)

Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
BUG - Profile Notification Email Template Issues
October 28, 2010, 08:09:30 am
I'm using a profile to let members upload files related to their members (scanned paperwork documents for license/insurance verification purposes).

So, I'm using a "Custom Field" with a data type "File"...

I've set the Profile to send a notification email when the profile is submitted, but there are several issue with the email that is generated.

I'm using CiviCRM 3.2.4

ISSUE 1 :
The links in the email to the associated Contact record is incorrect for Joomla installs (Probably works with Drupal) because it doesn't use the /administrator/ in the URL.  Also the URL isn't linked.

Current URL:

http://www.my-domain.com/index.php?option=com_civicrm&task=civicrm/contact/view&reset=1&cid=99999

IF Joomla install, we need to go find the defined administrator folder with something like:

http://www.my-domain.com/ . str_replace(JPATH_SITE, '' ,JPATH_ADMINISTRATOR) . index.php?option=com_civicrm&task=civicrm/contact/view&reset=1&cid=99999

ISSUE 2
The Image source URLs are relative, instead of absolute creating broken images.

ISSUE 3
The direct links on the images to uploaded files are trying to use some sort of javascript pop-up to a relative/incorrect file location

-------------------------------------------------------------

Obviously the above issues are due do the email template being based on a local view template with relative links, and also is only compatible with Drupal installs.

I'm going to be digging around trying to figure this out myself, but I'd sure love any assistance in getting these issues fixed so a BUG report can be submitted.






Conga3.com

  • I post occasionally
  • **
  • Posts: 51
  • Karma: 5
  • Should be golfing...
    • Conga3
Re: BUG - Profile Notification Email Template Issues
October 28, 2010, 08:34:31 am
OK,

This issue stems from the Mailings >> Message Templates >> "Profiles - Admin Notification" default template.

In this template there is a token called "contactLink".  This needs to be changed somehow to adjust for Joomla installs...

still looking for where this might be hardcoded...

.... also the image thumbnail + link of the uploaded document is also contained in a token.

Where are these tokens defined?

UPDATE  :  I'm still unable to figure out where these tokens are being built.  Any help would be much appreciated.

UPDATE : I was unable to test this on the demo.  I tried to create a Profile Create menu Item, but there was a PHP error and I couldn't select my test profile.
« Last Edit: October 29, 2010, 07:39:14 am by Conga3.com »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • BUG - Profile Notification Email Template Issues

This forum was archived on 2017-11-26.