Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
74 user(s) are online (51 user(s) are browsing Forums)

Members: 0
Guests: 74

more...
Support us!
Recent OS4 Files
OS4Depot.net





OG:Tags for OS4Depot items
Just popping in
Joined:
2013/1/24 1:31
Posts: 4
Hi,
Not sure which user is Björn Hagström, but have you considered using OG tags on each of the file pages within OS4Depot.

This way, each time someone shares a link to a file on OS4depot, social media sites will obtain the correct title/description/image for each upload.

Main reason for this, is that I'm looking into making a Facebook/twitter notifier for new OS4deposits.




   Report Go to top

Re: OG:Tags for OS4Depot items
Supreme Council
Joined:
2006/11/16 19:25
From Sweden
Posts: 3090
Tell me how it works (technically) and I might consider it.

_________________
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
   Report Go to top

Re: OG:Tags for OS4Depot items
Just popping in
Joined:
2013/1/24 1:31
Posts: 4
Very similar to meta tags, eg title / description etc, its just a way to make social platforms read the preferred data rather than guess it.

Here would an example

http://os4depot.net/?function=showfil ... y/benchmark/boingcube.lha

<meta property="og:url" content="http://os4depot.net/?function=showfil ... hmark/boingcube.lha" />
<meta property="og:type" content="article" />
<meta property="og:title" content="BoingCube" />
<meta property="og:description" content="A bouncing rotating boing cube" />
<meta property="og:image" content="http://os4depot.net/filedata/snapshot/9645_1_snap.jpg" />
<meta property="og:image" content="http://os4depot.net/filedata/snapshot/9645_2_snap.jpg" />

The og:url could be a canonical url if theres one avaiable

Depending on how the website is built, these would be simple database fields of the uploaded file, some like the image can be mocked up just by the upload file ID even it the image doesn't exist, so by default it would pull the first image on the page.

The description tag could hold more information like filesize, platform, date added, author etc

Twitter has there own set of similar tags

https://dev.twitter.com/cards/markup



   Report Go to top

Re: OG:Tags for OS4Depot items
Home away from home
Joined:
2006/11/20 16:26
From Norway
Posts: 2627
@theamigaone

fixed database-org.com..

Thanks.

_________________
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
   Report Go to top

Re: OG:Tags for OS4Depot items
Just popping in
Joined:
2013/1/24 1:31
Posts: 4
@LiveForIt

Yep, just like that.

   Report Go to top

Re: OG:Tags for OS4Depot items
Supreme Council
Joined:
2006/11/16 19:25
From Sweden
Posts: 3090
Okey done, for readme pages. Let me know if there are any problems.

Example:

http://os4depot.net/index.php?functio ... me/driving/amigaracer.lha

_________________
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
   Report Go to top

Re: OG:Tags for OS4Depot items
Supreme Council
Joined:
2006/11/16 19:25
From Sweden
Posts: 3090
Found this page:

http://www.pontikis.net/blog/auto_post_on_twitter_with_php

If I get really bored some day I might automate a tweet every time a file is published.

_________________
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project