[Alpha] Dynamic H2 Header

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!
Anti-Spam Guide
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)
Post Reply
User avatar
Volksdevil
Registered User
Posts: 2413
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

[Alpha] Dynamic H2 Header

Post by Volksdevil » Tue Jan 19, 2016 11:13 pm

Please let me know if you install it, and it works as it should. :) And any coding advice appreciated if you look over the code.

Extension Name:
Dynamic H2 Header.

Extension Description:
Turns the <p> element in your header into a <H2>, which dynamically shows the page title as a description. The h2 will also have a canonical link applied on relevant pages (viewforum/viewtopic).
On the index page it will show your site description as filled out in the ACP.

Features:
  • Adds proper canonical link on 'viewforum' and 'viewtopic' pages.
Demo URL:
http://www.testphpbb.co.uk
User: Test
Pass: testing

Extension Download:
http://www.testphpbb.co.uk

Install instructions:
Download and extract the zip folder.
Upload the 'volksdevil' folder to your boards 'ext' folder so that you have:
YOUR_BOARD_ROOT/ext/volksdevil/h2dynamicheader
Navigate to the 'customise' tab and enable the 'Dynamic H2 Header' extension.

Screenshots:
Index page. Your site description is retained. But is now a <H2>
Image

Viewing forum. Site description is replaced with forum name in a <H2>, and has a canonical link applied.
Image

Viewing ftopic. Same as above.
Image

Author:
Volksdevil

Extension Version:
1.0.0

Requirements:
Only developed with prosilver in mind. Can work for others.
My phpBB Extensions
Finally found great Website Hosting from Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
My Volkswagen Corrado G60 | Opel Manta Owners Forum

User avatar
KhurramMunawar
Registered User
Posts: 534
Joined: Tue Mar 25, 2014 2:20 am
Location: Islamabad, Pakistan
Name: Khurram Munawar
Contact:

Re: [Alpha] Dynamic H2 Header

Post by KhurramMunawar » Wed Jan 20, 2016 1:40 am

Extension is working perfect but who gonna notice that little change in header.

I mean to say that it should be a visible and noticeable change.
My forum:
DearHelper.org

User avatar
Lumpy Burgertushie
Registered User
Posts: 63196
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: [Alpha] Dynamic H2 Header

Post by Lumpy Burgertushie » Wed Jan 20, 2016 4:53 am

I would assume that the whole point of this change is for SEO. I have to say, it is the first SEO type thing I have seen done for phpbb that actually will help with SEO.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.
Premium phpBB 3.2 Styles by PlanetStyles.net

New phpbb 3.0 support site

User avatar
cece74
Registered User
Posts: 498
Joined: Mon Jan 12, 2015 8:55 pm

Re: [Alpha] Dynamic H2 Header

Post by cece74 » Wed Jan 20, 2016 9:31 am

I 'm a SEO. This does not help.

TWEagle
Registered User
Posts: 270
Joined: Sat Dec 10, 2005 2:50 pm
Contact:

Re: [Alpha] Dynamic H2 Header

Post by TWEagle » Wed Jan 20, 2016 12:48 pm

IS it also possible to change this to the H1??

this as H1 in place of the name of the board??
Image

User avatar
Volksdevil
Registered User
Posts: 2413
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [Alpha] Dynamic H2 Header

Post by Volksdevil » Wed Jan 20, 2016 2:16 pm

Lumpy Burgertushie wrote:I would assume that the whole point of this change is for SEO. I have to say, it is the first SEO type thing I have seen done for phpbb that actually will help with SEO.
robert
Yep :) In an ideal World, the site name should become a h2 on forum/topic pages, and the description (Dynamic Page title in this case) should become the h1, though this is all subjective. I just go off what Matt Cutts says then you can't go far wrong.

I've hard coded it that way on one of my sites, but either way, google does notice the change. (Tested both methods).

I've done a hell of a lot of reading up on page titles, 'H' tags and descriptions from an SEO standpoint. Where google once often reverted to using menu items or choosing it's own page title in SERPS for my site, there has been a definite change where it now shows many more relevant words/page titles, picked from either the page title or an 'H' tag.

The possible main benefit of this, is that the newly created H2 becomes a proper internal canonical link, when viewing a topic for example, it does not contain the f= parameter. 8-)

The only slight issue as it stands is that this is created on the fly with jQuery, where I'd like to be able to use EVENTS to properly replace/insert HTML. But I'm still learning yet, this and my other few extensions are my very first so I'm just seeing how they go, then maybe I can request EVENTS be added.
My phpBB Extensions
Finally found great Website Hosting from Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
My Volkswagen Corrado G60 | Opel Manta Owners Forum

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: david63, SalazarAG and 22 guests

cron