Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Make the caption and image show up in Discord
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=4710
Page 1 of 1

Author:  mtcjayne [ 27. May 2018, 06:13 ]
Post subject:  Make the caption and image show up in Discord

Is it possible to get some data into Open Graph meta tags? I'm looking for the following:
  • Code:
    <meta property="og:site_name" content="Browser title prefix goes here" />
  • Code:
    <meta property="og:title" content="Gallery title goes here" />
  • Code:
    <meta property="og:description" content="Image caption goes here" />
but I'm not sure where to start.

Author:  mtcjayne [ 27. May 2018, 07:28 ]
Post subject:  Re: Make the caption and image show up in Discord

To accomplish this I have so far done this to head.inc.php
http://paste.debian.net/plainh/dca15bf3

and this to image.inc.php
http://paste.debian.net/plain/1026755

It seems to accomplish what I was looking for; I can now see the site title prefix, the caption for the image, and the image itself when posting links to the gallery in Discord.

Author:  TinyWebGallery [ 27. May 2018, 12:13 ]
Post subject:  Re: Make the caption and image show up in Discord

:).

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/