User Pic not showing

16 years 2 months ago #58586 by Kayletta
Replied by Kayletta on topic Re:User Pic not showing
I was having the same issue and I figured out my problem.

[code:1] else {

$uimage = "/guild/images/comprofiler/".$uimage; // I changed this line to include /guild/ which is part of my installations filepath
}

$return .= "<td align=\"center\" width=\"100%\"><img src=\"".sefRelToAbs($uimage)."\" alt=\"".$name."\" title=\"".$name."\" /></td>";

if ( $user->avatarapproved == 0 && $cbMyIsModerator ) {

$uimage = "/guild/images/comprofiler/".$user->avatar; //I changed this line to include /guild/ which is part of my installations filepath

$return .= "<td align=\"center\" width=\"100%\">"._UE_IMAGE_ADMIN_SUB.":<br /><br />"

. "<img src=\"".$uimage."\" alt=\"".$name."\" title=\"".$name."\" /></td>";[/code:1]

I'm a complete baby with code but this worked for me. It seems that it was not catching the correct path to the image (although it was uploading the image to the correct place, it was not retrieving it from there).
I'm certain that isnt the best way to get it to retrieve it from the correct filepath but it worked on my website.

Post edited by: Kayletta, at: 2008/03/10 21:28

Please Log in to join the conversation.

16 years 2 months ago #58641 by Hennepdesk
Replied by Hennepdesk on topic Re:User Pic not showing
[code:1]

line 97 old

$uimage = "images/comprofiler/".$uimage;

new

$uimage = "/images/comprofiler/".$uimage;


line 101 old

$uimage = "images/comprofiler/".$user->avatar;

new

$uimage = "/images/comprofiler/".$user->avatar;
[/code:1]

Good luck

Do you know how to grow?

Please Log in to join the conversation.

16 years 2 months ago #58851 by sebaqe
Replied by sebaqe on topic Re:User Pic not showing
Thanks previous poster, hennepdesk... worked like a charm.

Kayletta's fix is essentially the same, though instead of "/guild/" all he needed was "/" .

Please Log in to join the conversation.

16 years 2 months ago #58881 by toaster
Replied by toaster on topic Re:User Pic not showing
This fix also worked perfectly for me, but I wanted the next person to know which page to make the edit on. I had to do a text search to find that the page is plug_cbcore/cb.core.php. I'm a Joomla noobie and this forum was very helpful. thanks all.

Please Log in to join the conversation.

16 years 2 months ago #58899 by jonny5
Replied by jonny5 on topic Re:User Pic not showing
Hi,

I am also using J1.5, and I am having the same issue. My file is missing the "slash" as well and I am unsure where in the file to add it. Could someone let me know? Thanks!

Please Log in to join the conversation.

16 years 2 months ago #58903 by jonny5
Replied by jonny5 on topic Re:User Pic not showing
Hi again,
I just found the other reply with the code. I put in the "/" and it worked perfectly. Thanks!!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.369 seconds

Facebook Twitter LinkedIn