SEO Metadata extension for phpBB

  • 2 min read

SEO Metadata extension for phpBB

Build Status Latest Stable Version Code Quality License

Add Open Graph, Twitter Cards and JSON-LD data in posts.

If available, it will dynamically generate and include the following data inside the <head> tag:

Features

  • Dynamically generated Open Graph, Twitter Cards meta tags and JSON-LD microdata from your board data and current page
  • Set default image for Open Graph and JSON-LD
  • Set how description will be generated
  • ACP settings to enable/disable Open Graph, Twitter Cards and JSON-LD
  • Support for attachments, for topic image

Meta description

<meta name="description" content="...">

Open Graph

<meta property="fb:app_id" content="...">
<meta property="og:locale" content="...">
<meta property="og:site_name" content="...">
<meta property="og:url" content="...">
<meta property="og:type" content="article">
<meta property="og:title" content="...">
<meta property="og:description" content="...">
<meta property="og:image" content="...">
<meta property="og:image:type" content="...">
<meta property="og:image:width" content="...">
<meta property="og:image:height" content="...">
<meta property="article:published_time" content="...">
<meta property="article:section" content="...">
<meta property="article:publisher" content="...">

Twitter Cards

<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="...">
<meta name="twitter:title" content="...">
<meta name="twitter:description" content="...">
<meta name="twitter:image" content="..">

JSON-LD

<script type="application/ld+json">
{
	"@context": "http://schema.org",
	"@type": "DiscussionForumPosting",
	"@id": "...",
	"headline": "...",
	"description": "...",
	"image": "...",
	"author": {
		"@type": "Person",
		"name": "..."
	},
	"datePublished": "..."
	"publisher": {
		"@type": "Organization",
		"name": "...",
		"url": "...",
		"logo": "..."
	}
}
</script>

Preview

Global settings Open Graph, Twitter Cards and JSON-LD settings Generated markup

(Click to view in full size)

Requirements

  • PHP 5.6 or greater
  • phpBB 3.2 or greater

Support

Installation

  • Download the latest release
  • Decompress the *.zip or *.tar.gz file
  • Copy the files and directories inside {PHPBB_ROOT}/ext/alfredoramos/seometadata/
  • Go to your Administration Control Panel > Customize > Manage extensions
  • Click on Enable and confirm

Configuration

  • Go to your Administration Control Panel > Extensions > SEO Metadata settings
  • Change settings as needed
  • Click on Submit

Uninstallation

  • Go to your Administration Control Panel > Customize > Manage extensions
  • Click on Disable and confirm
  • Go back to Manage extensions > SEO Metadata > Delete data and confirm

Upgrade

  • Uninstall the extension
  • Delete all the files inside {PHPBB_ROOT}/ext/alfredoramos/seometadata/
  • Download the new version
  • Install the extension