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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • [FIXED] Custom Contact Sub Type Icons not Showing in Search Results
Pages: [1]

Author Topic: [FIXED] Custom Contact Sub Type Icons not Showing in Search Results  (Read 3840 times)

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
[FIXED] Custom Contact Sub Type Icons not Showing in Search Results
March 04, 2013, 08:32:24 am
I'm testing Beta 1 with a copy of my production system. 

I use contact sub-types for my production system.  I use custom icons (16 x 16 png images) for the the sub-types.  These Icons are displayed correctly when I view a single contact.  However in search results the custom icons for household and individual sub-types aren't displayed.  Instead I see an icon that looks like the standard individual icon with a "file folder" overlaying it.  I never seen this icon before so I assume it is something new in 4.3.

Custom icons for organization sub-types are displayed correctly in the search results.

New sub-types added on my test system or the sand box don't exhibit this behavior.  Only sub-types from the preconversion database act like this.  Changing the sub-type image URL doesn't change the icon displayed in the search results.

I don't recall seeing this in Alpha 1.  I may have missed it.
« Last Edit: March 10, 2013, 08:20:09 pm by Coleman Watts »

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: Custom Contact Sub Type Icons not Showing in Search Results
March 04, 2013, 08:47:40 am

can u take a look at the image urls for those icons and see how they differ for existing sub-types vs new sub-types

that might give a clue

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

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: Custom Contact Sub Type Icons not Showing in Search Results
March 04, 2013, 09:44:17 am
I looked at the SQL table "contact_type" and the URLs all look good.  I copied the URL from a pre-conversion sub-type and used it for a newly created sub-type.  It worked fine for the new sub-type.  The URLs point to my production server image library.

I previously entered new URLs for into a  pre-conversion sub-type.  It changes the icon displayed on the single contact edit page but not for the search results.  If I change the subtype of a contact to a pre-conversion sub-type it has the icon problem.

I uploaded a screen capture showing the icons.  I marked them Good and Bad.  The bad icon must be from CiviCRM.  I've never seen it before.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Custom Contact Sub Type Icons not Showing in Search Results
March 04, 2013, 07:54:22 pm
Can you delete the contents of your templates_c directory and try again?
Try asking your question on the new CiviCRM help site.

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: Custom Contact Sub Type Icons not Showing in Search Results
March 04, 2013, 08:07:18 pm
I deleted the directory contents and it didn't solve the problem.

I deleted the sub-type image URL and I still get the strange Icon.  Does any body know what the person with the file folder ican is?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Custom Contact Sub Type Icons not Showing in Search Results
March 04, 2013, 08:25:24 pm
It's not new, it is the CiviCase icon.
Can you right click on it and "inspect element" and show us the markup?
Try asking your question on the new CiviCRM help site.

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: Custom Contact Sub Type Icons not Showing in Search Results
March 05, 2013, 06:17:29 am
There definitely is a problem.  Here HTML for that element:

<div class="icon crm-icon -icon"></div>

I added a new sub-type with the same image URL and here what I get for it:

<div class="icon crm-icon Parent-icon" style="background: url('http://phoenixacademyomaha.org/wp-content/uploads/2012/11/Alumnus-Individual.png')" title="Parent"></div>

Where should I look next?

Thanks for the debugging tip.  I didn't think about using Chrome or Firefox/Firebug "inspect element" to debug CiviCRM.

We don't use CiviCase so I never seen that icon.  It's a good fit for CiviCase.

aglozier

  • I post frequently
  • ***
  • Posts: 135
  • Karma: 9
    • Phoenix Academy
  • CiviCRM version: 4.7.9
  • CMS version: WordPress 4.6.1
  • MySQL version: 5.7.14
  • PHP version: 5.6.21
Re: Custom Contact Sub Type Icons not Showing in Search Results
March 07, 2013, 02:35:51 pm
I just upgraded to Beta 2 and I still got this problem.  I realized that I had previously renamed the sub-types affected.  Changing back to the original sub-type name 'fixed' the problem.  Changing the the name of a unaffected sub-type causes the problem.

I was able to reproduce this on the sand box server.  I'll file a bug report.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • [FIXED] Custom Contact Sub Type Icons not Showing in Search Results

This forum was archived on 2017-11-26.