#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
How to limit post c...
 
Share:
Share
Tweet
Share
Notifications
Clear all

How to limit post contents being displayed in search results.

    Last Post
RSS

JorgeW
Posts: 68
 JorgeW
Topic starter
May 24, 2019 12:24 am
(@jorgew)
Trusted Member
Joined: 3 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: 4057
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
May 24, 2019 7:52 am
(@sofy)
Support Team
Joined: 4 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. 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

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

Trusted Member
Posts: 68
May 24, 2019 4:34 pm
Reply toSofySofy

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.

Reply
Sofy
Posts: 4057
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
May 31, 2019 7:17 am
(@sofy)
Support Team
Joined: 4 years ago

ok @dlinstedt,

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

We'll check and back to you asap. 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
Sofy
Posts: 4057
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
June 4, 2019 7:22 am
(@sofy)
Support Team
Joined: 4 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. 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
7 Replies
JorgeW
 JorgeW
(@jorgew)
Joined: 3 years ago

Trusted Member
Posts: 68
June 4, 2019 6:33 pm
Reply toSofySofy

@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.

Screen-Shot-2019-06-04-at-12.46.51-PM.png
Screen-Shot-2019-06-04-at-12.46.18-PM.png
Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 4 years ago

Support Team
Posts: 4057
Sofy - Facebook Sofy - Twitter
June 5, 2019 8:10 am
Reply toJorgeWJorgeW
Sofy

ok @jorgew,

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

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
JorgeW
 JorgeW
(@jorgew)
Joined: 3 years ago

Trusted Member
Posts: 68
June 5, 2019 1:47 pm
Reply toSofySofy
JorgeW
Sofy

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.

Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 4 years ago

Support Team
Posts: 4057
Sofy - Facebook Sofy - Twitter
June 6, 2019 7:13 am
Reply toJorgeWJorgeW
Sofy
JorgeW
Sofy

No problem @jorgew,

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

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
JorgeW
 JorgeW
(@jorgew)
Joined: 3 years ago

Trusted Member
Posts: 68
June 22, 2019 12:59 am
Reply toSofySofy
JorgeW
Sofy
JorgeW
Sofy

Hi @sofy

Any news yet?

Reply
dlinstedt
 dlinstedt
(@dlinstedt)
Joined: 3 years ago

Eminent Member
Posts: 47
June 6, 2019 11:07 am
Reply toSofySofy

@Sofy

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

 

Thanks,

Dan

Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 4 years ago

Support Team
Posts: 4057
Sofy - Facebook Sofy - Twitter
June 6, 2019 11:08 am
Reply todlinstedtdlinstedt
Sofy

Hi @dlinstedt,

Here it is:

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

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
  All forum topics
  Previous Topic
Next Topic  

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Forum description

    By Vijiki, 12 mins ago

  • Moderation Turned Completely Off...User's Posts Are Still "Awaiting Moderation"...

    By Noved, 4 hours ago

  • Slight changes to my forum

    By marios, 16 hours ago

  • No Wpforo widget

    By Vijiki, 24 hours ago

  • Guest to not see recent posts on Recent activity page

    By OMTesla, 1 day ago

  • Prevent access to the url "community"

    By totor, 2 days ago

Topic Tags

  • css50
  • translation49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • ultimate member40
  • avatar40
  • forum40
  • moderation38
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • forum accesses30
  • spam29
  • phrases28
View all tags (2163)

Recent Posts

  • Forum description

    I wanna make the forum description to show only when th...

    By Vijiki, 12 mins ago

  • RE: How to schedule a topic?

    When will this be available?It'll be a very good featur...

    By Joselito, 2 hours ago

  • RE: Moderation Turned Completely Off...User's Posts Are Still "Awaiting Moderation"...

    Hi @noved, Please read this instruction:/p>

    By Robert, 3 hours ago

  • RE: Guest to not see recent posts on Recent activity page

    @omtesla, Please take a screenshot of your Usergroups...

    By Robert, 4 hours ago

  • RE: Can I permanently set a single user to have all posts moderated?

    @fawp Realistically that might be what happens at the e...

    By Upstart DM, 6 hours ago

  • RE: No Wpforo widget

    @vijiki, To Remove Share Buttons, go to Dashboard >...

    By Chris, 10 hours ago

  • RE: Dark mode

    @vijiki I think you should invest some time to learn th...

    By dimalifragis, 12 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,771 Topics
49.5 K Posts
8 Online
44.4 K Members

Latest Post: Forum description Our newest member: Acai Berry Weight Loss - 3 Way... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation