Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Hans de Jong
  2. Form2Content Lite & Pro
  3. Saturday, 05 August 2017
  4.  Subscribe via email
When an article is entered by a user, I sometimes can not find who entered it, In the F2C article manager there is a reference to the name of the user, but there can be more users with the same name. Wouldn't it be better to refer to the user name, as this name is unique?
Responses (1)
Julien Accepted Answer Pending Moderation
Hi Hans,

Yes, I agree that the real name of a user is not unique, but the username is.
We use the real name of the user in this place, since usernames sometimes can be very cryptical to an administrator (like joe123 for example). When an alias is present, we show that too.
This is the way Joomla itself handles names.

Here's a small hack that you can use to show the username (please note, that on updating the component, the change is overwritten!):

Edit the file <your website root>/administrator/components/com_form2content/models/forms.php

One line #117 it says:
$query->select(' as author_name');

change that to:
$query->select(' as author_name,u.username');

Edit the file <your website root>/administrator/components/com_form2content/views/forms/tmpl/default.php

On line #191 it says:
<?php echo $this->escape($item->author_name); ?>

change that to:
<?php echo $this->escape($item->username); ?>

  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 1
  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.