Problem with using 1.6.1 with Community Builder avatar image

DAvatar content plugin (plg_content_davatar) lets you insert users avatars into articles and use it in different extensions.

Problem with using 1.6.1 with Community Builder avatar image

Postby prabhat_ranjan » Sun Feb 14, 2010 8:38 am

I am trying to use Davatar module with your Dbirthday module. When I enable Davatar module in that I dont seem to get the avatar image shown. I then tried to debug davatar.php module using Firebug and FirePHP. I seem to find some errors and although, I am not a very good PHP programmer, I would like to point it out. In case it helps in debugging:
Line 373 :
$params->set('avatar_url_format', JURI::base().'images/comprofiler/'.$tn.'$avatar_sig');

'$avatar_sig' is in quotes so it seems to get added as string and not its value.

I added a debug statement to verify this:

fb($params->get('avatar_url_format'),'cb:avatar_url_format',FirePHP::LOG);

Output of this is :
cb:avatar_url_format: http://localhost/nobadir/images/comprofiler/tn$avatar_sig

In fact I dont seem to get the value of avatar_sig from database too. I may be wrong here. You would know better. I added the following statement to debug:

fb($avatar_sig, 'cb : $avatar_sig', FirePHP::LOG);

I get the output to be:

cb : $avatar_sig: NULL

Please help.

Thanks,
- PR

prabhat_ranjan
 
Posts: 1
Joined: Sat Feb 13, 2010 6:28 pm

Re: Problem with using 1.6.1 with Community Builder avatar image

Postby Darkick » Mon Feb 15, 2010 5:02 am

prabhat_ranjan wrote:'$avatar_sig' is in quotes so it seems to get added as string and not its value.

It's right behavior. Problem is somewhere else.

What is your module and plugin settings?

Darkick
 
Posts: 204
Joined: Fri Sep 04, 2009 10:16 pm
Location: Russia, Ekaterinburg


Return to DAvatar

Who is online

Users browsing this forum: No registered users and 1 guest