Hi,
I have created an album in a group and upload an image. The image show as a cover for the album on the image section. but on the album block inside the group the image cover of the album don't show. See image in attach. The one that show is an old one before upgrade.
This also happen when I feature an album inside image section. (see the other attach)
After investigating this, I see that the image that don't show on groups is being search in:
www.mywebsite.com/images/groupphotos/2/2...153398148a897f43.jpg
but my website is under the folder "beta", so it should be searching in;
www.mywebsite.com/beta/images/groupphoto...153398148a897f43.jpg
Hi.
I assign developer to this thread.
Hi Vi,
your site using cloud flare / CDN ? because I made some changes. but no any impact on your site.
please try this:
edit file photos.album.featured.php at:
var/www/cespiritual/data/www/comunidade-espiritual.pt/beta/components/com_community/templates/default
var/www/cespiritual/data/www/comunidade-espiritual.pt/beta/components/com_community/templates/jf_social_js_32
Line 100:
from
<img src="<?php echo $album->getCoverThumbURI();?>" alt="<?php echo $this->escape($album->name); ?>" data="album_prop_<?php echo rand(0,200).'_'.$album->id;?>" />
to
<img src="<?php echo JURI::base().$album->getCoverThumbURI();?>" alt="<?php echo $this->escape($album->name); ?>" data="album_prop_<?php echo rand(0,200).'_'.$album->id;?>" />
from
<img src="<?php echo $album->getCoverThumbURI(); ?>" alt="<?php echo $this->escape($album->name);?>" />
to
<img src="<?php echo JURI::base().$album->getCoverThumbURI(); ?>" alt="<?php echo $this->escape($album->name);?>" />
Hi,
I'm not using CDN.
You already have made those changes, didn't you? The result is that now the new albuns created shows the images, but not the old one. This is not major problem, because this is a beta, and so the important thing is that all new albuns all work ok.
But there is still the problem with the block that shows the last albuns inside the groups, that don't show the image. See attach.
It's searching for the image in
www.mywebsite.com/images/groupphotos
when it should be searching in:
www.mywebsite.com/beta/images/groupphotos
Thanks
The image that don't show on the featured album in the galery from an old album is try to get this url:
mywebsite.pt/beta/http://www.mywebsite.p...82bbf467506e98e0.jpg
and the ones that shows have two slashs on the url after beta:
mywebsite.pt/beta//images/
Hi Vi,
please check it again I made the changes by using override:
[Your beta site path]/templates/yoo_frequency/html/com_community/
There is two files:
groups.viewgroup.php
photos.album.featured.php
every $album->getCoverThumbURI() function I add this code
<?php
if (substr($album->getCoverThumbURI(), 0, 4) === 'http') $src = $album->getCoverThumbURI();
else $src = preg_replace('/\/$/', '', JURI::base()).$album->getCoverThumbURI();
?>
<img src="<?php echo $src;?>" />