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 (Moderator: Dave Greenberg) »
  • Using SSL with the Social Network function
Pages: [1]

Author Topic: Using SSL with the Social Network function  (Read 1064 times)

christopherleslie

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 1
  • Learning the ropes, one pulled hair at a time :)
    • Midwest Renewable Energy Association
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.25
  • MySQL version: 5.1.52
  • PHP version: 5.2.15
Using SSL with the Social Network function
March 15, 2012, 07:26:18 am
If this is available in documentation elsewhere I apologize, but I felt it should be in the forums as well if anyone's looking.

Anyway, you might be like me, where you have your entire website swimming in the safe waters of SSL. On most browsers this is just fine, no problem whatsoever.

But Internet Explorer, that devious abomination, has issues with loading non-secure content on a website using https. Case in point: the "Help Spread the Word" social networking function that's available at the bottom of your CiviCRM event/contribution pages. As it turns out, the Twitter and Facebook links do not use SSL. If you need this functionality (like I did), here's what you do.

Go find your CiviCRM folder, wherever it may be, and follow this directory structure:

civicrm > templates > CRM > common > SocialNetwork.tpl

First make a copy of SocialNetwork.tpl before you change anything.
Then, open up the SocialNetwork.tpl file in your favorite text editor, and make the following changes:

On Line 48, change "src="http://platform.twitter.com" to "https://platform.twitter.com"
On Line 56, change "<iframe src="http://www.facebook.com" to "<iframe src="https://www.facebook.com"

Save, flush caches, and refresh. Fixed.

You'll have to do this every time you update CiviCRM, unless it's changed for future updates.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Using SSL with the Social Network function
March 15, 2012, 08:02:23 am
Excellent tutorial. Thank you.

Would ideal I suppose of CiviCRM could adjust these links based on the presence of SSL or not, but in the meantime, this should help. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Using SSL with the Social Network function
March 21, 2012, 05:27:47 pm
See CRM-9886 for a patch

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Using SSL with the Social Network function

This forum was archived on 2017-11-26.