Display most recent items on forum profile

Oldiesmann
Oldiesmann's picture

Joined: 2005-05-18
Posts: 151
Posted: Thu, 2007-02-08 18:45

Is there any easy way to get links to a user's 5 most recent items, so they can be displayed on the forum profile?

I've already got it set to allow you to display a link to the user's gallery profile in their forum profile, but am still getting requests to display the list itself in the forum profile.

I have figured out one possible way to do this using GalleryCoreApi::fetchAllItemsByOwnerId, but I'd rather not go that route as it's pretty complicated, and I have concerns about the impact this would have on the forum speed (at least for forums with large galleries and/or users with a lot of items).

---------------------
The Oldiesmann
SMF Project Manager
SMF+G2 Integration Project - Beta3 Now Available!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2007-02-08 19:16

the members module has something like this.. maybe you can start with that code and get something to work..

 
Oldiesmann
Oldiesmann's picture

Joined: 2005-05-18
Posts: 151
Posted: Thu, 2007-02-08 21:49

I was looking at that, but I'd pretty much have to copy the entire function from the GalleryMembersHelper class, and I'm not sure I want to do that. I did post telling them how they can add a link to the most recent items to that user's forum profile, so maybe that will work for them.

Right now my main concern is on fixing the bugs that keep popping up. Once that's done, I'll look into improving existing features and adding other new features.

---------------------
The Oldiesmann
SMF Project Manager
SMF+G2 Integration Project - Beta3 Now Available!