Skip to content

AlfredoRamos/phpbb-ext-seo-metadata

Repository files navigation

About

SEO Metadata extension for phpBB

Build Status Latest Stable Version Code Quality Translation Progress License

Add dynamically generated meta tags and microdata (Open Graph, Twitter Cards and JSON-LD) of your forums and topics to improve SEO of your board and show correct information when you share it on social networks, including (but not limited to) Telegram, WhatsApp, Facebook, Twitter and Vkontakte.

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

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|summary_large_image">
<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": "https://schema.org",
	"@type": "DiscussionForumPosting",
	"url": "...",
	"headline": "...",
	"description": "...",
	"text": "...",
	"image": "...",
	"author": {
		"@type": "Person",
		"name": "..."
	},
	"datePublished": "...",
	"articleSection": "...",
	"publisher": {
		"@type": "Organization",
		"name": "...",
		"url": "...",
		"logo": {
			"@type": "ImageObject",
			"url": "...",
			"width": "...",
			"height": "..."
		}
	}
}
</script>

Features

  • Dynamically generated Open Graph, Twitter Cards meta tags and JSON-LD microdata from your board data and current page
  • Dynamic description
  • 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
  • Generate meta data for specific posts

Requirements

  • PHP 7.1.3 or greater
  • phpBB 3.3 or greater

Support

Donate

If you like or found my work useful and want to show some appreciation, you can consider supporting its development by giving a donation.

Donate with PayPal Donate with Stripe
Donate with PayPal Donate with Stripe

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

Preview

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

(Click to view in full size)

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

  • Go to your Administration Control Panel > Customize > Manage extensions
  • Click on Disable and confirm
  • Delete all the files inside {PHPBB_ROOT}/ext/alfredoramos/seometadata/
  • Download the new version
  • Upload the new files inside {PHPBB_ROOT}/ext/alfredoramos/seometadata/
  • Enable the extension again