Ok, let me explain myself. I have a plugin that shows avatar on all pages. The plugin is:
Code:
require_once('./includes/functions_user.php');
$user_ava = fetch_avatar_url($vbulletin->userinfo['userid']);
if ($user_ava[0] == "")
$user_ava[0] = "http://www.1st-hacks.com/images/as4/avatars/user.gif";
It uses $user_ava[0] to display the avatar. So <img src="$user_ava[0]" /> Show's the user avatar.
Ok, now here it the problem/question/issue! I had modified the memberinfo template to show an avatar 160x160 dimensions using $user_ava[0]. The good news: It shows up.
- Now here comes the bad news. The avatar is showing under the profile picture and shows the avatar of the current userid (user whom is browsing right now the forum - his/her avatar). Thats ok, if he browses his/her profile (his/her avatar will show up - ok).
- But when he goes to another profile (different than her/his profile), the avatar should be of that user/profile, not her/his (the one that browsing). By default it shows the avatar of the user bowsing on all pages. Don't know if you get me.
I need a conditional to say, something like:
If the actual user is browsing his/her profile, show her/his avatar. If he browses a different profile, show the avatar of that profile/user.
P.D. Does nothing to do with this thread, but whats the conditional "php" to show to userid? I know that the template conditional is: <if condition="$bbuserinfo['userid'] == 1"></if> // shows to ID 1 // But how do you do the same in php plugin?