Hot answers tagged

6

Contact Image URL is directly stored in civicrm_contact table, so I think if you have the URL which can display an image, you should be directly able to use the contact create API as below - $result = civicrm_api3('Contact', 'create', array( 'contact_type' => "Individual", 'first_name' => "first", 'last_name' => "last", 'image_URL' => "&...


5

There are two issues going on here. First, you have images that you attempt to resize, but they are appearing wrong for many recipients. Second, you can't fix the images. I can't answer the second issue without knowing your particular server environment. I'm especially puzzled how you got your images up there in the first place but are having trouble now....


3

Eventually I found out what the problem is and it is caused by the child theme that I had created. Another problem elsewhere that had an extra blank line at the start of a news feed and Demerit's comment above suggested this as a solution. When I changed to the base theme all was fine. Going back to functions.php for the child theme I found a blank line ...


3

Ok, I've worked it out. And it turns out that there is a location where CKEditor settings can be configured, namely at civicrm/admin/ckeditor?preset=default. (Through the GUI it's at "Administer" -> "System Settings" -> "Display Preferences", then click the "Configure CKEditor" button towards the bottom.) There are a few hitches on the way and perhaps this ...


3

The most common cause of that symptom in recents releases is due to a security enhancement in an updated version of the wysiwyg editor that is bundled with CiviCRM, that disallows symlinks. If that is the issue, you can generally fix it by updating the corresponding path in http://example.org/civicrm/admin/setting/path?reset=1 to its non-symlinked version. ...


3

Apologies. This is a Drupal answer and I know you are on Wordpress, but this ticket might attract drupal users too so thought I would outline the approach. There is a View you can download here which provides the logged in user a block with their Membership status etc, and this could be modified to include other fields including image. Using the Print module,...


3

Yes, there's no custom field type specifically for images. You can of course put an image in a file field type. Interestingly, the image field that is available for organizations is technically there for all contact types, just not enabled for individuals, so I'd guess it wouldn't be hard to turn it on. To display images from CiviCRM in Drupal, I use views ...


2

It sounds like there's a settings mismatch. Check the values of "Image Directory" on Administer menu > System Settings > Directories and "Image Upload URL" on Administer menu > System Settings > Resource URLs. If the two look correct, please update the original question with the values so we can see them.


2

Not exactly a fix, but rather a workaround: https://www.drupal.org/project/imagecache_external module has been used for an additional image pre-processing. Images processed by drupal imagecache module work just fine in IE8.


2

You can add file types in Safe File Extension Options in the admin console. (I don't know if it's advised, but it's certainly possible :) Go to Administer > System Settings > Safe File Extensions, then click 'Add Safe File Extension'. Enter the file extension (without the dot) in the Label field, make sure it's enabled, then save. Edit: However, this doesn'...


2

I have implemented membership cards, however on a custom basis. This has been from the back office side of things. Your specification of a member printing their own card is intriguing, though that too would be a bit of custom code. Regardless of who prints it, CiviCRM has nice abilities to generate PDF's from custom code so pretty much whatever format you ...


2

I believe that thumbnail size is set by CSS (at least it is in the backend), the actual contact image should be whatever size you uploaded the image at originally. Perhaps you can adjust the CSS to display those contact images at your desired size. Based on your page, you could use: .content img { width: auto; height: auto; } To set it to it's ...


2

I forgot to post an answer before, but am prompted to do so as someone has a similar problem. I needed to set directory 755 and files 644 for wp-content/plugins/civicrm/civicrm/packages/kcfinder because the WP distribution didn't set permissions that worked in my hosting environment. But since CiviCRM 5.2.2 this wasn't necessary.


2

Right-click on the "images" folder in the kcfinder browser. You can choose New Subfolder.


2

The Base URL is set in civicrm.settings.php. From your screenshot, it looks like you're running CiviCRM on Drupal; find civicrm.settings.php in <drupal root>/sites/default/civicrm.settings.php.


1

You don't mention CMS but if this is Drupal then I would recommend you upgrade to 7.71 due to Fix for jQuery Form bug in Chromium-based browsers


1

The issue is with the intervention library used, which doesn't support animated GIFs. The intervention bug is 5+ years old. While intervention is open source, the maintainer is mostly inactive, and hasn't released the source code of his new version, which he's been working on for years. I think it might be time to remove intervention from Mosaico. Note ...


1

Did you find an answer to your question? It seems that the platform does not accept the .gif format. Admin support and I figured it out... kinda: It works if you use the "traditional" email. The Mosaico version seems to strip the gifs away. If I view the resulting email through our standard email reader, it moves. If I view it through outlook, it does not....


1

I managed to get this working. I did a clean install of everything, Followed the wordpress civicrm install instructions for clean URLS Enforced SSL using the siteground hosting built in tools Enforced SSL in civicrm Then in the wordpress permalinks settings removed any reference to index.php. Not totally sure whether this combination of things was ...


1

Without more context about what the API call you're making is, I can't say why it just returns a number. Here's what happens when I call the API from my command line to get the results of the attachment with an ID of 1: ยป cv api attachment.get id=1 { "is_error": 0, "version": 3, "count": 1, "id": 1, "values": { "1": { ...


1

The issue seemed to have been caused by an automatically created .htaccess file in the Resource Image folder. This is being automatically generated but I don't know by what. The contents of the automatically generated file was Order allow,deny Deny from all This prevented the image file from being access. As a quick fix I renamed the file and a new ...


1

Probably you will need to give 'CiviCRM: access uploaded files' for anonymous user. But this is dangerous to provide access to files for anonymous user.


1

You should be able to implement a hook via PHP to validate the profile when it is submitted: https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_processProfile/. Someone else may want to chime in. I'm not sure if you can use form hooks with profiles. Otherwise you may check this: https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_validateForm/ ...


1

In the <figure> tag, you could try changing it to <figure class="image" style="display:inline-block vertical-align: top;"> Does that work? Incidentally, there should be a semi-colon after "inline-block" and in the <div> tag after "center". If this doesn't work, could you say what CSS you have in the class="image" Edit1 On reflection, I ...


1

This is almost certainly a characteristic of Outlook rather than a problem with Civi. Outlook won't necessarily display images - certainly if the 'from' email address is a new one to that Outlook - so the user has to check a flag to indicate that they want see images for that email address. Other email systems also behave in a similar way - it's a (sort of)...


1

If your images are being stored in a directory that prohibits direct access, it will give you that symptom. There's a .htaccess file that performs this function for apache, I'm not sure how that works with MS servers. Your best bet is to try loading the image directly (e.g. right click on the broken image and load the image in a new tab) and see what the ...


1

I changed http to https in my theme css and the message disappeared. Now there's still one error. I changed the editor from tiny or CKE to "default drupal editor". And it WORKS !


1

Check the ownership of the folders where these images are uploaded to.


1

You may want to check Firewall or the settings in WPSecurity (plugin) if you have that installed. I ran into this problem and it was an option in WPSecurity for "Bad Query Strings" which blocked access to thumbnails in KCFinder. According to the plugin... Deny Bad Query Strings This feature will write rules in your .htaccess file to prevent ...


1

Is there anything stopping you using Custom Fields to do this? Thats normally how people add extra information they wish to hold about the event. You'd then need to do some work on the display side to use the image.


Only top voted, non community-wiki answers of a minimum length are eligible