Notifications
Clear all

[Solved] Search Widget could be better if...

7 Posts
2 Users
1 Reactions
903 Views
Posts: 11
Customer
Topic starter
(@javier-pardos)
Member
Joined: 4 years ago

Hello, I have an online academy. In each of the lessons (which are CPTs), I have activated wordpress comments below, which in turn are replaced by the wpdiscuz design/system. So my students can ask questions of each of the lessons. In each of those "forums", they use the "search" addon that wpdiscuz incorporates, to search for keywords in the comments of that lesson. So far perfect.

But now, I've created a page where I can embed a search engine so students can search for keywords in ALL the academy comments. After going crazy trying to find a solution, I've discovered that while wpdiscuz doesn't use shortcodes for this purpose, it does incorporate a "search comments widget" that can be added to the sidebars.

But finally I have been able to add it as a widget at the end of a post, which I will use as if it were a page. And it worked perfect.

But I need 2 things:

1 . By default, before searching for any keyword, it shows the first 5 comments. How can I make it display for example 10?

2 . When searching for a keyword, the results show avatar author , author name, lesson title (+ link) and an excerpt from the comment. How can I make that excerpt not only show the beginning of the comment and an elpipsis type "..." but rather show the part of the comment where the keyword appears with its "Highlight search text in live results"? Even, How can you configure the number of words in the excerpt?

I guess tweaking functions or css, or something... yes, it could not?

I appreciate the help on these two questions.

Thank you !

6 Replies
Astghik
Posts: 6193
Admin
(@astgh)
Illustrious Member
Joined: 7 years ago

Hi Javier Pardos,

Posted by: @javier-pardos

1 . By default, before searching for any keyword, it shows the first 5 comments. How can I make it display for example 10?

You should change the value of the "Number of comments to show:" option. 

image

2 . When searching for a keyword, the results show avatar author , author name, lesson title (+ link) and an excerpt from the comment. How can I make that excerpt not only show the beginning of the comment and an elpipsis type "..." but rather show the part of the comment where the keyword appears with its "Highlight search text in live results"? Even, How can you configure the number of words in the excerpt?

I'll ask the developers if there is an easy way for this. 

5 Replies
Customer
(@javier-pardos)
Joined: 4 years ago

Member
Posts: 11

@astgh perfect ! Suuuuuper 🙂 Thanks a lot ! 🙂 I will wait for the answer

Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6193

Hi Javier Pardos,

We're really sorry, but for the second question, there is no easy solution we can share here. 

Customer
(@javier-pardos)
Joined: 4 years ago

Member
Posts: 11

@astgh ok ! Thanks for your answer and our time. Then, some one of you team can do that service (paying I mean) for me in my web?

Astghik
Admin
(@astgh)
Joined: 7 years ago

Illustrious Member
Posts: 6193

@javier-pardos,

Currently, we have plugin customization and custom addon development services at the gVectors Team. They can assess the work and create it for you. Just contact us via sales[at]gvectors.com email address and send a list of requirements you'd like to have.

Customer
(@javier-pardos)
Joined: 4 years ago

Member
Posts: 11

@astgh perfect. I already wrote to that email. I wait for the answer. Thanks 🙂

Share:
Scroll to top