You could've said $mumbojumbo for all the use it's doing me lol
--------------- Added [DATE]1233449174[/DATE] at [TIME]1233449174[/TIME] ---------------
Ok after a lot of googling (your name came up a lot D!) and cross posting over at vb.com, it seems that unfortunately the "
header template is parsed early in the page execution, before that information is available"
Jake suggested coding something in php. Instead Im thinking of replacing the $header call in SHOWTHREAD with a custom template depending on how many posts on the page.
Something like:
Code:
<if condition="($post[postcount]-1) % $GLOBALS[perpage] == 0">
<if condition="($GLOBALS[totalposts] - $post[postcount]) > 5">$longheader
<else />$header
</if>
</if>
What do you think?! Madness?

:erm:
Actually I've decided just to add another banner regardless of how many replies so I'm not going to bother with any of the above.
Thanks for the help - I learnt a bit anyway