|
|
|
Re:Avatar will upload, but will not show
|
|
Date: 2008/01/30 06:37
|
By: loplo
|
Status: User
|
|
|
Karma: 1  
|
|
Fresh Joomlapolitan  | Posts: 10 |   | |
|
OK I had the same problem. There is an error in the code. Here it is what you have to do:
you have to modify some things in the cbcore.php file, as follows:
Find this:
| 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/";
|
change-it into this:
| 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/";
|
it's the / before components.
This will show up the avatar after upload, but you will notify an error on the profile page.
Make the following modification:
| Code: | $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/comprofiler/".$uimage;
|
Missing the / again.
Good luck
|
|
The topic has been locked. |
|
|
|
|
Re:Avatar will upload, but will not show
|
|
Date: 2008/01/30 13:32
|
By: mstar
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 11 |   | |
|
Thanks, this partially worked, avatar is showing and uploading just works fine, however i get another error:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/components/com_comprofiler/plugin/language/dutch/images) is not within the allowed path(s): (/home/deb5503/:/tmp:/usr/local/lib/php/) in /usr/home/deb5503/domains/mysite.nl/public_html/subdomain/components/com_comprofiler/plugin/user/
plug_cbcore/cb.core.php on line 88
|
|
The topic has been locked. |
|
|
|
|
Re:Avatar will upload, but will not show
|
|
Date: 2008/01/30 13:38
|
By: loplo
|
Status: User
|
|
|
Karma: 1  
|
|
Fresh Joomlapolitan  | Posts: 10 |   | |
|
youre welcome this looks like some file error for me. try to set the default language to english and test it. If it works, then something's wrong with your language files.
|
|
The topic has been locked. |
|
|
|
|
Re:Avatar will upload, but will not show
|
|
Date: 2008/01/30 13:56
|
By: mstar
|
Status: User
|
|
|
Karma: 0  
|
|
Fresh Joomlapolitan  | Posts: 11 |   | |
|
loplo wrote: youre welcome this looks like some file error for me. try to set the default language to english and test it. If it works, then something's wrong with your language files.You mean the joomla default language? The CB default is already english, though it tell me that is english
|
|
The topic has been locked. |
|
|