vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   First Post on every page per-forum with attachments (https://vborg.vbsupport.ru/showthread.php?t=75311)

Delphy 01-27-2005 10:00 PM

First Post on every page per-forum with attachments
 
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?

PHP Code:

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


All times are GMT. The time now is 06:22 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00992 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete