Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
First Post on every page per-forum with attachments Details »»
First Post on every page per-forum with attachments
Version: 1.00, by Delphy Delphy is offline
Developer Last Online: Oct 2010 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 01-27-2005 Last Update: Never Installs: 5
DB Changes
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-28-2005, 03:49 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sounds cool- can you add a link to the thread that this hack refers to?
Reply With Quote
  #3  
Old 01-28-2005, 03:52 PM
Delphy Delphy is offline
 
Join Date: Dec 2004
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The original "First Post on Every Page" hack is https://vborg.vbsupport.ru/showthread.php?t=71224
Reply With Quote
  #4  
Old 01-28-2005, 03:58 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool- thanks. I did a search and found it but it is always nice to have the info all in one tidy package
Reply With Quote
  #5  
Old 08-30-2005, 08:54 PM
chader144 chader144 is offline
 
Join Date: Aug 2005
Location: USA, Ohio
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03543 seconds
  • Memory Usage 2,237KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete