http://u.neighborrow.com/users/view/4(对不起 - 那里有错误的链接,我偶然复制了重定向)
<?php if (! empty($user['User']['avatar'])): ?>
<img src="/images/users/<?php echo $user['User']['avatar']; ?>" 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
答案 0 :(得分:2)
只是一个猜测:因为您的浏览器缓存中仍然有旧页面,或者图片由其他代码呈现。
上看不到任何Gravatar图片答案 1 :(得分:1)
缓存,CakePHP缓存,或者更可能是浏览器缓存。