|
|
|
Re:Avatar will upload, but will not show
|
|
Date: 2008/02/20 00:54
|
By: lamarkarmor
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 1 |   | |
|
This problem bugged me too... i just upgraded / migrated to 1.5
heres how you fix it.
find your cb.core.php file
find the class getPortraittab
find the following line:
else { $uimage = "images/comprofiler/".$uimage; }
add a "/" in front of images and it should fix everything. like this:
else { $uimage = "/images/comprofiler/".$uimage; }
hope that helps
|
|
The administrator has disabled public write access. |
|
|
|
Re:Avatar will upload, but will not show
|
|
Date: 2008/02/25 04:44
|
By: kwf
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 2 |   | |
|
Same problem here, I'm also using Fireboard and have tried all the suggestions and so far nothing has resolved this problem. The last suggestion by Lamakarmor resulted in "Parse error: parse error, unexpected T_EXTENDS, expecting T_STRING in /var/www/vhosts/website.com/httpdocs/components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php on line 55" Thanks anyway! Hope someone finds the solution!
|
|
The administrator has disabled public write access. |
|
|
|
Re:Avatar will upload, but will not show
|
|
Date: 2008/02/25 04:58
|
By: kwf
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 2 |   | |
|
My sincere apologies to Lamarkarmor. I revisited the suggested fix and it worked apparently I keyed in an extra character somehow and that is what caused the parse error. Thanks for the fix Lamarkarmor!!
|
|
The administrator has disabled public write access. |
|
|
|
Re:Avatar will upload, but will not show
|
|
Date: 2008/03/10 01:01
|
By: shiva.xxl
|
Status:
|
|
|
Karma: 1  
|
|
Fresh Joomlapolitan  | Posts: 15 |   | |
|
Seems that could fix my problem too. But I could not find the mentioned cb.core.php. What is the directory path ?
Thanks Ber_t
Sorry! I was blind , the answer was alreay given in the last post, but I was referring to an older one.
So it's solved. The / in cb.core.php was missing!
Post edited by: shiva.xxl, at: 2008/03/10 06:50
|
|
The administrator has disabled public write access. |
|
|
|
(Solution J!1.5.1 + CB1.1 + SEF Urls) no avatar
|
|
Date: 2008/03/24 06:58
|
By: davidpitman
|
Status:
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 1 |   | |
|
Just for reference, this is a solution which worked for me using Joomla 1.5.1, with CB 1.1 with SEF urls turned on.
I didn't find that the solutions below worked for me, but this did: In the file:
/components/com_comprofiler/plugin/user/plug_cbcore/cb.core.php
replace line 99, which looks like this originally:
| Code: | $return .= "<td align=\"center\" width=\"100%\"><img src=\"".sefRelToAbs($uimage)."\" alt=\"".$name."\" title=\"".$name."\" /></td>";
|
with this:
| Code: | $return .= "<td align=\"center\" width=\"100%\"><img src=\"".sefRelToAbs("/".$uimage)."\" alt=\"".$name."\" title=\"".$name."\" /></td>";
|
NOTE the "/". inside the sefRelToAbs function argument. This has worked for me
Post edited by: davidpitman, at: 2008/03/24 06:59 David Pitman www.davidpitman.name
|
|
The administrator has disabled public write access. |
|
|
|
|
Re:[Joomla1.5.1]Avatar will upload, but will not s
|
|
Date: 2008/03/30 10:57
|
By: aerocaria
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 3 |   | |
|
Hi, here is the final solution:
Just adding a slash / in cb.core.php line 86, 87, 89 before components and slash / in line 97 before images did the trick for me. The code would look like this after adding the the slashes in line 86, 87 and 89:
| Code: |
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/";
|
and in line 97 the code would be:
| Code: |
$uimage = "/images/comprofiler/".$uimage;
|
Best of luck.
Regards
Usman.
|
|
The administrator has disabled public write access. |
|
|