TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 790
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 715
  • Total: 716
  • tino

How to show the first image from thread on home page and a "Read more" button

Started by mtsandeep, August 13, 2009, 02:45:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mtsandeep

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

JPDeni

That would require custom php coding.

What do you mean "only the first image"? The first image of what?

mtsandeep

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

IchBin

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.

mtsandeep

Image in the actual topic.., i have seen such kind of portal homepage in some VB forum...
Is it difficult to do this?

JPDeni

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.

mtsandeep

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/

This website is proudly hosted on Crocweb Cloud Website Hosting.