Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

User Albums - slight problem

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
Dauthus

Novice
Novice


Joined: May 28, 2003
Posts: 22

PostPosted: Fri Sep 02, 2005 12:10 am    Post subject: User Albums - slight problem Reply with quote

I have installed the User Albums module for Gallery2. The only problem I have is when the module creates the album it uses the user's real name, not their Username. For example, instead of naming my album Dauthus, it names it David Taylor, my real name. The same with the other users. Any way to fix this so it creates the album with the Username?
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: User Albums - slight problem  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Fri Sep 02, 2005 6:54 am    Post subject: Re: User Albums - slight problem Reply with quote

this is a good point, i'll raise it with the devs, though i think it's intentional...
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Sat Sep 03, 2005 6:54 am    Post subject: Re: User Albums - slight problem Reply with quote

I've been told it's intentional.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Dauthus

Novice
Novice


Joined: May 28, 2003
Posts: 22

PostPosted: Sat Sep 03, 2005 11:27 pm    Post subject: Re: User Albums - slight problem Reply with quote

Ok, so how do I make it unintentional? In other words, create the album with the Username instead? The directory is created using the username, just not the album name.
Back to top
Offline View user's profile Send private message
joe7

User
User


Joined: Apr 21, 2004
Posts: 39

PostPosted: Sun Sep 04, 2005 7:56 am    Post subject: Re: User Albums - slight problem Reply with quote

So..
here is the answer Dmolavi, right from #gallery (if You would wait some more secs..) Wink

look for
/modules/useralbum/classes/UserAlbumHelper.class

search and change this:
Code: ›
   /* Create album.. */
        $albumTitle = trim($user->getFullName());
        if (empty($albumTitle)) {
            $albumTitle = $user->getUserName();
        }


into this:
Code: ›
   /* Create album.. */
        $albumTitle = trim($user->getUserName());
        if (empty($albumTitle)) {
            $albumTitle = $user->getUserName();
        }


NOT tested! (but it should do the trick..Smile
Have fun Smile
Back to top
Offline View user's profile Send private message Visit poster's website
Dauthus

Novice
Novice


Joined: May 28, 2003
Posts: 22

PostPosted: Sun Sep 04, 2005 4:06 pm    Post subject: Re: User Albums - slight problem Reply with quote

Thanks joe7. I have made the code changes and will let you know how this works.

I don't understand this though:

Quote: › here is the answer Dmolavi, right from #gallery (if You would wait some more secs..)


Was that directed to me? If it was, I don't understand what exactly you are saying.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Tue Sep 06, 2005 6:33 am    Post subject: Re: User Albums - slight problem Reply with quote

heh..no, that was to me...i'm a moderator in the #gallery IRC channel. but, since i have a rather hectic "real life" (new baby on the way in 4 weeks), i can't hang out there as often as i'd like, and when i'm in there, i sometimes have to make unannounced departures Smile

thanks Joe7 Smile
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia