1. Hari Karam Singh
  2. Bugs
  3. Thursday, 16 December 2010
  4.  Subscribe via email
getUserGravatar() in JOSC_post.php will only check built in templates for nophoto.png. The slight tweak below will allow PNG and JPG nophoto's in any template folder...

~line 442...
$gravatar_email = $this->_item['email'];
$uripng = new JURI("$this->_template_path/$this->_template_name/images/nophoto.png");
$urijpg = new JURI("$this->_template_path/$this->_template_name/images/nophoto.jpg");
$checkpathpng = JPATH_BASE.str_replace( '/', DS, $uripng->getPath());
$checkpathjpg = JPATH_BASE.str_replace( '/', DS, $urijpg->getPath());
if ( file_exists($checkpathpng) ) {
$default = "$this->_template_path/$this->_template_name/images/nophoto.png";
} elseif ( file_exists( $checkpathjpg ) ){
$default = "$this->_template_path/$this->_template_name/images/nophoto.jpg";
} else {
$default = JURI::base().'components/com_comment/assets/images/nophoto.jpg';
}


Hope this helps...
Responses (2)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now

Last questions

Dowload all Hotspots entries
Hi there, I'm looking for a way to dowload all the Hotspots entries. I've got t...
0 Replies
Posted on Sunday, 06 April 2025
  • #kml
  • #download
Set number of hotspots / user groups
Hi, I'm working with Hotspots for my new website and I love it! After trying ...
0 Replies
Posted on Monday, 31 March 2025
J5 compatibility for Hotspots
Hi guys, Just started to update my old J3x website. Is there J5 compatibility p...
1 Replies
Posted on Monday, 24 February 2025
  • #Hotspots
  • #hotspots Joomla 5
Text size in the comment input form
Hello. How can I increase the font size in the comment input field? For examp...
0 Replies
Posted on Wednesday, 26 February 2025
  • #CComment 6
Problem with enlarged image
Hello. When you click on the image in the comments, it does not appear in the ce...
1 Replies
Posted on Wednesday, 26 February 2025