By Jordan Weinstein on Thursday, 10 November 2016
Posted in Technical Issues
Replies 12
Likes 0
Views 518
Votes 0
When logging in to a Joomla article with 'registered' ACL, a fatal error occurs after login completes and redirection to the Jooml article is attempted.

This is related to the EasySocial Content plugin linking the author to his ES profile. When disabling plugin, all is fine. It only occurred after updating ES 2.0.2 to 2.0.3

If fix is in order please provide here. Access provided in Additional Info
It's my bad, I was refactoring the content plugin but entirely forgot that the params are being retrieved from EasySocial apps over plugin. I have already fixed this internally and we should expect a new 2.0.4 release soon.

This is one of the reasons why we should de-couple all plugins and modules instead of including it in the extension as we now need to rebuild even if there is a change on the plugin.

Download the attached file and upload them into /plugins/content/easysocial/ and that should do the trick.
·
Friday, 11 November 2016 00:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Got it it, thanks Mark.

If it was decoupled from the component how would update notifications and updates occur for the plugin?

Jordan
·
Friday, 11 November 2016 00:37
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Jordan. The "App Store" doesn't handle plugin installers right now. It only supports apps and fields. We are going to improve this to support installation of plugins, modules and templates as well in the near future.
·
Friday, 11 November 2016 00:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Awesome.

Finally, would it be possible to handle linking the the author name to his ES profile from a com_content category list or blog layout using the ES content plugin?

Jordan
·
Friday, 11 November 2016 00:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, if my memory serves me correctly, we actually tried to do this with the content plugin but it was hitting too many conflicts especially with 3rd party plugins who also tries to alter the author name. This was one of the reasons we took it off I believe.
·
Friday, 11 November 2016 01:30
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem. I might try this with a template override. Hoping I don't break anything
·
Friday, 11 November 2016 01:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Should be pretty easy, assuming that the content plugin for EasySocial is enabled (because it will render the library already) this is the codes to generate a user's permalink,

[gist]
<a href="<?php echo ES::user($article->created_by)->getPermalink();?>"><?php echo ES::user($article->created_by)->getName();?></a>
[/gist]

Something a long that line would work, try it. Coding is fun =)))
·
Friday, 11 November 2016 02:17
·
0 Likes
·
0 Votes
·
0 Comments
·
That worked Mark!

All except for when there is an author alias used - instead it shows the link for the actual author. Is there way to show the author link only in the event that an alias is not used (of course there will be no profile for an author alias) and show simply the name with no link when an alias is used?

Jordan
·
Friday, 11 November 2016 04:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually Mark, I did it. It's very useful

In the author block for the category list, I replace the entire <td> with:


<?php if ($this->params->get('list_show_author', 1)) : ?>

<td <?php echo $headerAuthor; ?> class="list-author">
<?php if (!empty($article->created_by_alias)) : ?>
<?php $author = $article->author ?>
<?php $author = ($article->created_by_alias ? $article->created_by_alias : $author);?>
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>

<?php else: ?>
<a href="<?php echo ES::user($article->created_by)->getPermalink();?>"><?php echo ES::user($article->created_by)->getName();?></a>

<?php endif; ?>
</td>
<?php endif; ?>
·
Friday, 11 November 2016 04:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Congrats, yep it should be an easy peasy job
·
Friday, 11 November 2016 08:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post