Keyword

User Alias shown just sometimes

  • Dragma
  • Dragma's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago - 11 years 6 months ago #111870 by Dragma
User Alias shown just sometimes was created by Dragma
Hi,

I don't know why, by the items listing in the home page shows on the modules the name of the user that has written the item. And in the category listing and the full item page it shows the Autor Alias (preferable) in case there is one.

I want it to show always the Alias, if there is, also at the home page like on the other sections. Where should I configure this?


I have found more or less the solution, but I don't know how to implement it !

this is the code in mod_jxtc_k2_contentwall/tmpl/default_parse.php :
$userid = $item->created_by;

And I need it to be like this :
<?php if(empty($this->item->created_by_alias)): ?>
<?php else: ?>
<?php echo $this->item->author->name; ?>
<?php endif; ?>

Does anyone know? Thanks!

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


Powered by Kunena Forum