User Pic not showing

16 years 3 months ago #56842 by danisgood
User Pic not showing was created by danisgood
Hi, the user pic is showing in the login module, but not in the actual profile, i have checked and it is the community builder profile, and i dont have any other plugin's installed. Can someone help me please

From,
Danny

As you can see its saying the users username instead.


EDIT
it wont let me upload the picture but instead of the picture it shows the username

Post edited by: danisgood, at: 2008/02/16 00:36
Attachments:

Please Log in to join the conversation.

16 years 3 months ago #56844 by danisgood
Replied by danisgood on topic Re:User Pic not showing
Ok, when i right click on the username it shows the right link but it is missing the / after the domain, its saying exampledomain.comimages/com...

Please Log in to join the conversation.

16 years 3 months ago #56845 by danisgood
Replied by danisgood on topic Re:User Pic not showing
I fixed it myself, all i did is add a / in

l/components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php

Please Log in to join the conversation.

16 years 2 months ago #57760 by jes2ejames
Replied by jes2ejames on topic Re:User Pic not showing
I am having the same issue. I am running J 1.5 . The avatar will show in the login but not on the profile page. Hmm??? How exactly did you fix it? I am a newbie and I am unsure when in the file to add the slash. Thanks

Post edited by: jes2ejames, at: 2008/02/28 06:58

Please Log in to join the conversation.

16 years 2 months ago #57802 by danisgood
Replied by danisgood on topic Re:User Pic not showing
in the file i said below, then find this line, i cannot find it myself, but this is where the code for the picture goes, between lines 74 and 114, here is my code, you might be able to spot it.

[code:1] // Display Avatar/Image:
$return = "";
if ( $ueConfig == '1' ) {

$cbMyIsModerator = isModerator( $my->id );
if ( $params->get( 'portrait_descrPos', 'above' ) == "above" ) {
$return .= $this->_writeTabDescription( $tab, $user, 'cbPortraitDescription' );
}

$name = htmlspecialchars(getNameFormat($user->name,$user->username,$ueConfig));
$return .= "\n\t\t\t\t<table cellpadding=\"5\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr>";
$uimage = $user->avatar;
if ( file_exists( "components/com_comprofiler/plugin/language/".$mosConfig_lang."/images" ) ) {
$uimagepath = "components/com_comprofiler/plugin/language/".$mosConfig_lang."/images/";
} else {
$uimagepath = "components/com_comprofiler/plugin/language/default_language/images/";
}
if ( $user->avatarapproved == 0 ) {
$uimage = $uimagepath."pendphoto.jpg";
} elseif ( $user->avatar == '' || $user->avatar == null ) {
$uimage = $uimagepath."nophoto.jpg";
}
else {
$uimage = "images/comprofcoiler/".$uimage;
}
$return .= "<td align=\"center\" width=\"100%\"><img src=\"".sefRelToAbs($uimage)."\" alt=\"".$name."\" title=\"".$name."\" /></td>";
if ( $user->avatarapproved == 0 && $cbMyIsModerator ) {
$uimage = "images/comprofiler/".$user->avatar;
$return .= "<td align=\"center\" width=\"100%\">"._UE_IMAGE_ADMIN_SUB.":<br /><br />"
. "<img src=\"".$uimage."\" alt=\"".$name."\" title=\"".$name."\" /></td>";
}
$return .= "</tr></table>";

if ( $params->get( 'portrait_descrPos', 'above' ) == "below" ) {
$return .= $this->_writeTabDescription( $tab, $user, 'cbPortraitDescription' );
}

}
return $return;
}
} // end class getPortraitTab[/code:1]

Please Log in to join the conversation.

16 years 2 months ago #58135 by dork313
Replied by dork313 on topic Re:User Pic not showing
hmmm, I tried what you said but I'm still not seeing the image. It looks exactly as it did before I edited the file. Any other sollutions?

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.203 seconds

Facebook Twitter LinkedIn