JomSocial Integration

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

Re: JomSocial Integration

Postby Darkick » Tue Mar 23, 2010 6:55 am

Ok. Upgrade DAvatar plugin (I have just released version 1.7.1) and try attached superglogger file.
Attachments
jw_superblogger.davatar.zip
jw_superblogger.php with DAvatar integration
(5.53 KiB) Downloaded 25 times

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

Re: JomSocial Integration

Postby dimelotodo » Tue Mar 23, 2010 9:51 am

Hi darkick,

I tried your suggestions but as you can see in the link it hasn't worked. I also tried the old .php file with the new plugin but it is the same as before.

I really really appreciate your help and if it is too much for you to take on, no worries, i can look for another solution. Even still i will write a review on JED for you

http://dimelotodo.net/index.php?option=com_content&view=article&id=20170:ferrer-se-estrena-en-mataro-mundo-deportivo-el-mundo-deportivo&catid=41:deportes&Itemid=159

dimelotodo
 
Posts: 7
Joined: Mon Mar 22, 2010 8:49 am

Re: JomSocial Integration

Postby Darkick » Tue Mar 23, 2010 11:08 am

strange, it's almost works.
If I'll could have access to the site, think it'll be solved.

P.S.: did you replace jw_superblogger.php? Exactly?

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

Re: JomSocial Integration

Postby dimelotodo » Tue Mar 23, 2010 12:13 pm

i replaced it exactly with the one you gave me.

what type of access do you need?

dimelotodo
 
Posts: 7
Joined: Mon Mar 22, 2010 8:49 am

Re: JomSocial Integration

Postby Darkick » Tue Mar 23, 2010 1:00 pm

Best way: Joomla! Administrator group and ftp-access.
But at first, only Joomla user in Administrator group to try. If have a wish — PM me or mail to darkick@darkick.ru

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

JoomlaWorks SuperBlogger integration

Postby Darkick » Tue Mar 23, 2010 6:10 pm

Seems right solution was found!

In jw_superblogger.php file about line 206 replace standard part of code with this one:
Code: Select all
            // Author email & avatar
            if($articleAuthorAvatar || $articleAuthorLatest) {
                JPluginHelper::importPlugin('content', 'davatar');
                $dispatcher = &JDispatcher::getInstance();
                
                $queryAuthor 
= 'SELECT id,email FROM `#__users` WHERE name="'.$row->author.'" LIMIT 1';
                $db->setQuery( $queryAuthor );
                $queryAuthor = $db->loadObjectList();
                
                $davatar 
= '{davatar id='.$queryAuthor[0]->id.'|avatar_format=$avatar_url|avatar_format_required=1|profilelink_avatar=0}';
                $dispatcher->trigger('onPrepareContentAvatars', array(&$davatar));   
                $output
->authorAvatarURL = $davatar;
                
                $output
->authorEmail = $queryAuthor[0]->email;
            }
 


Modified file attached.
Attachments
jw_superblogger.davatar.zip
jw_superblogger.php with DAvatar integration
(5.44 KiB) Downloaded 26 times

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

Previous

Return to DAvatar

Who is online

Users browsing this forum: No registered users and 1 guest

cron