Keyword

Change real name to username, thank you in advance

  • Kyle Vasquez
  • Kyle Vasquez's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago - 11 years 1 month ago #117009 by Kyle Vasquez
I have it working when the item is selected but from the category view (the one with the red banner across) it still says written by and displays the full name.

Does anyone know how to change this?

I have searched and cannot find the file or the proper way to override it and its the only thing left to complete!

Example:

flavorfollow.com/component/k2/content/18/instant-tobacco-flavors

Here is the page, in which the username appears and not the actual name:

flavorfollow.com/component/k2/44/Freedom%20Juice

Thank you Thank you!

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

  • olsen
  • olsen's Avatar
  • Offline
  • Elite Member
  • Joomla and K2 Freelancer
More
11 years 1 month ago #117010 by olsen
If you want to change it on a template basis change it in the category_item.php file.

Create an override of your k2 template and change this variable:
<?php echo $this->item->author->name; ?>

to this
<?php echo $this->item->author->username; ?>

Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details

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


Powered by Kunena Forum