Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
Re:Avatar will upload, but will not show
Date: 2008/01/30 06:37 By: loplo Status: User  
Karma: 1  
Fresh Joomlapolitan

Posts: 10
graphgraph
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 == ) {                 $uimage        =    $uimagepath."pendphoto.jpg";             } elseif ( $user->avatar == '' || $user->avatar == null ) {                 $uimage        =    $uimagepath."nophoto.jpg";             }             else {                 $uimage        =    "/images/comprofiler/".$uimage;



Missing the / again.

Good luck
Click here to see the profile of this user The topic has been locked.

Re:Avatar will upload, but will not show
Date: 2008/01/30 07:55 By: nant Status: Admin  
Karma: 467  
Admin

Posts: 6232
graph
mstar wrote:
i found the problem.

CB is requesting the file from

http://mydomain.nlimages/comprofiler/gallery/redflower.gif
but it has to be fixed to :

http://mydomain.nl/slash/images/comprofiler/gallery/redflower.gif

How can i fix this?


did you move your site from somewhere else?
Nick A.
CB Core Team Member
Support CB Development and Get Detailed Documentation
Developer of Nant's Gallery plugin
CB Gallery Extensions Listing, Rate CB Gallery on Extensions Site
Developer of CB AutoWelcome Plugin
CB AutoWelcome Extensions Listing,Rate CB AutoWelcome on Extensions Site
People ignoring your call for help? Read this!
FAQ you
Joomlapolis Extensions Directory (new)- check it out!
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user The topic has been locked.

Re:Avatar will upload, but will not show
Date: 2008/01/30 13:36 By: mstar Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 11
graphgraph
nant wrote:
mstar wrote:
i found the problem.

CB is requesting the file from

http://mydomain.nlimages/comprofiler/gallery/redflower.gif
but it has to be fixed to :

http://mydomain.nl/slash/images/comprofiler/gallery/redflower.gif

How can i fix this?


did you move your site from somewhere else?
No friend, this isnt the case, both fresh installs, Joomla 1.5 and CB, the latest.
Click here to see the profile of this user 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
graphgraph
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.
Click here to see the profile of this user 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
graphgraph
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
Click here to see the profile of this user The topic has been locked.

<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC4)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC4, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers and now also to all registered joomlapolitans.

CB Login