Thomas Varghese Thomas Varghese Thomas Varghese Thomas Varghese Thomas Maliackal

forex trading logo


Home Community ccBoard - Bugs/Security Issues Avatar view with cb profile
 Support Forum :: ccBoard - Bugs/Security Issues
Welcome Guest   [Register]  [Login]
 Subject :Avatar view with cb profile.. 2009-02-06 11:40:02 
daygum
Fresher
Joined: 2009-01-23 16:33:31
Posts: 8
Location

Hy,

I don't know if this problem was already posted.
I use ccboard with cb profile actived. If a user haven't a his avatar in cb profile in any post of this user there aren't nothing avatar. The image url is http://www.mysite.it/dir_joomla/images/comprofiler/ 

Is it possible change with  http://www.mysite.it/dir_joomla/images/comprofiler/no_avatar.png ?

Thank you for your board.
Bye from Italy.

Alberto 

IP Logged
 Subject :Re: Avatar view with cb profile.. 2009-02-06 11:54:00 
deni_hanca
Fresher
Joined: 2009-01-27 13:56:20
Posts: 2
Location

Hy.. I'm experiencing the same thing. I think it would be one of the thing commonly expected when integrating a forum to CB.

btw, I like really ccBoard Laughing 

IP Logged
 Subject :Re: Avatar view with cb profile.. 2009-02-06 13:11:46 
thomas
Admin
Joined: 2008-12-13 17:16:30
Posts: 2,554
Location: Aluva, India
 

Hi,

Right now ccBoard is not fetching the default avatar image, if it is not set by the user. This shall be fixed on the coming release.

You may modify editprofile.php for the implimenting the default avatar if it is not set.

Thanks

Thomas

 

IP Logged
Together we can make history :star:
 Subject :Re: Avatar view with cb profile.. 2009-02-08 03:10:44 
daygum
Fresher
Joined: 2009-01-23 16:33:31
Posts: 8
Location

Ok,

in my site I replaced this part of code in editprofile.php

function getComBuilder()
  {
  $query = 'SELECT a.avatar, a.avatarapproved '.  
  'FROM #__comprofiler AS a ' .
  'WHERE a.user_id = '.(int)$this->_user_id ;

  $db = &JFactory::getDBO();
  $db->setQuery($query);
  $data = ($data = $db->loadObject()) ? $data : array();
   
  if( $data->avatarapproved == 1) {
  $this->_data['avatar'] = 'images/comprofiler/' . $data->avatar;
  $this->_data['thumb'] = 'images/comprofiler/' . $data->avatar;
  }
  return true;
  }

with this code:

 function getComBuilder()
  {
  $query = 'SELECT a.avatar, a.avatarapproved '.  
  'FROM #__comprofiler AS a ' .
  'WHERE a.user_id = '.(int)$this->_user_id ;

  $db = &JFactory::getDBO();
  $db->setQuery($query);
  $data = ($data = $db->loadObject()) ? $data : array();
   
  if( $data->avatarapproved == 1) {
if(empty($data->avatar)){
  $this->_data['avatar'] = '/components/com_ccboard/assets/avatar/avatar1.png';
  $this->_data['thumb'] = '/components/com_ccboard/assets/avatar/avatar1.png';
}else{
  $this->_data['avatar'] = 'images/comprofiler/' . $data->avatar;
  $this->_data['thumb'] = 'images/comprofiler/' . $data->avatar;
  }
  }
  return true;
  }

It's work fine.

Bye from Italy 

Alberto 

IP Logged
 Subject :Re: Avatar view with cb profile.. 2009-02-08 10:44:24 
Hennepdesk
Cool
Joined: 2009-01-06 09:55:48
Posts: 62
Location
 

Thank you it works :) like a charme.

 Hennepdesk

IP Logged
 Subject :Re: Avatar view with cb profile.. 2009-03-23 10:01:12 
troidesigns
Fresher
Joined: 2009-03-23 11:26:42
Posts: 3
Location
I have the same problem, but couldnt find this file to edit.
IP Logged
 Subject :Re: Re: Avatar view with cb profile.. 2009-03-23 21:05:55 
thomas
Admin
Joined: 2008-12-13 17:16:30
Posts: 2,554
Location: Aluva, India
 

Hi,

It resides  <joomlaroot>/administrator/components/com_ccboard/models/editprofile.php

Thanks

Thomas

I have the same problem, but couldnt find this file to edit.

IP Logged
Together we can make history :star:
Page # 


Powered by ccBoard



Latest News

Latest Posts

More...


Popular Posts


Powered by Joomla!. Designed by: Joomla Template, url. Valid XHTML and CSS.

© 2008-2009 CODECLASSIC.ORG. All Rights Reserved.

) { echo