Notifications
Clear all

wpForo 1.x.x [Closed] How to limit post contents being displayed in search results.

12 Posts
3 Users
0 Likes
1,542 Views
JorgeW
Posts: 105
Topic starter
(@jorgew)
Estimable Member
Joined: 5 years ago

Hi Support,

When I search for a phrase, wpforo displays a list with results.

This list includes some large posts in full content (e.g. 30+ rows) and other -also large posts- in 5 truncated rows only !?!

1.- What's the rationale for this behaviour?

2.- How can I limit (truncate) contents being displayed to 5 rows only, always?

Thanks

11 Replies
Sofy
Posts: 4310
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi @jorgew

This is designed t work this way. There is no option to limit the content which is being displayed. 

I'll ask developers if there is an easy solution I can post for you. 

1 Reply
JorgeW
(@jorgew)
Joined: 5 years ago

Estimable Member
Posts: 105

Hi @sofy,

This is designed t work this way. There is no option to limit the content which is being displayed. 

But the fact is that some are being limited/truncated:

And...

 

So, what would be the answer to my first question:

1.- What's the rationale for this behavior?

 

Thanks.

Sofy
Posts: 4310
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

ok @dlinstedt,

I'm going to ask this question to wpForo developers.

We'll check and back to you asap. 

Sofy
Posts: 4310
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi @jorgew,

please follow the steps to change the limit number you've mentioned: 

1. Please read the doc for wpForo customization:

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

2. In search.php file located in wp-content/plugins/wpforo/wpf-themes/classic/ folder find the following line: 

$body_len = 564;

and change the 564 as you like. 

Dear @dlinstedt,

I respectfully request to only show "titles of topics and replies" in accordance with the security policies I have set for each forum.  If they have Read Only access, then titles only display, if they have Read/Write, then show the smushed text, if they have No Access, then please hide these results appropriately from the search results.

I don't follow you well. If the topic is private the result is not found any way for usergroup members who don't have permissions to see it. 

7 Replies
JorgeW
(@jorgew)
Joined: 5 years ago

Estimable Member
Posts: 105

@sofy,

Thanks for the hint.

I defined it to include 350 ch. and it seems to work, but not always.

When I search for "Washington" the displayed found post (#796) does include only 350 ch. (I hope, I didn't really count them). 

But if I search for "lorem ipsum" then the same post displays now its full content.

Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4310

ok @jorgew,

Please leave your forum URL we'll need to check it. 

JorgeW
(@jorgew)
Joined: 5 years ago

Estimable Member
Posts: 105

Hi @sofy,

Unfortunately I can't do that. It is an organization's private forum and I'm not allowed to let not-members in.

If you tell me what you need to check, maybe we can work it out.

Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4310

No problem @jorgew,

We'll continue to test this on our test websites. I'll update this topic once I get news for you. 

JorgeW
(@jorgew)
Joined: 5 years ago

Estimable Member
Posts: 105

Hi @sofy

Any news yet?

(@dlinstedt)
Joined: 5 years ago

Trusted Member
Posts: 47

@Sofy

Did you see my other post / response about this issue?  I sent screen shots about the read/write read/only settings.

 

Thanks,

Dan

Sofy
 Sofy
Admin
(@sofy)
Joined: 6 years ago

Support Team
Posts: 4310

Hi @dlinstedt,

Here it is:

https://wpforo.com/community/how-to-and-troubleshooting-2/problem-with-wpforo-search/#post-27464