AI Assistant
Notifications
Clear all

How to use custom Phrases (in show/hide replies)?

4 Posts
2 Users
0 Reactions
3,138 Views
 GMM
(@gmm)
Active Member
Joined: 9 years ago
Posts: 6
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
  [#833]

I see the Phrases tab (I've seen comments in forum already and I'm NOT using .PO/.MO files), and can edit them, but no idea how to get them to work.

In particular, I'm trying to add a word to the show/hide reply chevron. Is there a check-box I'm missing or something?

Previously I was editing class.WpdiscuzCore.php (initial state) and wpdiscuz.js (subsequent state).

BTW: Great idea allowing us to edit class.WpdiscuzCore.php in our theme! However, I copy the file as suggested into the proper path and it doesn't seem to work. Latest version. Even tried reinstalling it.

 

 

 



   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 11 years ago
Posts: 4245
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
 

Hi GMM,

You only can copy and edit these two files, but not class.WpdiscuzCore.php:

  • /wpdiscuz/assets/css/wpdiscuz.css (Style / Colors / Backrounds …)
  • /wpdiscuz/templates/comment/class.WpdiscuzWalker.php (Layout, HTML structure)

I'm sorry but I didn't follow which phrase exactly you want to change in phrase system.

 



   
ReplyQuote
 GMM
(@gmm)
Active Member
Joined: 9 years ago
Posts: 6
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
 

Ah, I got the file names confused on that last bit.

But the Phrases I'm looking to use are Show Replies and Hide Replies. Right now it is only showing the up or down chevron.

I can see in the .js where it looks like it is requesting the text:

toggleSpan.html('<i class="fa fa-chevron-up" aria-hidden="true"  title="' + wpdiscuzAjaxObj.wpdiscuz_options.wc_show_replies_text + '"></i>');

 

I see the text is applied to the tooltip, but is there anyway, other than editing the .js line(s) referenced above to include it within the chevron area?

I can edit the Core and .js files directly, but obviously it would be better to not edit those files if there is an easier way to do this.



   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 11 years ago
Posts: 4245
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
 

I'm sorry but there is no way. wpDiscuz doesn't have this text next to the icon.

If you're familiar with PHP/HTML you can customize wpDiscuz template. More info in wpDiscuz Documentation > Custom Template and Style Tab.



   
ReplyQuote
Share:
Scroll to top