Identify the Topic Author under the Avatar

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Scam Warning
Post Reply
Lady_G
Registered User
Posts: 261
Joined: Fri Jun 08, 2012 12:38 pm
Location: US

Identify the Topic Author under the Avatar

Post by Lady_G »

Does an extension exist which identifies the topic author inside a post?

When viewing long topics, it is very easy to lose track of the topic author. Highlighting the author, such as displaying "Topic Author", under the avatar would be very useful.

I am looking for a phpBB 3.2.x extension that is similar to this phpBB 3.0.x mod: Topic Starter.

The only developer's discussion I could find is from 2012: [RFC] Original poster template tag
User avatar
martti
Registered User
Posts: 867
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: Identify the Topic Author under the Avatar

Post by martti »

As this is easy and useful, I've started an extension
User avatar
david63
Registered User
Posts: 18576
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: Identify the Topic Author under the Avatar

Post by david63 »

David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
Lady_G
Registered User
Posts: 261
Joined: Fri Jun 08, 2012 12:38 pm
Location: US

Re: Identify the Topic Author under the Avatar

Post by Lady_G »

Thank you, I did not understand the description. See my post here: Re: [3.2][BETA] Show Topic Starter
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: Identify the Topic Author under the Avatar

Post by jackennils »

Or without an extension, put something like this in the viewtopic_body.html of your theme:

Code: Select all

<!-- IF postrow.S_TOPIC_POSTER --><i title="Topic Starter" class="fa fa-user-circle" style="background-color: #fff; border-radius: 50%; color: #1da1f2; font-size: 16px; margin-left: 5px; padding: 2px; cursor: help;"></i><!-- ENDIF -->
Put it after:

Code: Select all

<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
Lady_G
Registered User
Posts: 261
Joined: Fri Jun 08, 2012 12:38 pm
Location: US

Re: Identify the Topic Author under the Avatar

Post by Lady_G »

Inserting a single line of code will work as you suggest (thank you), but I want to avoid modifications to the released code base.

My first approach is to search for a validated PHP extension, as the validation process includes a check for security issues.

I would suggest placing style customizations inside a CSS file.
User avatar
Zoddo
Registered User
Posts: 158
Joined: Thu Aug 18, 2011 2:41 pm
Location: Le Mans, France
Name: Yohan
Contact:

Re: Identify the Topic Author under the Avatar

Post by Zoddo »

Lady_G wrote:
Sun May 06, 2018 8:16 pm
My first approach is to search for a validated PHP extension, as the validation process includes a check for security issues.
david63 linked a validated extension above
Lady_G wrote:
Sun May 06, 2018 8:16 pm
I would suggest placing style customizations inside a CSS file.
How did you want to put HTML into a CSS file? :roll:
User avatar
martti
Registered User
Posts: 867
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: Identify the Topic Author under the Avatar

Post by martti »

Zoddo wrote:
Sun May 06, 2018 8:24 pm
Lady_G wrote:
Sun May 06, 2018 8:16 pm
I would suggest placing style customizations inside a CSS file.
How did you want to put HTML into a CSS file? :roll:
Style belongs into a separate CSS file because it's static content that you can send with a cache header of maximum time (1 year). When the browser has the content in cache, it doesn't need to fetch this content every page request from the server.
The HTML pages in phpBB are dynamic so they cannot be cached (at browser/client side).
Last edited by martti on Sun May 06, 2018 9:13 pm, edited 1 time in total.
User avatar
Zoddo
Registered User
Posts: 158
Joined: Thu Aug 18, 2011 2:41 pm
Location: Le Mans, France
Name: Yohan
Contact:

Re: Identify the Topic Author under the Avatar

Post by Zoddo »

martii, yes but this specific modification can't be done with only CSS.
User avatar
martti
Registered User
Posts: 867
Joined: Thu Jul 31, 2014 8:23 am
Location: Belgium

Re: Identify the Topic Author under the Avatar

Post by martti »

Zoddo wrote:
Sun May 06, 2018 9:13 pm
martii, yes but this specific modification can't be done with only CSS.
Ah, ok. But I think Lady_G just meant to have the css separated, (not "only" css) because you use inline styling in your "mod".
Lady_G
Registered User
Posts: 261
Joined: Fri Jun 08, 2012 12:38 pm
Location: US

Re: Identify the Topic Author under the Avatar

Post by Lady_G »

My intention was for separation of styles from active code.

martti's extension works better for my board than Topic Author, described here.

I have created my first pull request to add a css style to martti's extension. See my post here: Re: [3.2][BETA] Show Topic Starter
kamyk25
Registered User
Posts: 22
Joined: Tue May 08, 2018 12:27 am

Re: Identify the Topic Author under the Avatar

Post by kamyk25 »

Nice extension, I will use it also thank You for Your idea.
User avatar
Neverlands
Registered User
Posts: 78
Joined: Thu Sep 05, 2002 12:06 am
Location: Vienna / Austria
Contact:

Re: Identify the Topic Author under the Avatar

Post by Neverlands »

Hello,
I saw that if users - who were deleted in the meanwhile, but their posts have been kept - are all marked as topic authors in a thread.
This only seems to happen if the the first post is from a user who does not exist anymore. Those users have the poster_id 1 (Anonymous).
If the first post is from a (still) registered user it is working as intended.
Post Reply

Return to “Extension Requests”