That's not exactly what i'm looking for.
OK, i think i sorta semi solved how to do this: THE PROBLEM now is that for some reason $productid and $page have no value inside the actual product details page.
I need to somehow get the value of $productid and $page from the previous location (which is the home.tpl) into product.tpl so that my equation can work.
this is what i got so far.
what i have to do is make an if else statement using smarty's actual tags.
So have thus far.
{if ( $pimg_counter >= 0 && $pimg_counter <= 8 )
NEXT
NEXT PAGE
{else}
NEXT
NEXT PAGE
{/if}
HOWEVER i now have a NEW problem.
The problem is that once you are actually viewing the product details there is no value in either $productid or $page which i definatley need.
I'm wondering is there a tag that will get the actual variable from the url....