[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: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

[Alpha] Dynamic H2 Header

Post by Volksdevil »

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 :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
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 »

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.
Get Free Traffic To Your Website
Trafficonic.com - Free Traffic To Your Website
User avatar
Lumpy Burgertushie
Registered User
Posts: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: [Alpha] Dynamic H2 Header

Post by Lumpy Burgertushie »

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
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
cece74
Registered User
Posts: 498
Joined: Mon Jan 12, 2015 8:55 pm

Re: [Alpha] Dynamic H2 Header

Post by cece74 »

I 'm a SEO. This does not help.
TWEagle
Registered User
Posts: 304
Joined: Sat Dec 10, 2005 2:50 pm
Contact:

Re: [Alpha] Dynamic H2 Header

Post by TWEagle »

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: 2415
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [Alpha] Dynamic H2 Header

Post by Volksdevil »

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 :arrow: KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Twitch | My Volkswagen Corrado G60
Post Reply

Return to “Extensions in Development”