PDA

View Full Version : Thread topic hack


AustinChief
14 May 2001, 07:51
I need help hacking showthread.php so that the first post in a thread is tacked to the top of EVERY page in the thread.

I can use the postbit template for now and later add a new template to distinguish the message as the "starter" for the thread.

Thanks,
Kyle

AustinChief
14 May 2001, 20:09
Any ideas on where to start with this?

I think I know where to insert the code... I just don't know how much coding is required... a push in the right direction would be appreciated.

--Kyle

AustinChief
15 May 2001, 00:18
Okay,

I have what I think is the correct code in the correct place... but I can't get it to populate with the FIRST post only the last post...

any idea how I can pull the FIRST post in a thread...

I tried

$post[postid]=$totalposts;

(I have the thread in reverse order)

... but it doesn't have any effect.

Any ideas?

--Kyle

AustinChief
15 May 2001, 01:05
OK... I realize that I suck at this.

Anybody know how to pull the first(chronologically) post out of the array $posts???


I think that is all I need now...


--Kyle

AustinChief
15 May 2001, 05:11
OK... nevermind.... I think I got it... it is ugly (very ugly) but it works... unfortunately I needed to added two completely new queries to showthread.php :(

Owell,

Kyle

Sloat
23 Aug 2001, 14:02
I would be interested in the hack.

I, too, would like to be able to "tack" the original topic post at the top of each page of the forums message display. I would also like the original topic post to stay at the top regardless of the message order (oldest->newest of vice-versa.)

Thanks.