image "extract from content"

More
8 years 9 months ago #56037 by Solinfo
Hi

Sorry for late reply...

Yes, i'm insert an image with joombu (joomGallery plugin and joomplu)....
Yes I would like to extract then... Because, image is well display with all feature of joom galleyr in FlexiContent. But when it is display with in category layout image is not extract. That been said, i'm not sur the feature is available on joomla content or in K2...

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #56044 by ggppdk
Replied by ggppdk on topic image "extract from content"
Hello

Currently we are extracting image from TEXT that content plugins have not been applied

Try/test this change, and we will include it future version:

component/classes/flexicontent.helper.php
(about line 1280-1290, function extractimagesrc)

replace:
Code:
preg_match ($regex, $row->fields['text']->display, $matches);
with:
Code:
if (isset($row->fields['text']->display)) preg_match ($regex, $row->fields['text']->display, $matches); if (empty($matches)) preg_match ($regex, $row->introtext, $matches);


In description field make sure that
- that both item view and category view content plugin triggering is ON
- NONE plugins are selected (=ALL, because you need all for description)


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #56399 by Solinfo
Hi

Sorry for late reply and test....

First thank you to add patch in release 3.0.3.

But after test it doesn't work.

line 1295 : $image = /index.php/portofolio/image?view=image&format=raw&id=1&type=img (it's ok to view image)
after line 1298 : $image = empty

Comment out line 1298-1301 ( if (!preg_match("#^http|^https|^ftp#i", $image)) )
I got get error in phpThumb() like

So phpThumb() function doesnt like other stuff than an image...

1) In the if, i think we have to add "index.php" to bypass empty image test
2) Find a workaround to bypass phpThumb in case of JoomPlu and replace by already generate thumbs in joomgallery...

Not sure about what i do fo that...

Thank you
Attachments:

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #56400 by micker
Replied by micker on topic image "extract from content"

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #56414 by Solinfo
Hi

As expected mesage is now : "Forbidden parameter: format" !

As i previously said, the parameter is NOT a inmage format but a link generate by Joom Gallery...

Please Log in or Create an account to join the conversation.

More
8 years 8 months ago #56438 by ggppdk
Replied by ggppdk on topic image "extract from content"
Hello

for FLEXIcontent 'blog' template, to avoid phpThumb thumbnailing when using extract from content

1. duplicate as 'myblog' template

2. edit files
category_items.php
category_items_html.php

and change lines
Code:
$RESIZE_FLAG = !$this->params->get('lead_image') || !$this->params->get('lead_image_size'); $RESIZE_FLAG = !$this->params->get('intro_image') || !$this->params->get('intro_image_size');

to be:
Code:
$RESIZE_FLAG = 0;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.335 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline