Re: Metadata request

Shad Laws <shad-xpYdmXCiSuZWk0Htik3J/[email protected]> Sun, 23 Jun 2013 18:54:08 +0200
Newsgroups gmane.comp.web.gallery.devel
Message-ID <CA+z51A5BBO5Rw-gF6q3KZ8jHuoA+ExaYZ+VXhCLxb12_k_qckA@mail.gmail.com>
--===============2528865917313497307==
Content-Type: multipart/alternative; boundary=20cf3074d5c437087104dfd526a4

--20cf3074d5c437087104dfd526a4
Content-Type: text/plain; charset=UTF-8

One thought: if we go down this road, we probably should take a peek at the
other OpenGraph metadata, too:
http://ogp.me/

Take care,
Shad

On 23 June 2013 18:43, Bharat Mediratta <[email protected]> wrote:

>
> I got this request in a private message, what do you guys think?
>
> May I please suggest future releases have the following meta data included
> in Gallery by default. Right now each individual theme has a page.html.php
> file where the metadata is contained. Unfortunately the data consists of
> only<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
> With the rise in use of FaceBook as a base to share pictures and videos
> this meta data is deficient in tags that allow users to post links to their
> videos and have a thumb and description show up with the normal text link.
> By inserting
>
>
> <meta property="og:image" content="<?= $theme->item->thumb_url(true)?>"/ >
>   <meta property="og:title" content="<?=  $theme->item()->title ?>" />
>   <meta property="og:description"content="<?= $theme->item()->description ?> " />
>   <meta property="og:url" content="<?= $theme->item->abs_url() ?>" />
>
> into the file Gallery is 100% compatible with the FaceBook debugger. This
> allows not only the text and description link but it inserts the thumbnail
> as well.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> __[ g a l l e r y - d e v e l ]_________________________
>
> [ list info/archive --> http://gallery.sf.net/lists.php ]
> [ gallery info/FAQ/download --> http://gallery.sf.net ]
>

--20cf3074d5c437087104dfd526a4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

One thought: if we go down this road, we probably should take a peek at the=
 other OpenGraph metadata, too:<div><a href=3D"http://ogp.me/">http://ogp.m=
e/</a></div><div><br></div><div>Take care,</div><div>Shad</div><div><br><di=
v class=3D"gmail_quote">

On 23 June 2013 18:43, Bharat Mediratta <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]</a>&gt;</span=
> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex">

<div dir=3D"ltr"><br><div>I got this request in a private message, what do =
you guys think?</div><div><br></div><div><p style=3D"padding:0px;margin:0px=
 0px 0.8em;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:14p=
x;line-height:17px">



May I please suggest future releases have the following meta data included =
in Gallery by default. Right now each individual theme has a page.html.php =
file where the metadata is contained. Unfortunately the data consists of on=
ly<code style=3D"font-family:&#39;andale mono&#39;,&#39;Courier New&#39;,Mo=
naco,monospace;font-size:0.95em;background-color:rgb(204,204,204);border:1p=
x solid rgb(119,119,119);padding:0px 2px;white-space:pre-wrap;overflow:auto=
">&lt;meta http-equiv=3D&quot;content-type&quot; content=3D&quot;text/html;=
 charset=3DUTF-8&quot; /&gt;</code><br>



With the rise in use of FaceBook as a base to share pictures and videos thi=
s meta data is deficient in tags that allow users to post links to their vi=
deos and have a thumb and description show up with the normal text link.<br=
>



By inserting</p><pre style=3D"background-color:rgb(204,204,204);padding:4px=
;border:1px solid rgb(119,119,119);width:650px;overflow:auto;font-size:1.25=
em;margin:10px 40px;font-family:&#39;andale mono&#39;,&#39;Courier New&#39;=
,Monaco,monospace;color:rgb(51,51,51)">

&lt;meta property=3D&quot;og:image&quot; content=3D&quot;&lt;?=3D $theme-&g=
t;item-&gt;thumb_url(true)?&gt;&quot;/ &gt;   =20
  &lt;meta property=3D&quot;og:title&quot; content=3D&quot;&lt;?=3D  $theme=
-&gt;item()-&gt;title ?&gt;&quot; /&gt;
  &lt;meta property=3D&quot;og:description&quot;content=3D&quot;&lt;?=3D $t=
heme-&gt;item()-&gt;description ?&gt; &quot; /&gt;
  &lt;meta property=3D&quot;og:url&quot; content=3D&quot;&lt;?=3D $theme-&g=
t;item-&gt;abs_url() ?&gt;&quot; /&gt;</pre><p style=3D"padding:0px;margin:=
0px 0px 0.8em;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:=
14px;line-height:17px">



into the file Gallery is 100% compatible with the FaceBook debugger. This a=
llows not only the text and description link but it inserts the thumbnail a=
s well.</p></div></div>
<br>-----------------------------------------------------------------------=
-------<br>
This SF.net email is sponsored by Windows:<br>
<br>
Build for Windows Store.<br>
<br>
<a href=3D"http://p.sf.net/sfu/windows-dev2dev" target=3D"_blank">http://p.=
sf.net/sfu/windows-dev2dev</a><br>__[ g a l l e r y - d e v e l ]__________=
_______________<br>
<br>
[ list info/archive --&gt; <a href=3D"http://gallery.sf.net/lists.php" targ=
et=3D"_blank">http://gallery.sf.net/lists.php</a> ]<br>
[ gallery info/FAQ/download --&gt; <a href=3D"http://gallery.sf.net" target=
=3D"_blank">http://gallery.sf.net</a> ]<br></blockquote></div><br></div>

--20cf3074d5c437087104dfd526a4--


--===============2528865917313497307==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
--===============2528865917313497307==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

__[ g a l l e r y - d e v e l ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]
--===============2528865917313497307==--