Open Graph - Intro Image

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
User avatar
componentegd
Phoca Member
Phoca Member
Posts: 21
Joined: 31 Mar 2015, 22:39
Location: Rio de janeiro - Brazil
Contact:

Re: Open Graph - Intro Image

Post by componentegd »

Jan wrote:Ok, set it in next version, I will publish it soon.

There is the following rule:
- if there is image set in parameters of the plugin, such will be used
- if not then the image will be searched in intro image parameter of the article
- if not then the image will be searched in fulltext image parameter of the article
- if not found, then the image from article body will be used (if found)

Jan
You're the best, Jan!!!!!
Thanks a lot!
User avatar
componentegd
Phoca Member
Phoca Member
Posts: 21
Joined: 31 Mar 2015, 22:39
Location: Rio de janeiro - Brazil
Contact:

Re: Open Graph - Intro Image

Post by componentegd »

Dammit.. it bugged the website. I don't know why.
I got two prints, one of the bug itself and the source code.
Could you see that, Jan?
Thanks!

Image
Image
User avatar
componentegd
Phoca Member
Phoca Member
Posts: 21
Joined: 31 Mar 2015, 22:39
Location: Rio de janeiro - Brazil
Contact:

Re: Open Graph - Intro Image

Post by componentegd »

I just installed the version 3.0.1 and it works fine.
I don't get it where is the bug.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

Hi, the 3.0.2 includes new feature - to add the intro text into description - but not sure why you get there html source code as the code is displayed without html tags (strip_tags is used) so every html tag parameters are stripped. But maybe there is some not closed tag in the article so it can do problems, I will add this feature to the option parameter, so it will be disabled as default.

Jan
If you find Phoca extensions useful, please support the project
User avatar
componentegd
Phoca Member
Phoca Member
Posts: 21
Joined: 31 Mar 2015, 22:39
Location: Rio de janeiro - Brazil
Contact:

Re: Open Graph - Intro Image

Post by componentegd »

Jan wrote:Hi, the 3.0.2 includes new feature - to add the intro text into description - but not sure why you get there html source code as the code is displayed without html tags (strip_tags is used) so every html tag parameters are stripped. But maybe there is some not closed tag in the article so it can do problems, I will add this feature to the option parameter, so it will be disabled as default.

Jan
I see. Weird that all articles seems to bug this way.

Can you please let me know soon as you get it?

Once again, thanks a lot, Jan! You're the best!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

Hi, see version 3.0.3, as default the introtext as description parameter is disabled, so now it should work without any problems.
https://www.phoca.cz/news/858-phoca-open ... 3-released
Please test and let me know.

Thank you, Jan
If you find Phoca extensions useful, please support the project
User avatar
componentegd
Phoca Member
Phoca Member
Posts: 21
Joined: 31 Mar 2015, 22:39
Location: Rio de janeiro - Brazil
Contact:

Re: Open Graph - Intro Image

Post by componentegd »

Jan wrote:Hi, see version 3.0.3, as default the introtext as description parameter is disabled, so now it should work without any problems.
https://www.phoca.cz/news/858-phoca-open ... 3-released
Please test and let me know.

Thank you, Jan
Awesome! It worked just fine.
You can check it out in here: www.jornaljbp.com.br

Thanks a lot, Jan!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Open Graph - Intro Image

Post by Jan »

Great to hear it. Jan
If you find Phoca extensions useful, please support the project
Post Reply