This is impossible, since all phpBB pages are rendered dynamically. You can only edit the template files to have your JSON-LD in there, which is then parsed and populated by phpBB when rendering a page.
Can you back up that claim? And why I succeed in getting search query matches to boards that don't use that, yet I still find what I was searching for? Hint: it's also about how you search and thru which search provider.
I experienced the opposite in the past - can you tell why this will change?
Do you have examples? There are countless boards out there not having real content, only chatting, or worse: copypasta. Also there are administrators who are not aware of the access permissions to the forums of the board, resulting in crawlers/guests to never see the content. And keep in mind that Google is by far not the only crawler.
Wait: "good" content was only an experiment for you? Do you care linking to websites/boards that you struggle with getting indexed, so others can give you feedback?
Why not ending the sentence right there? You're able to properly describe anything with a post already.
As the article indicates: this only fits topics of a forum of a board which are a question - and even then I feel answers should also be accepted from guests, which again is rarely seen in the wild.
Code: Select all
"id": "how to insert here post url",
"headline": "how to insert here thread Subject ?",
Code: Select all
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"id": "https://www.example-forum.org/link_to_post",
"headline": "Post subject....",
"image": "https://www.example-forum.org/attached_images",
"author": {
"@type": "Person",
"name": "Some_user"
},
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "InteractionCounter",
"userInteractionCount": 29
}
}
</script>
No, but as I already wrote:
So have a look at i.e. /styles/*/template/viewtopic_body.html which uses i.e.
{TOPIC_TITLE}
. However, since JSON is different from HTML the proper encoding has to apply, of course.Code: Select all
$template->assign_vars(array(
...
'TOPIC_TITLE' => $topic_data['topic_title'],