开发者

I just deleted this code- why is it still rendering the photo?

http://u.neighborrow.com/users/view/4 (sorry - had the wrong link up there, i had copied a redirect by accident)

    <?php if (! empty($user['User']['avatar'])): ?>
        <img src="/images/users/<?php echo $user['User']['ava开发者_如何学Ctar']; ?>" width="100" />
    <?php else: ?>
        <img src="http://gravatar.com/avatar/<?= md5(strtolower($user["User"]["email"])); ?>?d=identicon&s=100" border="0" alt="My Avatar! UID:<?=$user["User"]["id"] ?>" />
    <?php endif; ?>

<?php if($logged_in && $logged_in_user["User"]["id"] == $user["User"]["id"]) { ?>
    <a href="http://en.gravatar.com/">Change Gravatar</a> 
     <br><br> OR <br><br>

    <form action="/users/uploadimage" method="post" enctype="multipart/form-data" id="frmUploadAvatar" class="form">

        <div style="display: block; width: 100px; height: 25px; overflow: hidden;">
            <input type="button" value="Upload Image" />
            <input type="file" id="fBrowser" name="data[User][avatar]" style="font-size: 50px; width: 120px; opacity: 0; filter:alpha(opacity: 0);  position: relative; top: -40px;; left: -20px;" />
enter code here


Just a guess: because you still have old page in your browser cache or the picture is rendered by some other code.

PS. I can't see any Gravatar image on http://u.neighborrow.com/requests/create


Cacheing, either CakePHP cacheing or, more likely, browser cacheing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜