Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/01/2017, 16:07
Pajaranny
 
Fecha de Ingreso: septiembre-2012
Mensajes: 149
Antigüedad: 11 años, 7 meses
Puntos: 3
Respuesta: Https (ssl) y Gravatar

Cita:
Iniciado por franciscomarin Ver Mensaje
petit89, ¿cómo hace esa redirección que dices de una URL externa? ¿No es más fácil buscar la llamada a la imagen y cambiarla por https?
La solución era editar el template, hay que editar el siguiente archivo:
/html/com_content/article/default.php del template.

Código PHP:
Ver original
  1. <aside class="itemAsideInfo">
  2.     <?php if ($params->get('show_author') && !empty($this->item->author )) : ?>
  3.         <?php
  4.             $author_obj = JFactory::getUser($this->item->created_by);
  5.             $author_email = $author_obj->email;
  6.             $author_name = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author;
  7.             $gravatar_url = "[B]http[/B]s://www.gravatar.com/avatar/" . md5( strtolower( trim( $author_email ) ) ) . ".jpg?s=86";
  8.         ?>
  9.        
  10.         <img src="<?php echo $gravatar_url; ?>" title="<?php echo $author_name; ?>" alt="<?php echo $author_name; ?>" />
  11.     <?php endif; ?>