Copy first 150 characters of topic?

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Scam Warning
Locked
User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK
Contact:

Copy first 150 characters of topic?

Post by alecrust » Tue Sep 20, 2011 7:29 pm

Hi all,

I'm not sure if this should be a MOD request or not, it seems pretty simple to me.

I'd like to better optimize my board for SEO by providing a unique <meta> description for each topic.

I'm aware of the existing Topic SEO, Index SEO and Forum SEO MODs, but they don't achieve what I'm after at all.

I don't need a field for "keywords" like these MODs have, and I don't want to add an additional "SEO Description" field to post edit pages that my users need to fill in.

Quite simply, I'd like to copy the first 150 characters of the first post in a topic (usually what the topic is about) and add that in as the <meta> description.

Can anyone help with this or point in the right direction?

Many thanks!

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 25454
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: Copy first 150 characters of topic?

Post by Paul » Tue Sep 20, 2011 7:47 pm

Moved to MOD requests.
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Copy first 150 characters of topic?

Post by Oyabun1 » Tue Sep 20, 2011 11:18 pm

See the code in this post, Dynamic Meta Descriptions.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

User avatar
alecrust
Registered User
Posts: 348
Joined: Thu Mar 27, 2008 11:24 am
Location: London, UK
Contact:

Re: Copy first 150 characters of topic?

Post by alecrust » Tue Sep 20, 2011 11:25 pm

Awesome! Thank you :)

Locked

Return to “[3.0.x] MOD Requests”