Including user name in block-random
|
adegutis
Joined: 2004-09-10
Posts: 34 |
Posted: Wed, 2005-06-08 14:00
|
|
Can someone help me with the code necessary to include the photo owner's name in the random-block in Gallery v1.5? Thanks |
|

Posts: 271
maybe adding this thread to the random block forum rather then the customization forum will get better results ?
it was a tad further down the list then here.
Posts: 27300
moved
Dave
Posts: 27300
$owner = $album->getOwner($index); echo _("Owner:") . ' '. showOwner($owner);Posts: 34
That displays the album owner's name. Is it possible to display the Photo owner's name?
Thanks
Al
Posts: 27300
$owner=$gallery->album->getItemOwnerById($id); echo _("Owner:") . ' '. showOwner($owner);or
$owner=$gallery->album->getItemOwnerById($index); echo _("Owner:") . ' '. showOwner($owner);I hope? :oops:
Posts: 34
I finally got around to trying your suggestions but it returns:
Fatal error: Call to a member function on a non-object in
random-block.php on line 102
which is the first line of additional code.
Any ideas?
Thanks