Change name to username on book library reviews - Joomla! Forum - community, help and support
i post @ website can't register due issue mail.
anyhow, using book library , in reviews showing real names instead of username.
code follows -
i have tried changing 'name' 'username' doesn't work.
i've changed above to:
instead shows username of user logged in on reviews.
how can call show username of person posted it?
the component stores user id in review table -
id fk_bookid fk_userid date rating title comment published
how can review id show correct name?
i have no idea $help or way.
anyhow, using book library , in reviews showing real names instead of username.
code follows -
code: select all
<tr class="line-3">
<td class="col-2">
<?php $help = $review->getreviewfrom();
echo $help['name']; ?>
</td>
</tr>i have tried changing 'name' 'username' doesn't work.
i've changed above to:
code: select all
$user = jfactory::getuser();
echo 'user name: ' . $user->username . '<br />';instead shows username of user logged in on reviews.
how can call show username of person posted it?
the component stores user id in review table -
id fk_bookid fk_userid date rating title comment published
how can review id show correct name?
i have no idea $help or way.
can help?
Comments
Post a Comment