UBB.Dev
Posted By: WC Avatar Question - 10/28/2002 8:40 AM
Not upgrading to 6.3.1.1 just yet LK tipsy

I took the following code from
the SWF and External Avatar hacks at Qasic.net
and applied it to public_topic_page.pl

I can get to work for either images or swf, but not both. What I want to do is have it detect the extension of the files provided and if it ends in .swf render the swf portion of code and if its an image (gif jpg) render the image portion of the code. Anyone know how I go about doing this ? I'm thinking something along the lines of if ($user_profile[20] =~.swf) ?
© UBB.Developers