Posted by JD on 07/07/05 05:10
I want it set if the sitethumbs exist, just don't know the proper way to do
it
"Mike Willbanks" <pencap@gmail.com> wrote in message
news:LKYye.3132$x82.2004@fe03.lga...
> JD wrote:
>> What im trying to do is something like this maybe in my profile.php file
>>
>>
>> //site thumbnail check////////////
>> $filename = "sitethumbs/".$user['login'].".jpg";
>> if (file_exists($filename)) {
>> } else {
>> $t->assign('sitethumbs', $filename);
>> }
>> /////end////////////
>
> I think you are doing it unexpectedly... you are asking for the sitethumbs
> to be set when the file does not exist? Shouldn't it be the otherway
> around?
>
>
>> then I have a file called viewprofile.html which uses the profile.php
>> with
>> smarty templates so in this file I use
>>
>>
>> {if ($sitethumbs)}
>> <img src="members/sitethumbs/thumbs/{$user.login}.jpg" border="0"
>> width="145" alt="Visit {$user.login}'s website">
>> {/if}
>>
>>
>>
>> Basicly in the template file it is always showing ($sitethumbs)
[Back to original message]
|