From: <dj...@us...> - 2011-12-28 03:31:07
|
Revision: 8606 http://xoops.svn.sourceforge.net/xoops/?rev=8606&view=rev Author: djculex Date: 2011-12-28 03:31:01 +0000 (Wed, 28 Dec 2011) Log Message: ----------- Fix: visitor avatar not showing correct when commenting in userprofile.php Modified Paths: -------------- XoopsModules/smallworld/trunk/templates/smallworld_userprofile_template.html XoopsModules/smallworld/trunk/userprofile.php Modified: XoopsModules/smallworld/trunk/templates/smallworld_userprofile_template.html =================================================================== --- XoopsModules/smallworld/trunk/templates/smallworld_userprofile_template.html 2011-12-28 02:13:38 UTC (rev 8605) +++ XoopsModules/smallworld/trunk/templates/smallworld_userprofile_template.html 2011-12-28 03:31:01 UTC (rev 8606) @@ -257,7 +257,7 @@ <div class="smallworld_commentupdate" style='display:none' id='smallworld_commentbox<{$post.msg_id}>'> <div class="smallworld_stcommentimg"> - <img src="<{$myavatarlink}>" class='smallworld_small_face'/> + <img src="<{$visitoravatarlink}>" class='smallworld_small_face'/> </div> <div class="smallworld_stcommenttext" > <form method="post" action=""> Modified: XoopsModules/smallworld/trunk/userprofile.php =================================================================== --- XoopsModules/smallworld/trunk/userprofile.php 2011-12-28 02:13:38 UTC (rev 8605) +++ XoopsModules/smallworld/trunk/userprofile.php 2011-12-28 03:31:01 UTC (rev 8606) @@ -89,8 +89,10 @@ // Things to do with wall $Wall = new Wall_Updates(); - $myavatar = $Wall->Gravatar($id); - $myavatarlink = smallworld_getAvatarLink($id, $myavatar); + $myavatar = $Wall->Gravatar($id); //profile owners data + $myavatarlink = smallworld_getAvatarLink($id, $myavatar); //profile owners data + $visitorAvatar = $Wall->Gravatar($yourid); + $visitorAvatarlink = smallworld_getAvatarLink($yourid, $visitorAvatar); // Follow array here $followers = $Wall->getFollowers($id); @@ -182,6 +184,8 @@ $xoopsTpl->assign('friendinvitations',$getInvitations); $xoopsTpl->assign('myavatar',$myavatar); $xoopsTpl->assign('myavatarlink',$myavatarlink); + $xoopsTpl->assign('visitoravatar',$visitorAvatar); + $xoopsTpl->assign('visitoravatarlink',$visitorAvatarlink); $xoopsTpl->assign('myusername',$username); $xoopsTpl->assign('username',$Xusername); $xoopsTpl->assign('bdaynow',$birthday_today_text); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |