Jump to content

Help with this problem please :)


Davyc
 Share

Recommended Posts

Need help with this, if it is at all possible,

I'm wanting to add a snippet (no more than 3 lines) of the text that appears in a topic into the topic list: See below for example:

This is a section of the topic list in a forum:

image.thumb.png.9a811696a75055cffe875fbc045187c8.png

 

Below is what is inside the topic:

image.thumb.png.9ab030b4458e31071025cec59d1f2fef.png

The orange arrow is pointing to the text I want to include in the topic list, but no more than 3 lines regardless of how much text is in the topic. Mock-up is below:

topic1.thumb.png.9d3736e54858c575f8685ed3efc78735.png

This is going to be a template edit, but what do I put into which template to get this effect, if indeed it is at all possible?

With thanks

Edited by Davyc
Link to comment
Share on other sites

4 hours ago, Davyc said:

This is going to be a template edit,

Pretty sure it's not going to be that simple - what you are asking is for the "Content" of the first post, which is not included in the SQL query which results in the data available for the topic listing. "Content" becomes available when the topic is read.

Why? Well, why return the "Content" of the topic when it's not needed? Think about the potential size of that data set if the "Content" was a 10,000 word essay.

I reckon you're going to need a plugin which does the following:

1) Parses the "Content", strips HTML, truncates it to X number of characters
2) Adds that to the data set returned to the template
3) Modifies the template to display the parsed content

Link to comment
Share on other sites

37 minutes ago, Nathan Explosion said:

Pretty sure it's not going to be that simple

 

I figured that lol.  I had a look at the templates, and it was something beyond my reckoning. Seems like a lot of work just to add a few lines of text, but if it can be done I'm happy to pay someone as long as it isn't a huge sum as I have a very limited budget 🙂

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Similar Content

    • By Dark Marik
      I bought a theme and installed it, after that I decided to buy the gallery and blog and installed them too, but after I uploaded the files I saw that there is a problem (everything seems to work normally) with third party customizations in support, I tried disable customizashions but it did not help, I also re-enable all customizashions but it did not help, I still see the same problem in third party, no matter what theme I use, (also every app and pugins I add shows the same problem but works normal) I would love advice on how to solve the problem, thanks a lot for the helpers.
       

       

       



       
    • By Optimvs
      How is the best way to create a help guide in IPS as your IPS Help Guide? Pages and Databases or other options? Thanks a lot.
    • By Marco Junior
      Hello everyone,
      I need help with post anonymous, when I create a new topic with this function.
      Does dont possible edit my post for not anonymous because when editing nothing occurs the topic continue anonymous.
      Any solution for this ?

       

       

    • By ofir102
      Greetings,

      When I try to connect to the app store (Marketplace) I get an error message, I went to the support page on the home page of the control panel on my site, to check the integrity of the site files, and everything is fine
      Why do I get an error message that I can not connect to the service, I can not install plugins through the store
      error Massage:
      There was an error authenticating with the Marketplace. Please try again later or contact technical support for assistance.
      Our Marketplace server received an unexpected response from your community. Please ensure your community is up to date and web accessible (localhost installations are not supported) and contact technical support if the issue persists. (server_error)     I try Everything to Connect Marketplace but every time give this error.   please what i can to fix it?  
    • By Apfelstrudel
      Hello,
      could you please also add "years" as a milestone condition for "time since registered"?
      My forum is very old and 10x365 days is not 10 years. 😉

×
×
  • Create New...