Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Album in group don't show cover image on block

10 years 11 months ago
  • Pedro's Avatar
    Topic Author
  • Pedro
  • Offline
  • Fresh Boarder
  • Posts: 61
  • Thank you received: 2
Licenses:
JomSocial Expired

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)

Attachments:
10 years 11 months ago
  • Pedro's Avatar
    Topic Author
  • Pedro
  • Offline
  • Fresh Boarder
  • Posts: 61
  • Thank you received: 2
Licenses:
JomSocial Expired

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

10 years 11 months ago
Licenses:

Hi.

I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 11 months ago
Licenses:

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;?>" />

line 194
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);?>" />

Let me know the result.

Regards,
Albert

10 years 11 months ago
  • Pedro's Avatar
    Topic Author
  • Pedro
  • Offline
  • Fresh Boarder
  • Posts: 61
  • Thank you received: 2
Licenses:
JomSocial Expired

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

Attachments:
10 years 11 months ago
  • Pedro's Avatar
    Topic Author
  • Pedro
  • Offline
  • Fresh Boarder
  • Posts: 61
  • Thank you received: 2
Licenses:
JomSocial Expired

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/

10 years 11 months ago
Licenses:

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;?>" />

This changes will not disappear on upgrade process. because override
documentation.jomsocial.com/wiki/Customizing_Template

Regards,
Albert

The following user(s) said Thank You: Pedro
10 years 11 months ago
  • Pedro's Avatar
    Topic Author
  • Pedro
  • Offline
  • Fresh Boarder
  • Posts: 61
  • Thank you received: 2
Licenses:
JomSocial Expired

Thanks, Albert.
It's working fine now.
Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW