Change 'by' to 'posted by'

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
VED036
Registered User
Posts: 58
Joined: Tue Jul 25, 2023 9:02 am
Location: Deverkovil

Change 'by' to 'posted by'

Post by VED036 »

I am posting some public domain books in my forum website.

I find that under the posts 'by' is coming along with my Username. This can give a wrong information, in that I am not the author of the book.

Is there any way to change the 'by' to 'posted by'?
Last edited by Mick on Fri Mar 01, 2024 3:38 pm, edited 1 time in total.
Reason: Solved.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26798
Joined: Fri Aug 29, 2008 9:49 am

Re: Change 'by' to 'posted by'

Post by Mick »

Do you mean as in the pic below, under the topic/post title?

IMG_0368.jpeg
You do not have the required permissions to view the files attached to this post.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
VED036
Registered User
Posts: 58
Joined: Tue Jul 25, 2023 9:02 am
Location: Deverkovil

Re: Change 'by' to 'posted by'

Post by VED036 »

Mick wrote: Thu Feb 29, 2024 3:42 pm Do you mean as in the pic below, under the topic/post title?


IMG_0368.jpeg
Exactly that. I would like to change the 'by' to 'posted by'.

Could you please given me the necessary instructions in this regard?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53514
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Change 'by' to 'posted by'

Post by Brf »

In language/en/common.php

Code: Select all

'POST_BY_AUTHOR'		=> 'by',
replace with

Code: Select all

'POST_BY_AUTHOR'		=> 'posted by',
VED036
Registered User
Posts: 58
Joined: Tue Jul 25, 2023 9:02 am
Location: Deverkovil

Re: Change 'by' to 'posted by'

Post by VED036 »

Brf wrote: Thu Feb 29, 2024 4:49 pm In language/en/common.php

Code: Select all

'POST_BY_AUTHOR'		=> 'by',
replace with

Code: Select all

'POST_BY_AUTHOR'		=> 'posted by',
Thank you! It worked.
VED036
Registered User
Posts: 58
Joined: Tue Jul 25, 2023 9:02 am
Location: Deverkovil

Remove by from Topic list

Post by VED036 »

Since I am directed back here from this page, let me repeat the request.

Posted by or by is appearing in the Topic list.

I need to remove this by / Posted by in the Topic list. And not in the posts.

Can anyone please tell what is to be done?
1a.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
Mannix_
Registered User
Posts: 1976
Joined: Sun Oct 25, 2015 2:56 pm
Name: Matt

Re: Change 'by' to 'posted by'

Post by Mannix_ »

in viewforum_body.html find

Code: Select all

{L_POST_BY_AUTHOR} <!-- EVENT viewforum_body_topic_author_username_prepend -->{topicrow.TOPIC_AUTHOR_FULL}<!-- EVENT viewforum_body_topic_author_username_append --> &raquo; <time datetime="{topicrow.FIRST_POST_TIME_RFC3339}">{topicrow.FIRST_POST_TIME}</time>
and change to

Code: Select all

<time datetime="{topicrow.FIRST_POST_TIME_RFC3339}">{topicrow.FIRST_POST_TIME}</time>
purge the cache in ACP after.
Did I helped You? Consider a donation.
New version of phpBB has been released? My styles aren't validated for it yet? Check my page for the latest downloads!
VED036
Registered User
Posts: 58
Joined: Tue Jul 25, 2023 9:02 am
Location: Deverkovil

Re: Change 'by' to 'posted by'

Post by VED036 »

Mannix_ wrote: Fri Mar 08, 2024 6:58 pm in viewforum_body.html find
I did do as per your instructions. I purged the cache in the APC and also did clean the browser cache.

However, I could see no change in the webpage.

Did I miss something? I found the file in Prosilver/template

Please wait. Let me check again.

I see that the codes you gave is repeated in the file. I removed both of them and replaced them with the code you gave. It has worked I see.

You have helped me.

1a.jpg
You do not have the required permissions to view the files attached to this post.

Return to “phpBB Custom Coding”