SEO Metadata

feature request: specific post-based metadata (direct links) - SEO Metadata

feature request: specific post-based metadata (direct links)

by dingus33 » Tue Oct 08, 2019 10:32 pm

i was thinking that it would be cool to have an option for metadata derived from specific posts when a specific post is linked to.

so, for a url like this: https://www.example.com/viewtopic.php?t=20
the metadata is derived from the first post of topic 20. perfect.

however, for a url like this: https://www.example.com/viewtopic.php?t=20&p=101
this is a link referring to a specific post in that topic (post id 101).
it would be nice to have an option to enable deriving metadata from post 101 instead of the first post of topic 20.
which metadata?
use the overall topic title for title (same as the current behavior), but maybe derive the descriptions and image from the post in question (101 in this example).
and if there's no image in post 101, the fallback sequence would be: post 101 > first post of topic 20 > default overall site image

not a very important feature, but if you're looking for things to add, i think it would be cool.

PS: sorry if i'm creating too many topics. lmk if you want me to propose future feature requests in your 'beta' topic or something instead.
edit: yea, i should've posted this in your beta topic. sorry for cluttering.
User avatar
dingus33
Registered User
Posts: 125
Joined: Fri Sep 29, 2017 11:11 am
Contact:

Re: feature request: specific post-based metadata (direct li

by AbaddonOrmuz » Wed Oct 09, 2019 4:59 am

Mmm... :thinking:

I just did a quick test and that feature would be relatively easy to add, however it would need to be enabled in the ACP.
dingus33 wrote: and if there's no picture in post 101, the fallback sequence would be: post 101 > first post of topic 20 > default overall site picture
With the current implementation, if the specific post doesn't have a picture, it would fallback to the default one from the ACP, however I could check if an image is already cached from the fist post of the topic.

I've created a GitHub issue as a reminder, you can see the progress at:

https://github.com/AlfredoRamos/phpbb-e ... /issues/38
Some of my phpBB extensions: [ Imgur | SEO Metadata | Markdown ]
Check out all my extensions
Arch Linux user
User avatar
AbaddonOrmuz
Registered User
Posts: 712
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo Ramos
Contact: