[CDB] SEO Metadata

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

[CDB] SEO Metadata

Post by AlfredoRamos »

Extension Name: SEO Metadata
Author: Alfredo Ramos (Abaddon Ormuz)
Extension Description:

Adds meta tags to improve SEO of your board.

Image Image

Extension Version: 1.3.0-beta

Requirements:
  • PHP 5.6 or greater
  • phpBB 3.2 or greater
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
Install instructions: https://www.phpbb.com/extensions/installing/

Screenshots:
Image Image Image

(Click to see in full size)

Extension Download: alfredoramos_seometadata_1.3.0-beta.zip
GitHub Repository: AlfredoRamos/phpbb-ext-seo-metadata
Last edited by AlfredoRamos on Wed Oct 02, 2019 1:18 am, edited 31 times in total.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: [3.2][DEV] SEO Metadata

Post by AlfredoRamos »

Changelog:
  • 1.3.0-beta - 2019-09-29
    • Replace JSON-LD publisher.logo to be ImageObject instead of URL
    • Add image dimensions for JSON-LD publisher.logo
    • Fix small bug in ACP settings for max image dimensions
    • Add publisher logo settings in the ACP
    • Fix description metadata bug for forums (viewforum), introduced in previous version
    • Fix Open Graph article metadata bug, introduced in previous version
    • Improve error messages when image dimensions are not met in the ACP settings page
  • 1.3.0-dev - 2019-09-25
    • Reduce API calls to improve performance, reducing memory usage
    • Raise max default image dimensions up to 1200x1200px
    • Add missing JSON-LD author, datePublished and publisher
    • Add JSON-LD publisher logo setting in ACP
  • 1.2.0 - 2019-09-06
    • Fix bug that made default image height was showing the image MIME type
  • 1.2.0-beta5 - 2019-09-04
    • Fix regression in image handling
  • 1.2.0-beta4 - 2019-09-03
    • Fix filesystem warnings when open_basedir is set (PHPBB3-15643, phpbb/phpbb#5673)
    • Fix Open Graph issue when default image MIME type, width and height were assigned to template when the image URL was empty
  • 1.2.0-beta3 - 2019-08-18
    • Improve security to prevent path traversal attack
    • Improve default image explanation in the ACP
  • 1.2.0-beta2 - 2019-06-30
    • Fix bug in Open Graph localization name
    • Fix bug in Open Graph default image information
  • 1.2.0-beta - 2019-06-28
    • Fix wrong Open Graph localization name
    • Add Open Graph image width, height and MIME type
  • 1.1.0 - 2019-04-08
    • Code cleanup
  • 1.1.0-RC3 - 2019-04-07
    • Fix regression in meta tag macro regarding fb:app_id
  • 1.1.0-RC2 - 2019-04-06
    • Add support for description meta tag
    • Small improvements in template and translations
  • 1.1.0-RC1 - 2019-04-05
    • Fix issues reported by the validation team
    • Add support for attachment images
    • Remove SID from metadata URLs
    • Remove attachments from metadata description (file names)
    • Improve image extraction tool
    • Fix and improve translations
  • 1.0.1-RC2 - 2019-01-28
    • Fix bug in description cleaning tool
  • 1.0.1-RC1 - 2019-01-22
    • Fix bug in image extraction regexp
  • 1.0.0 - 2019-01-02
    • Fix Twitter Cards if Open Graph is disabled
    • Improve extraction of current URL
  • 0.8.0-rc - 2018-11-09
    • Fix bug in image extraction
    • Fix bug in description extraction
    • Add setting to only extract local images
  • 0.7.0-beta - 2018-09-28
    • Add Twitter Cards meta tags and ACP configuration
  • 0.6.0-dev - 2018-08-25
    • Change topic Open Graph type to article and add metadata relative to it
    • Add Facebook settings for Open Graph (Application ID and Publisher)
  • 0.5-1-dev - 2018-08-21
    • Extract images only from [img] BBCode tags
    • Performance improvements in image extraction
  • 0.5.0-dev - 2018-08-16
    • Extract image from post body (experimental)
    • Reduce usage of resources
  • 0.4.1-dev - 2018-08-14
    • Fix double encoding in meta tags
    • Remove image URLs from meta description
  • 0.4.0-dev - 2018-07-21
    • Add Spanish translations
    • Fix generated URL when URL rewriting is enabled
  • 0.3.0-dev - 2018-07-12
    • Minor improvements and fixes in description generation
  • 0.2.0-dev - 2018-07-11
    • Add JSON-LD microdata and ACP configuration
    • Add description generation settings - By Drakath
  • 0.1.0-dev - 2018-07-10
    • Add Open Graph meta tags and ACP configuration
Last edited by AlfredoRamos on Mon Sep 30, 2019 1:26 am, edited 27 times in total.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
Drakath
Registered User
Posts: 125
Joined: Wed Aug 29, 2012 12:17 pm

Re: [3.2][DEV] SEO Metadata

Post by Drakath »

Navigating to a page other than first in any topic causes an error.

Code: Select all

Fatal error: Uncaught Error: Call to undefined method phpbb\db\driver\factory::fetch_field() in C:\xampp\htdocs\forum\ext\alfredoramos\seometadata\event\listener.php:142 Stack trace: #0 [internal function]: alfredoramos\seometadata\event\listener->viewtopic(Object(phpbb\event\data), 'core.viewtopic_...', Object(phpbb\event\dispatcher)) #1 C:\xampp\htdocs\forum\vendor\symfony\event-dispatcher\EventDispatcher.php(184): call_user_func(Array, Object(phpbb\event\data), 'core.viewtopic_...', Object(phpbb\event\dispatcher)) #2 C:\xampp\htdocs\forum\vendor\symfony\event-dispatcher\EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.viewtopic_...', Object(phpbb\event\data)) #3 C:\xampp\htdocs\forum\phpbb\event\dispatcher.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('core.viewtopic_...', Object(phpbb\event\data)) #4 C:\xampp\htdocs\forum\phpbb\event\dispatcher.php(46): phpbb\event\dispatcher->dispatch('core.viewtopic_...', Object(phpbb\event\data)) #5 C:\xampp\ in C:\xampp\htdocs\forum\ext\alfredoramos\seometadata\event\listener.php on line 142
Drakath
Registered User
Posts: 125
Joined: Wed Aug 29, 2012 12:17 pm

Re: [3.2][DEV] SEO Metadata

Post by Drakath »

You might also wanna consider adding some settings on how to handle the description, I opened a PR on GitHub.
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: [3.2][DEV] SEO Metadata

Post by AlfredoRamos »

Drakath wrote: Wed Jul 11, 2018 7:30 am Navigating to a page other than first in any topic causes an error.

Code: Select all

Fatal error: Uncaught Error: Call to undefined method phpbb\db\driver\factory::fetch_field() in C:\xampp\htdocs\forum\ext\alfredoramos\seometadata\event\listener.php:142 Stack trace: #0 [internal function]: alfredoramos\seometadata\event\listener->viewtopic(Object(phpbb\event\data), 'core.viewtopic_...', Object(phpbb\event\dispatcher)) #1 C:\xampp\htdocs\forum\vendor\symfony\event-dispatcher\EventDispatcher.php(184): call_user_func(Array, Object(phpbb\event\data), 'core.viewtopic_...', Object(phpbb\event\dispatcher)) #2 C:\xampp\htdocs\forum\vendor\symfony\event-dispatcher\EventDispatcher.php(46): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'core.viewtopic_...', Object(phpbb\event\data)) #3 C:\xampp\htdocs\forum\phpbb\event\dispatcher.php(62): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('core.viewtopic_...', Object(phpbb\event\data)) #4 C:\xampp\htdocs\forum\phpbb\event\dispatcher.php(46): phpbb\event\dispatcher->dispatch('core.viewtopic_...', Object(phpbb\event\data)) #5 C:\xampp\ in C:\xampp\htdocs\forum\ext\alfredoramos\seometadata\event\listener.php on line 142
Thanks for the report, I've fixed that.
Drakath wrote: Wed Jul 11, 2018 8:41 am You might also wanna consider adding some settings on how to handle the description, I opened a PR on GitHub.
I'll check it.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: [3.2][DEV] SEO Metadata

Post by AlfredoRamos »

New development version available, and added screenshots.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
RomaamoR
Registered User
Posts: 253
Joined: Tue Feb 24, 2015 4:45 pm
Location: Ukraine
Name: Roman
Contact:

Re: [3.2][DEV] SEO Metadata

Post by RomaamoR »

;)
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: [3.2][DEV] SEO Metadata

Post by AlfredoRamos »

RomaamoR wrote: Fri Jul 13, 2018 5:38 am;)
:?:
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
RomaamoR
Registered User
Posts: 253
Joined: Tue Feb 24, 2015 4:45 pm
Location: Ukraine
Name: Roman
Contact:

Re: [3.2][DEV] SEO Metadata

Post by RomaamoR »

I liked the extension.
epiksel
Registered User
Posts: 8
Joined: Thu Jul 12, 2018 12:18 pm

Re: [3.2][DEV] SEO Metadata

Post by epiksel »

AbaddonOrmuz wrote: Fri Jul 13, 2018 12:26 am New development version available, and added screenshots.
Nice extension.

does not change when url link is mod_rewrite active.
Image
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: [3.2][DEV] SEO Metadata

Post by AlfredoRamos »

RomaamoR wrote: Sun Jul 15, 2018 8:22 pm I liked the extension.
Oh, thanks :lol:
epiksel wrote: Fri Jul 20, 2018 1:36 am does not change when url link is mod_rewrite active.
Sorry for the late reply.

It has been fixed in 0.4.0-dev, make a clean install or disable the extension, upload the new files (overwrite), purge the cache and enable the extension again.
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
User avatar
Raul [ThE KuKa]
Style Customisations
Style Customisations
Posts: 11073
Joined: Mon Dec 08, 2003 9:24 pm
Location: Spain
Name: Raul Arroyo
Contact:

Re: [3.2][DEV] SEO Metadata

Post by Raul [ThE KuKa] »

Niiice job Alfredo! ;)
All unsolicited PMs will be ignored.
:warning: Knowledge Base | Documentation | Board rules | phpBB Styles Rules & Policies | Styles Queue Stats :warning:


If you like my styles, translations, etc. and want to show some appreciation, then feel free to Donate.
:flag_es: phpBB Spain - Online Since 2003 :heart:


epiksel
Registered User
Posts: 8
Joined: Thu Jul 12, 2018 12:18 pm

Re: [3.2][DEV] SEO Metadata

Post by epiksel »

AbaddonOrmuz wrote: Sat Jul 21, 2018 3:08 pm Sorry for the late reply.

It has been fixed in 0.4.0-dev, make a clean install or disable the extension, upload the new files (overwrite), purge the cache and enable the extension again.
Thank you for fixed.
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1302
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: [3.2][DEV] SEO Metadata

Post by AlfredoRamos »

Raul [ThE KuKa] wrote: Sat Jul 21, 2018 6:00 pm Niiice job Alfredo! ;)
Thanks Raul :D
Some of my phpBB extensions:
:chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user | Linux Boards :penguin:
igorbond
Registered User
Posts: 138
Joined: Sun Mar 24, 2013 5:54 pm

Re: [3.2][DEV] SEO Metadata

Post by igorbond »

Image
Locked

Return to “Extensions in Development”