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.

Activity for uploading/sharing joomla article does display image

11 years 4 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

ISSUE SUMMARY:
If a member shares or creates a joomla article when the activity is published in the jomsocial activity stream the corresponding image from the article does not display.

STEPS TO REPLICATE:
1
2
3
4
5
RESULT
EXPECTED RESULT
BROWSER

11 years 3 months ago
Licenses:

Hi Meagan,

please increase:
memory_limit to 512M
max_execution_time to 3000

at php configuration, you can asking your hosting support about how to do it.

Regards

11 years 3 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

Hello Albertus,

We have adjusted the php settings as you suggested but the images are still not being displayed.

Albertus wrote: Hi Meagan,

please increase:
memory_limit to 512M
max_execution_time to 3000

at php configuration, you can asking your hosting support about how to do it.

Regards

11 years 3 months ago
Licenses:

Hi Meagan,

please edit your first post at this topic. and please make sure FTP access detail is valid.
I need it for debugging purpose.

Regards

11 years 3 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

ftp access has been updated.

Albertus wrote: Hi Meagan,

please edit your first post at this topic. and please make sure FTP access detail is valid.
I need it for debugging purpose.

Regards

11 years 3 months ago
Licenses:

Hi Meagan,

I made the changes at:
/components/com_community/libraries/crawlers/curl.php line 464
I changing this code

$imageContent = @file_get_contents($imageUrl);

if ($imageContent) {
    $im = imagecreatefromstring($imageContent);
    $width = imagesx($im);
    $height = imagesy($im);
    if (($width >= $this->get('max_image_width', 128) && $height >= $this->get('max_image_height', 128)) && $counter <= $limit) {
        $_images[] = $imageUrl;
        $counter ++;
    }
}
to
//$imageContent = @file_get_contents($imageUrl);
$imageContent = true;
if ($imageContent) {
    //$im = imagecreatefromstring($imageContent);
    //$width = imagesx($im);
    //$height = imagesy($im);
    //if (($width >= $this->get('max_image_width', 128) && $height >= $this->get('max_image_height', 128)) && $counter <= $limit) {
        $_images[] = $imageUrl;
        $counter ++;
    //}
}

FYI: the fetched image depend with HTML structure. not too perfect.

Regards

11 years 3 months ago
  • Meagan's Avatar
    Topic Author
  • Meagan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 8
Licenses:
JomSocial Active

Hello Albertus,

This doesn't seem to work. Any article that we add to the activity stream is using the "PinIt" button as its image. It doesn't matter whether we have an intro image selected or not.

11 years 3 months ago
Licenses:

Hi Meagan,

its hard for me to make that code improvement from jomsocial 3.2.1.6 like jomsocial 4.0.9
here the issue with jomsocial 3.2.1.6:



and here with jomsocial 4.0.9:


as you can see there are more code improvement at jomsocial latest version. I cant do anything with this issue at jomsocial 3.2.1.6

Regards

Attachments:
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