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  

LAST ALBUMS ADDED
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Sat Jul 26, 2003 1:28 pm    Post subject: LAST ALBUMS ADDED Reply with quote

Hi Dari,

MOD works a treat - however it also show ALL albums no matter what the permissions.

Any ideas?

Slack
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
AdBot
   Post subject: LAST ALBUMS ADDED  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Sat Jul 26, 2003 6:01 pm    Post subject: Re: LAST ALBUMS ADDED Reply with quote

ah, i'll have to add a permission check to it. it'll get done sometime this weekend or monday, if it's slow at work Wink
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: 6287
Location: Washington Township, NJ, USA

PostPosted: Mon Jul 28, 2003 8:44 am    Post subject: Re: LAST ALBUMS ADDED Reply with quote

it was a one line fix Smile grab the new file in the downloads section.
Back to top
Offline View user's profile Send private message Visit poster's website
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Jul 28, 2003 10:14 am    Post subject: Re: LAST ALBUMS ADDED Reply with quote

Confused

Got a slight problem with the code.

Any albums that are stopped because of permissions ARE excluded from being shown - however it then only shows 4 albums, instead of 5.

So:-

Album A = ALL
Album B = MEMBERS ONLY
Album C = ALL
Album D = ALL
Album E = ALL

MEMBERS see A,B,C,D,E

ANON see A,C,D,E but not F (so making 5 albums)
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


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

PostPosted: Mon Jul 28, 2003 10:16 am    Post subject: Re: LAST ALBUMS ADDED Reply with quote

what are the permissions on F?
Back to top
Offline View user's profile Send private message Visit poster's website
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Jul 28, 2003 10:25 am    Post subject: Reply with quote

All are set to ALL VISITORS (no permissions) except ALBUM B.

Was this:

if($gallery->user->canReadAlbum($currentAlbum)) {

the only change in the original code?
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


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

PostPosted: Mon Jul 28, 2003 10:32 am    Post subject: Reply with quote

yep, that's the only change.

ah, i know why now...i have the check in the wrong place. right now, the logic is like this:

scan the albums and find the 5 newest, then display the ones that users have permissions for.

it should be:

scan the albums that users have permissions for and display the 5 latest.

i'll post a fix later (might not be till tomorrow).
Back to top
Offline View user's profile Send private message Visit poster's website
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Jul 28, 2003 10:34 am    Post subject: Reply with quote

Nice one - thx Very Happy
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


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

PostPosted: Mon Jul 28, 2003 2:37 pm    Post subject: Re: LAST ALBUMS ADDED Reply with quote

ok, i updated the block. give it a go now and see how it works.
Back to top
Offline View user's profile Send private message Visit poster's website
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Mon Jul 28, 2003 3:13 pm    Post subject: Re: LAST ALBUMS ADDED Reply with quote

Marks out of 10:

12

Very Happy Works great !
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


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

PostPosted: Mon Jul 28, 2003 7:42 pm    Post subject: Re: LAST ALBUMS ADDED Reply with quote

thanks for the positive review Very Happy glad to hear that it's working for ya...hehe....
Back to top
Offline View user's profile Send private message Visit poster's website
Halcyon

Beginner
Beginner


Joined: May 14, 2003
Posts: 3

PostPosted: Tue Jul 29, 2003 1:51 pm    Post subject: Re: LAST ALBUMS ADDED Reply with quote

I am having a strange problem where the New Albums block will only show Albums that have Everybody as permission. It won't show any of the other albums that have the permission set as Logedin.

This is the latest download, and I am logged in and can see all albums when I go directly into the Gallery. Just can't get them to show in the New Albums block.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Tue Jul 29, 2003 2:16 pm    Post subject: Re: LAST ALBUMS ADDED Reply with quote

hmm....interesting problem. i'll investigate.
Back to top
Offline View user's profile Send private message Visit poster's website
Halcyon

Beginner
Beginner


Joined: May 14, 2003
Posts: 3

PostPosted: Tue Jul 29, 2003 2:32 pm    Post subject: Re: LAST ALBUMS ADDED Reply with quote

Thanks dari.

Another odd thing I noticed is that when I put the New Album block in the Center Up position, all the Topic Icons for the news stories no longer show up, I just get a red x.

In any other position, the icons show fine.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Wed Jul 30, 2003 12:52 pm    Post subject: Re: LAST ALBUMS ADDED Reply with quote

Halcyon wrote: › I am having a strange problem where the New Albums block will only show Albums that have Everybody as permission. It won't show any of the other albums that have the permission set as Logedin.

This is the latest download, and I am logged in and can see all albums when I go directly into the Gallery. Just can't get them to show in the New Albums block.


i'm 99.9999% sure i've got it fixed. i'll toss up a new download in a couple of minutes.
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 » Blocks View previous topicPrinter friendly versionView next topic
Goto page 1, 2  Next

 
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: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

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