Notifications
Clear all

[Solved] Search only in approved comments at wpDiscuz Comment Search

3 Posts
2 Users
1 Reactions
1,606 Views
Posts: 6
Customer
Topic starter
(@jblascoa)
Member
Joined: 7 years ago

Hello Last Wednesday I bought your pluggin and that is exactly what I was looking for.

My website is http://organics-magazine.com

However, I have some problems

1.- The search for comments is done in "approved" comments, but also by those who are pending approval. Do you plan to add it as a new functionality ?. While you solve it you could indicate to me which * .php file I should modify to search only for the approved comments since it is very important for me

2.- When doing a search, the text "View Tree" appears to the right of the voting area. How can I change it and put another term in Spanish? It is also possible to change the color, now it is gray. My corporate color is red and I would like to change it. How could I do it?

3.- My text in "Search form placeholder" is "Buscar en comentarios" In PC version i see all the text correctly, without a mobile phone (5.2 "screen) it is cut and you only see " "Buscar en co"

Thank you

2 Replies
Posts: 4213
 Tom
Admin
(@tomson)
Famed Member
Joined: 10 years ago

Hi jblascoa

1.- The search for comments is done in "approved" comments, but also by those who are pending approval. Do you plan to add it as a new functionality ?. While you solve it you could indicate to me which * .php file I should modify to search only for the approved comments since it is very important for me

You're admin so it does search in unapproved comments. But try to search as guest, just logout and test it. wpDiscuz Comment Search doesn't bring result with unapproved comments for non-admin people.

2.- When doing a search, the text "View Tree" appears to the right of the voting area. How can I change it and put another term in Spanish? It is also possible to change the color, now it is gray. My corporate color is red and I would like to change it. How could I do it?

I'm sorry but addon style customization is not included in our support. As per front-end phrases you should translate addon using  /wpdiscuz-comment-search/languages/wpdiscuz-search.pot file. All WordPress plugins' phrases and words are translated using this method. There are a few phrases in wpDiscuz Comment Search addon, just download the Poedit or install Loco Translate plugin, and use the POT file mentioned above to create a spanish translation files. Those should have "wpdiscuz-search" prefix. The translation files should be uploaded to the same /languages/ directory. File names should be wpdiscuz-search-es_ES.po and wpdiscuz-search-es_ES.mo . Also make sure your WordPress language is set Spanish in Dashboard > Settings > General admin page, otherwise it won't work. More info: http://wplang.org/translate-theme-plugin/

3.- My text in "Search form placeholder" is "Buscar en comentarios" In PC version i see all the text correctly, without a mobile phone (5.2 "screen) it is cut and you only see " "Buscar en co"

Please navigate to Dashboard > Comments > Settings > Styling admin page, put this CSS code in Custom CSS Code textarea. Save it, delete all caches and do Ctrl+F5 on front-end:

@media screen and (max-width:600px) {
      #wpcomm #wpdiscuz-search-form input[type="text"].wpdiscuz-comm-search {
width: 90%;
      }
}
Posts: 6
Customer
Topic starter
(@jblascoa)
Member
Joined: 7 years ago

Hi Tom,

about what you tell me

1.- It still does not work. I'm connected as a guest and I'm still looking for comments that are not approved. Anyway it does not matter, in my WEB I have adapted the file search-DBManager.php (function searchData) so that it works correctly.

2.- Ok. 

3.- Ok.

Thanks

Share:
Scroll to top