Related Items author bug, translation, page assignament

There are some issue I was hoping to get an answer for:

1. The name of the author is not showing up. We have over 500 articles and they all have authors. Please send me the fix, I am sure I can implement it or update the module, that would be great.

2. If published on all pages the module is empty on a blog layout page, but if unpublished from the blog layout page it also does not show up on the article pages of that blog.

3. Is there a French translation?
9 years 2 weeks ago #1 by Marek

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
Hi,

1. The name of the author is not showing up. We have over 500 articles and they all have authors. Please send me the fix, I am sure I can implement it or update the module, that would be great.

Related item extended actually find the author alias name not the author name. Please try this workaround and tell me whether it works or not.
Please open this file with your favorite php editor :
/modules/mod_relateditems_xtd/helper.php

at lines 106 you will see this page 106 :
$db->quoteName('c.created_by_alias'),
change that to
$db->quoteName('c.created_by'),

then at lines 197, you will see this code :
$item->author = $item->created_by_alias;

change that to
$item->author = JFactory::getUser($item->created_by)->get('name');

2. If published on all pages the module is empty on a blog layout page, but if unpublished from the blog layout page it also does not show up on the article pages of that blog.

I'm not really sure about what you are mentioned but the module will only display related items on a article page

3. Is there a French translation?

you can translate this file /language/en-GB/en-GB.mod_related_items.ini or make your own lang file in here /language/fr-FR/fr-FR.mod_related_items.ini
9 years 1 week ago #2 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Thank you for the quick reply!

I have made the changes - 1 and 3 worked like a charm. For the language files it was of course fr-FR.mod_related_items_xtd.ini

About publishing the module. If I don't publish the module on my category page blog layout the module does not show up on individual article pages. If I publish the module on the category blog layout it shows up on individual pages with related items, but it is empty on the category blog layout page which does not look very well.
9 years 1 week ago #3 by Marek

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5310) Offline
Can you share your website url? So I can take a look?
9 years 1 week ago #4 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum