Advertisement:

Author Topic: Profile - Show posts - excerpt  (Read 737 times)

Offline kaca

  • Newbie
  • *
  • Posts: 5
Profile - Show posts - excerpt
« on: June 14, 2018, 03:22:16 AM »
When I go on Profile -> Show posts, there is whole text of every post on that profile.
I would like to have only peaces of texts - excerpts, for each post.
How to change code to do that? Can someone help me, please?
Thanks.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,349
  • Gender: Male
    • Macedonian electronics forum
Re: Profile - Show posts - excerpt
« Reply #1 on: June 14, 2018, 10:00:43 AM »
I don't get it... it's supposed to show the posts... the name of the option is Show Posts, not Show Excerpts of the User's Posts.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,335
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
    • Study Force
Re: Profile - Show posts - excerpt
« Reply #2 on: June 14, 2018, 08:06:18 PM »
When I go on Profile -> Show posts, there is whole text of every post on that profile.
I would like to have only peaces of texts - excerpts, for each post.
How to change code to do that? Can someone help me, please?
Thanks.

You mean you want the first 128 words, for example?

Offline kaca

  • Newbie
  • *
  • Posts: 5
Re: Profile - Show posts - excerpt
« Reply #3 on: June 15, 2018, 12:31:05 AM »
You mean you want the first 128 words, for example?

Yes.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,313
    • StoryBB/StoryBB on GitHub
Re: Profile - Show posts - excerpt
« Reply #4 on: June 15, 2018, 06:40:03 AM »
For what benefit, out of interest?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline kaca

  • Newbie
  • *
  • Posts: 5
Re: Profile - Show posts - excerpt
« Reply #5 on: June 15, 2018, 09:02:41 AM »
A few of us are trying to create site/forum about books with possibility for visitors to register and make comments, etc.
We want to put book author names as names of members of site/forum, and if author have, for example, 10 books, there are going to be texts about these 10 books.
These texts are too long on Profile -> Show posts, especially on mobile, so it would be nice to have short version.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,313
    • StoryBB/StoryBB on GitHub
Re: Profile - Show posts - excerpt
« Reply #6 on: June 15, 2018, 09:18:32 AM »
Thing is, this sounds like you’re trying to use a forum for something that a forum isn’t designed to do. This is doable, but this would have to be done for all posts - and the problem there is that if you’re looking for posts from a specific person, you end up needing to click through to the posts which ends up an even worse user experience.

It’s kind of hard to understand exactly what you’re trying to do though I wonder if some of the other script choices out there that are aimed at making something more of a reference library might work better... I can see a wiki doing some of this better for example.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline kaca

  • Newbie
  • *
  • Posts: 5
Re: Profile - Show posts - excerpt
« Reply #7 on: June 15, 2018, 09:43:10 AM »
That is truth. We need something between SMF and wordpress.
Idea was to use SMF + Simple Portal pages + little code changing, to get what we want.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,313
    • StoryBB/StoryBB on GitHub
Re: Profile - Show posts - excerpt
« Reply #8 on: June 15, 2018, 10:38:38 AM »
If you had a budget and were looking for out of the box with no development, I’d suggest IPB using their forum and pages components, where you can do this kind of thing without any code changes and create highly configurable listings.

Doing this in SMF seems like a lot of custom work because even the change you’ve suggested only fixes one particular symptom, you will probably encounter more rough edges in the long run.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline kaca

  • Newbie
  • *
  • Posts: 5
Re: Profile - Show posts - excerpt
« Reply #9 on: June 16, 2018, 12:58:24 AM »
Yeah, I can see. We will see what IPB has to offer. Thanks, anyway.