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

Make the caption and image show up in Discord
http://www.tinywebgallery.com/forum/web-photo-gallery-support-f1/make-the-caption-and-image-show-up-in-discord-t4710.html
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/