By stefano rigazio on Wednesday, 23 April 2014
Posted in Technical Issues
Replies 4
Likes 0
Views 505
Votes 0
As you can see from the screenshot in the latest discussions form does not display the name of the user who wrote the question, why?
The person who wrote the discussion is not a registered user of joomla
Hello Stefano,

I have fix your site.
Here the fix code:

26: $name = $post->profile->getName();
27: if($post->user_id == 0){$name = $post->poster_name;}
...
41: <div class="small"><?php echo JText::sprintf( 'MOD_RECENTDISCUSSIONS_STARTED_BY' , '<a href="' . $post->profile->getLink() . '">' . $name . '</a>' ) ;?></div>

In: ...\modules\mod_recentdiscussions\tmpl\default.php

Hope this will help.
Thanks.
·
Thursday, 24 April 2014 01:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Stefano,

I am sorry but I not quite understand "latest discussions form does not display the name of the user who wrote the question".
Can you please explain more?

He can post a question eventhough he is not a user is simply because you enable public user group to be able to ask a question.

Hope this will help.
Thanks.
·
Wednesday, 23 April 2014 02:14
·
0 Likes
·
0 Votes
·
0 Comments
·
If you look at the screenshot you see the arrow on the left, to the right you see the latest discussions form but as you can see, even you in the right arrow is written:
Written by Guest and do not see the name of the user indicated by the arrow to the left
·
Wednesday, 23 April 2014 13:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Written by Guest = Scritto da Ospite
·
Wednesday, 23 April 2014 13:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post