AI Assistant
Notifications
Clear all

[Solved] Post Author Text/Link (By XYZ)

7 Posts
3 Users
0 Reactions
1,649 Views
Posts: 63
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@hshah)
Trusted Member
Joined: 7 years ago
[#9793]

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

 

 

Annotation 2019 08 21 220140
Annotation 2019 08 21 220442

6 Replies
Sofy
Posts: 5774
 Sofy
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@sofy)
Support Team
Joined: 8 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@hshah)
Trusted Member
Joined: 7 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]".

Annotation 2019 09 16 152406
 Annotation 2019 09 16 152931

1 Reply
Robert
Admin
(@robert)
Joined: 2 months ago

Support Team
Posts: 10708
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@hshah)
Trusted Member
Joined: 7 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: 8 years ago

Support Team
Posts: 5774
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@hshah)
Trusted Member
Joined: 7 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 😀


Share: