Notifications
Clear all

wpForo 1.x.x [Solved] Post Author Text/Link (By XYZ)

7 Posts
3 Users
0 Reactions
940 Views
Posts: 63
Topic starter
(@hshah)
Trusted Member
Joined: 5 years ago

Why does the word "By" form part of the link to the user's profile?

 

 

6 Replies
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @hshah,

It's more convenient if the "by" phrase is included in the link. It's easier for going to the author profile just by hovering on "by user" phrase. Probably the name is too short. For example, in the case of Chinese, there may be only one symbol as an author name, thus the hovering will be a bit harder.

However, as you may know, wpForo allows customizing the template and styles. So you can easily customize and remove the link from the "by" phrase. 

The update-safe way of customization is described here:

https://wpforo.com/docs/root/forum-themes/theme-customization/

Posts: 63
Topic starter
(@hshah)
Trusted Member
Joined: 5 years ago

@Sofy

Attached better screenshots... you shouldn't need them though because it is basically everywhere the topic/post creator is mentioned in the manner "By [username]".

1 Reply
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10591

@hshah

Please let us know what is the main reason you want to exclude "by" from the link? Why it's so important for you?

Posts: 63
Topic starter
(@hshah)
Trusted Member
Joined: 5 years ago

@Robert 

I won't lie... there is no functional reason. I just don't like it and think it looks wrong because the name is meant to be the link, without any words before or after.

A good comparison would be:

The Google URL is http://google.com

To me that just looks ridiculous. However, whilst I think it should be changed, I'm not saying it is something you need to do. I'm more than happy to make the necessary changes and manually apply them after any updates.

Just would like to know from you guys where I have to make this change 😀 

1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@hshah,

If you're nor familiar with codding, please don't do any customizations. We cannot support issues arisen during such customizations. 

The "by" word could be removed from the:

1. recent.php file in /wp-content/plugins/wpforo/wpf-themes/classic/ folder

2. in other cases you should open the corresponding forum.php file in the /wp-content/plugins/wpforo/wpf-themes/classic/layouts/ folder

You should find the wpforo_member_link function in each files and replace "by" with '' 

Original function: wpforo_member_link($member, 'by', 9);

The final function: wpforo_member_link($member, '', 9);

Posts: 63
Topic starter
(@hshah)
Trusted Member
Joined: 5 years ago

@Sofy

Had to apply the same change in the topic.php file as well, but after doing the same for all 3 files, it all looks lovely. 

Thanks for letting me know where the changes needed to be made 😀