vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Different postbit display for first post in thread. (https://vborg.vbsupport.ru/showthread.php?t=89207)

imported_Yoda 05-24-2004 12:50 PM

Different postbit display for first post in thread.
 
I would like to use the standard postbit for the first post in a thread, and then the legacy postbit for all posts to follow.

Is this possible? If so, can anyone help?

I think this would be great for picture posting forums.... or for anyone else that would like to make the first post stand out more than the replies.

Edit: I apologise... I posted this in the wrong spot.

Tony G 06-02-2004 10:12 AM

Moving to design and coding help. Hmm, don't know if this one is possible. Might require hacking.

Ryan Ashbrook 06-02-2004 02:17 PM

Yep, you can do it using conditionals.

In the postbit template at the very top put this:

HTML Code:

<if condition="$post['postcount'] == 1">
Then at the very end put this:

HTML Code:

<else />

Then after that grab all of the code from the postbit_legacy template and through in at the end of the postbit template then after it all put this:

HTML Code:

</if>
There ya go. :-)

Just did it myself on my forums, example: http://forums.theglassprison.net/sho...=79&styleid=36

Natch 06-03-2004 03:50 AM

Looks great Ryan - good thinking :) [I hope you are OK with others being inspired by your wisdom ;)]

Ryan Ashbrook 06-03-2004 07:05 PM

Quote:

Originally Posted by Natch
Looks great Ryan - good thinking :) [I hope you are OK with others being inspired by your wisdom ;)]

Of course. :D


All times are GMT. The time now is 11:12 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.02585 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
  • (3)bbcode_html_printable
  • (1)bbcode_quote_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