Ideally you should have created x amount of headinclude templates and replaced (using and IF condition and str_replace ) $headinclude with $headincludex (where x would be the defining number), you don't want to put all the headinclude code in showthread, this is beacuse the headinclude content goes in the header template, by adding it to the showthread you ar enot encapsulating it in the HEAD tags.
|