Author Topic: Free VirtueMart Open Graph Meta Tag Plugin  (Read 9299 times)

Venci Gentchev

  • Jr. Member
  • **
  • Posts: 135
    • Bulgarian Computer Store
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #15 on: July 24, 2017, 11:48:19 am »
Hello Jumbo,

Yes, I know the requirements of Facebook. But I notice that Amazon and Ebay have solved this problem.
My idea is that perhaps this problem can be solved with some dynamic resizing of the image (if it is square).

For example, on my old site I've set up to add a watermark to each photo. This is only achieved by adding two files - php and htcccesses.
In my opinion, it should be possible to set htaccess to determine where the photo request comes from, and if it comes from facebook, resize the photo horizontally. Simply add transparent fields to the left and right of the photo to achieve the required size.
For example, if the photo is 1000x1000 pixels, resize to 1900x1000 pixels without losing content.
What do you think about that?
No pain, no gain, no site!

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 590
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.4
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #16 on: July 25, 2017, 06:47:23 am »
My idea is that perhaps this problem can be solved with some dynamic resizing of the image (if it is square).

For example, on my old site I've set up to add a watermark to each photo. This is only achieved by adding two files - php and htcccesses.
In my opinion, it should be possible to set htaccess to determine where the photo request comes from, and if it comes from facebook, resize the photo horizontally. Simply add transparent fields to the left and right of the photo to achieve the required size.
For example, if the photo is 1000x1000 pixels, resize to 1900x1000 pixels without losing content.
What do you think about that?
Yes, that is possible. But IMHO that does not really come under the scope of a meta tag plugin.

Thanks for the ideas.

Venci Gentchev

  • Jr. Member
  • **
  • Posts: 135
    • Bulgarian Computer Store
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #17 on: July 25, 2017, 18:26:42 pm »
Hello Jumbo,

I succeeded in the task.  :)
htaccess calls a php file which from a 1000x1000 pixel image, recreates a 1900x1000 pixel image, giving transparency to the left and right. Just for facebook or whatever else is needed (for example, for google).
I am very happy about this. :)
No pain, no gain, no site!

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 590
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.4
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #18 on: July 25, 2017, 18:29:33 pm »
That is great.

Venci Gentchev

  • Jr. Member
  • **
  • Posts: 135
    • Bulgarian Computer Store
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #19 on: July 25, 2017, 18:39:55 pm »
If you want, I can send you the files. Perhaps it is good to improve the plugin by including the files in it. Additionally, you can select the output size of the image in the plugin settings. And under what conditions to act.
Of course if you have time for that.
No pain, no gain, no site!

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 590
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.4
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #20 on: July 26, 2017, 18:28:21 pm »
Sure, I would love to take a look at it.

Venci Gentchev

  • Jr. Member
  • **
  • Posts: 135
    • Bulgarian Computer Store
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #21 on: July 27, 2017, 07:06:41 am »
Ok, just a little more I can do it, and I'll write to you a private message.
No pain, no gain, no site!

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 590
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.4
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #22 on: July 27, 2017, 18:26:45 pm »
Okay. Thank you.

Venci Gentchev

  • Jr. Member
  • **
  • Posts: 135
    • Bulgarian Computer Store
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #23 on: August 22, 2017, 18:43:43 pm »
I tried to send you a message, but:
User 'Jumbo!' has blocked your personal message.

:)
If you want, write to me a personal message with your email so I can send you the files.
No pain, no gain, no site!

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 590
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.4
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #24 on: August 22, 2017, 18:52:19 pm »
Sent :)

Venci Gentchev

  • Jr. Member
  • **
  • Posts: 135
    • Bulgarian Computer Store
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #25 on: August 22, 2017, 20:42:25 pm »
Received  :)
You have mail.
No pain, no gain, no site!

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 590
  • Software Developer {PHP, JavaScript, jQuery, ...}
    • www.virtueplanet.com
  • VirtueMart Version: 3.2.4
Re: Free VirtueMart Open Graph Meta Tag Plugin
« Reply #26 on: August 22, 2017, 20:45:42 pm »
Thanks :)