Page 1 of 2

[ABD] Topic Descriptions

Posted: Mon Aug 24, 2015 6:58 am
by kinerity
Extension Name: Topic Descriptions
Author: kinerity

Extension Description: An extension for phpBB 3.1.x that allows users to add a description to their topics
Extension Version: [BETA]

Requirements: phpBB 3.1.7

Extension Download: n/a

Installation and Configuration: https://github.com/kinerity/topicdescri ... /README.md

Extension Repository: https://github.com/kinerity/topicdescriptions

Just a quick update - since this extension was abandoned and I had some free time, I decided to start coding it. I have the basic functionality of adding/updating/removing a topic description working. The only thing left as far as I know is to add it to viewforum, viewtopic, and search results. Completed - currently in internal testing.

Re: [DEV] Topic Descriptions

Posted: Mon Aug 24, 2015 10:31 am
by Holger
Nice! So this is in between the subject and the message?
Could be used to make an excerpt of the topic in another language ...

Re: [DEV] Topic Descriptions

Posted: Mon Aug 24, 2015 12:09 pm
by Darkness Seeker
I've been waiting this for so long :D

Good luck with the testing!

Re: [DEV] Topic Descriptions

Posted: Mon Aug 24, 2015 10:02 pm
by kinerity
There is a pull request open for a new template event to be added. If all goes well, it should be included in 3.1.7 (it appears 3.1.6 is already in the process of being released). For reference purposes, it's this pull request.

Re: [DEV] Topic Descriptions

Posted: Wed Aug 26, 2015 7:45 pm
by spello
Thanks!

My requests:
* searchable descriptions (deal together with topic title)
* put descritpions into html (inside <head>): <meta name="description" content="SOME TEXT" />

Re: [DEV] Topic Descriptions

Posted: Thu Aug 27, 2015 1:16 am
by kinerity
spello wrote:* searchable descriptions (deal together with topic title)
This seems like it would require more work than it's worth.
spello wrote:* put descritpions into html (inside <head>): <meta name="description" content="SOME TEXT" />
I'm on the fence about this one. I've always been weary of adding information to the meta descriptions. I'll think about this for a while.

Re: [DEV] Topic Descriptions

Posted: Thu Aug 27, 2015 5:59 pm
by spello
kinerity wrote:This seems like it would require more work than it's worth.
Would it be that hard to add it into "Topic titles only" or "First post of topics only" search field?

Re: [DEV] Topic Descriptions

Posted: Thu Aug 27, 2015 7:57 pm
by kinerity
That all depends on if the SQL modify events allow it. I'll take a look at it later.

Re: [DEV] Topic Descriptions

Posted: Sun Aug 30, 2015 8:03 am
by Richarda
I've been waiting this for so long :D I need it for my forum :D

Re: [DEV] Topic Descriptions

Posted: Mon Aug 31, 2015 11:42 am
by Oyabun1
kinerity wrote:
spello wrote:* put descritpions into html (inside <head>): <meta name="description" content="SOME TEXT" />
I'm on the fence about this one. I've always been weary of adding information to the meta descriptions. I'll think about this for a while.
Not sure what it's supposed to achieve? The default board setting is to display 25 topics per page, so potentially 25 descriptions. At, say, 50 characters per description, the meta tag would be 1250 characters long, so most of it would be ignored by every search bot anyway.

Re: [DEV] Topic Descriptions

Posted: Mon Aug 31, 2015 8:46 pm
by kinerity
I'm guessing they mean in viewtopic.

Re: [DEV] Topic Descriptions

Posted: Mon Aug 31, 2015 10:52 pm
by Oyabun1
However, would the topic description appear when viewing the topic? I assumed it would function similarly to a forum description, which doesn't show when viewing the forum. At least, that is how the MOD for 3.0 did it.

Although, I suppose maybe the description could just be written to the meta tag and not be otherwise displayed. Still don't know what purpose it is supposed to serve? If it is for SEO it won't work because the major search engines stopped using the meta description tag for ranking purposes years ago.

Re: [DEV] Topic Descriptions

Posted: Tue Sep 01, 2015 11:00 am
by kinerity
Oyabun1 wrote:If it is for SEO it won't work because the major search engines stopped using the meta description tag for ranking purposes years ago.
I know that - which is why I'm on the fence about adding it to the META tag. :P
Oyabun1 wrote:However, would the topic description appear when viewing the topic? I assumed it would function similarly to a forum description, which doesn't show when viewing the forum. At least, that is how the MOD for 3.0 did it.
I'll admit, I didn't use the MOD on 3.0, so I wasn't 100% sure how it functioned. That being said, once this pull request gets merged, with the description being limited to 200 characters it's not going to consume much retail space in terms of displaying on viewtopic (I would be using the <p> tag). If there's a real concern here, I can make it ACP-switchable.

Re: [DEV] Topic Descriptions

Posted: Mon Sep 21, 2015 7:57 pm
by Galixte de EzCom
Hi kinerity,

any news about your extension ? I have tested the similar extension by Vinny, it’s not functionnal and currently Vinny has not time to finish this.

It’s possible to get a test archive and give you some feedbacks ?

Re: [DEV] Topic Descriptions

Posted: Mon Sep 21, 2015 10:37 pm
by lordrichy
If I may make a suggestion, I think, if this is easy enough to do (which it probably isn't), there should be an option to make the forum descriptions have a hover effect. So, once you scroll your mouse over the forum, the description would appear.

This may have to entirely do with the style, I'm not sure, but if it can be done, I think it'd be a neat additional feature!