TinyPortal

Development => Support => Topic started by: mtsandeep on August 13, 2009, 02:45:03 PM

Title: How to show the first image from thread on home page and a "Read more" button
Post by: mtsandeep on August 13, 2009, 02:45:03 PM
I am using smf 1.1.10 and tp. I want to see the latest posts from a board with only the first image on homepage and a Read more link to the full thread.

Is there any way to configure this with TP. ?

Can any one help me....
Title: Re: How to show the first image from thread on home page and a "Read more" button
Post by: JPDeni on August 13, 2009, 02:58:27 PM
That would require custom php coding.

What do you mean "only the first image"? The first image of what?
Title: Re: How to show the first image from thread on home page and a "Read more" button
Post by: mtsandeep on August 13, 2009, 07:09:40 PM
The thread in my forum will contain atleast one image, So is there any way to get only the first image from the thread and show it on the frontpage of TP?

Only the image, no characters, . Like the wordpress plugin which takes the thumbnail from the blogpost and showing it on homepage along with the excerpt...
Title: Re: How to show the first image from thread on home page and a "Read more" button
Post by: IchBin on August 13, 2009, 07:13:03 PM
First image attached to the topic? Or first image linked in the actual post? This sounds like a very complicated modification if you ask me.
Title: Re: How to show the first image from thread on home page and a "Read more" button
Post by: mtsandeep on August 13, 2009, 07:17:22 PM
Image in the actual topic.., i have seen such kind of portal homepage in some VB forum...
Is it difficult to do this?
Title: Re: How to show the first image from thread on home page and a "Read more" button
Post by: JPDeni on August 13, 2009, 07:51:07 PM
So you just want to display the first post in the topic, as topics are added, but not as subsequent posts are added to the topic?

I'm sorry if I sound dense, but it really is necessary to be very specific about what you want.

Unfortunately, I don't have access to a forum where there are any images, so I don't have any experience with queries that apply to images. That's the key, of course. Coming up with the query. After that, it's an easy matter of printing out the results.

Possibly someone else who has more experience with images will be able to help more.
Title: Re: How to show the first image from thread on home page and a "Read more" button
Post by: mtsandeep on August 13, 2009, 09:12:25 PM
check my forum and you will be able to see that all the images are being shown on the frontpage. I only want one image of the first post of the threqad to be shown there.

http://www.shiningforumz.com/