The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I would like to use a different postbit template for the first post only depending on prefix. In my case, I have news that I would like to display differently in the first post. All news threads use the prefix 'news'.
Is there a way I could do this with a conditional in postbit? --------------- Added [DATE]1261501959[/DATE] at [TIME]1261501959[/TIME] --------------- I actually found a slightly simpler solution. I added an alternate layout to the postbit and can switch between the two using this conditional: Code:
<if condition="THIS_SCRIPT == 'showthread' AND $post[postid] == $GLOBALS['qrfirstpostid'] AND $thread['prefixid'] == news"> |
#2
|
|||
|
|||
![]()
So does it work? Screenshot?
|
#3
|
||||
|
||||
![]()
It's working great!
Here's an example of a news thread: http://cellphoneforums.net/att/t3063...mmercials.html Here's a regular thread: http://cellphoneforums.net/lg-dare/t...s-my-dare.html The template used in the news threads is a modified version of what is available for the article forum hack, which I also use here: http://cellphoneforums.net/cell-phone-reviews/ |
#4
|
|||
|
|||
![]()
Hi! could you give an example of what your postbit looks like right now?
having some problems integrating the alternative postbit.. |
#5
|
||||
|
||||
![]()
There's links above that illustrate news and regular postbits
|
#6
|
|||
|
|||
![]()
Hi,
Thank you for your fast reply. Indeed there is, but that does not really help me with the postbit thing. I don't need your exact postbit codings, just wondering about the if /else statement inside the postbit template. Understand you don't feel like sharing your whole postbit ![]() |
#7
|
||||
|
||||
![]()
Oh okay, I see what you mean...
Here's roughly how I have it laid out: Code:
<if condition="THIS_SCRIPT == 'showthread' AND $post[postid] == $GLOBALS['qrfirstpostid'] AND $thread['prefixid'] == news"> MODIFIED POSTBIT <else /> EXISTING POSTBIT </if> |
#8
|
|||
|
|||
![]()
Looks very nice! Good work..Release how to do it in the 3.8 temp mods forum
![]() |
#9
|
||||
|
||||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|