|
|
| Gallery2 Username instead of Real name |
|
|
|
| Written by Bart Dorlandt |
| Tuesday, 29 April 2008 20:55 |
|
I make use of the gallery2 integration in Joomla. Al my components and modules use the username instead of the real name to link to them or to show them. I also wanted this with gallery2 for my user albums and for the image block. Here is the way to do it. Open your favorite text editor and go to the following files (located from your gallery2 folder): (Please note, this change will change all your gallery instances)
Useralbum/modules/useralbum/classes/UserAlbumHelper.class
/* Create album.. */ change it to:
/* Create album.. */ Imageblock/modules/imageblock/templates/ImageBlock.tpl
{g->text text="Owner: %s" arg1=$block.owner.fullName|default:$block.owner.userName} change it to: {g->text text="Owner: %s" arg1=$block.owner.userName|default:$block.owner.userName} Core (needed for Imageblock)/modules/core/templates/blocks/ItemInfo.tpl {g->text text="Owner: %s" arg1=$item.owner.fullName|default:$item.owner.userName} change it to: {g->text text="Owner: %s" arg1=$item.owner.userName|default:$item.owner.userName}
See an example on my other website: www.capoeirahilversum.nl |
| Last Updated on Sunday, 13 July 2008 16:40 |
| Related items: |
|---|
|


