11-25-2000, 04:26 AM
Is there a way to write PHP code within a template?
I would like to execute a javascript animiation when a user's postcount is equal to (or is a multiple of) 100 posts.
<? if ($userpostcount==100){
do this;
?>
But it doesn't work. I'm wondering if it's dute to me being green in PHP or if the templates don't allow for coding within. I tested with <? if (1==1) {echo ("hello");}?> and it didn't work.
Is there a way to accomplish this within a template?
TIA!
I would like to execute a javascript animiation when a user's postcount is equal to (or is a multiple of) 100 posts.
<? if ($userpostcount==100){
do this;
?>
But it doesn't work. I'm wondering if it's dute to me being green in PHP or if the templates don't allow for coding within. I tested with <? if (1==1) {echo ("hello");}?> and it didn't work.
Is there a way to accomplish this within a template?
TIA!