How to create UserAlbum controller link in J! module

pjohnson

Joined: 2009-08-09
Posts: 2
Posted: Mon, 2009-08-10 14:23

I would like to put a link on my Joomla home page that brings the user to their album to upload photos.

If the user album has been created, I have a URL that goes to the Add Items page of the user's album.

If the user album has not been created, I am trying to generate a link to the useralbum.UserAlbum controller, but I keep getting Athorization failures, because I suspect I am not getting the session authtoken set up properly.

I am using the code:

$text = $urlGenerator->generateUrl(array('controller'=>'useralbum.UserAlbum'),
						array(	'forceFullUrl'=>true,
							'forceSessionId'=>false,  // Also tried true, but no luck
							'htmlEntities'=>false ) );


Thanks,
Patrick


Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.9 cgi-fcgi
Webserver = Apache
Database = mysqli 5.0.67-userstats-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, jpegtran, NetPBM, Thumbnail, Gd, SquareThumb
Acceleration = partial/21600, partial/21600
Operating system = Linux lansky 2.6.24.5-serf-xeon-c6.1-grsec #1 SMP Tue Oct 7 06:18:04 PDT 2008 x86_64
Default theme = ebony
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
Rows in GalleryAccessMap table = 81
Rows in GalleryAccessSubscriberMap table = 326
Rows in GalleryUser table = 15
Rows in GalleryItem table = 313
Rows in GalleryAlbumItem table = 21
Rows in GalleryCacheMap table = 88