PDA

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


Delphy
28 Jan 2005, 17:41
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
28 Jan 2005, 17:49
sounds cool- can you add a link to the thread that this hack refers to?

Delphy
28 Jan 2005, 17:52
The original "First Post on Every Page" hack is http://www.vbulletin.org/forum/showthread.php?t=71224

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

chader144
30 Aug 2005, 22:54
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?



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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

Please Help...