PDA

View Full Version : First Post on every page per-forum with attachments


Delphy
01-27-2005, 10:00 PM
Hi All,

After reading the First post on every page thread, and wanting to also have attachments showing, I wrote a small but effective alternative solution. Since it's not based on any other work and is seperate from the existing one by anhtuancool I've decided to release it seperately.

Features:
- Set, on a per-forum basis, to show the first post on every page.
- Can be used with legacy or normal postbits
- Shows attachments and all other details
- Looks just like a normal post

Known issues:
- The post count is off on page 2 or beyond, but it still displays all the posts correctly

To install:
- See attachment

Notes:
- The hack as presented currently looks exactly like a normal post, so can be hard to differentiate otherwise. You can use conditionals to do specific templates based on different looks. See step 5 in the attachment for an example.
- Totally new code, not based on anything else :)

Comments/Questions - post here.

Regards,
Delphy

yoyoyoyo
01-28-2005, 03:49 PM
sounds cool- can you add a link to the thread that this hack refers to?

Delphy
01-28-2005, 03:52 PM
The original "First Post on Every Page" hack is https://vborg.vbsupport.ru/showthread.php?t=71224

yoyoyoyo
01-28-2005, 03:58 PM
cool- thanks. I did a search and found it but it is always nice to have the info all in one tidy package :)

chader144
08-30-2005, 08:54 PM
Ok I did all of the php edits but I need some help with the postbit. I m using 3.0.8. I dont know where to put the following in the postbit template?

<if condition="$post['postcount'] == 1 AND $forum['showfirstpost'] == 1" >
// Modified first post goes here
<else />
// Normal postbit goes here
</if>

I am also getting an error on the conditional statement when I try to save the template with the above code

Please Help...