vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is it possible make the design of the first post different than the replies? (https://vborg.vbsupport.ru/showthread.php?t=129393)

BJv1985 10-18-2006 12:18 PM

Is it possible make the design of the first post different than the replies?
 
Is there a way to do this I couldn't find anything with the search option.

Maybe there's a way to do it with an "if" variable in the postbit template so if it's the first post it posts a different code than the code for the replies?

:ermm:

BJv1985 10-20-2006 01:28 PM

anyone?

LinksDragon 10-20-2006 03:57 PM

This is something that I would be interested in as well.

Kirk Y 10-21-2006 01:09 AM

You could try this
Code:

<if condition="$postcount == '1'">First Post Code<else />Rest of the Post's Code</if>

[email protected] vbmenu_register("postmenu_1107274", true); 10-30-2006 03:55 AM

Quote:

Originally Posted by acidburn0520
You could try this
Code:

<if condition="$postcount == '1'">First Post Code<else />Rest of the Post's Code</if>

I understand the above.. but what if I want "First Post Code" to be something like $newvariable where $newvariable is the output of a new function I've created. Where can I define $newvariable so that this works in the postbit_legacy template ?

Kirk Y 10-30-2006 04:50 PM

Use a hook at location 'postbit_'.

kansast 10-30-2006 04:55 PM

Quote:

Originally Posted by acidburn0520
Use a hook at location 'postbit_'.

Not sure if it's the same thing, but I ended up creating a 'plugin' and believe I used some postbit 'hook' before I got it to show up right.

Is there some other way to use a "hook" ?

Kansast

Kirk Y 10-30-2006 08:19 PM

Hook and Plugin are basically synonymous. A hook refers to the location in the coded file where at Plugins will be executed. The Plugin is the code to be executed at said hook.

In any event, just do what you did before - that was right.

BJv1985 11-04-2006 05:27 PM

I just noticed the replies :) Thanks it works great.


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

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.01207 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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