| Author |
Message |
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Sat Jul 26, 2003 1:28 pm Post subject: LAST ALBUMS ADDED |
|
|
Hi Dari,
MOD works a treat - however it also show ALL albums no matter what the permissions.
Any ideas?
Slack |
|
| Back to top |
|
|
AdBot
|
| Post subject: LAST ALBUMS ADDED |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat Jul 26, 2003 6:01 pm Post subject: Re: LAST ALBUMS ADDED |
|
|
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  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jul 28, 2003 8:44 am Post subject: Re: LAST ALBUMS ADDED |
|
|
it was a one line fix grab the new file in the downloads section. |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Jul 28, 2003 10:14 am Post subject: Re: LAST ALBUMS ADDED |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jul 28, 2003 10:16 am Post subject: Re: LAST ALBUMS ADDED |
|
|
| what are the permissions on F? |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Jul 28, 2003 10:25 am Post subject: |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jul 28, 2003 10:32 am Post subject: |
|
|
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 |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Jul 28, 2003 10:34 am Post subject: |
|
|
Nice one - thx  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jul 28, 2003 2:37 pm Post subject: Re: LAST ALBUMS ADDED |
|
|
| ok, i updated the block. give it a go now and see how it works. |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Jul 28, 2003 3:13 pm Post subject: Re: LAST ALBUMS ADDED |
|
|
Marks out of 10:
12
Works great ! |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jul 28, 2003 7:42 pm Post subject: Re: LAST ALBUMS ADDED |
|
|
thanks for the positive review glad to hear that it's working for ya...hehe.... |
|
| Back to top |
|
|
Halcyon
Beginner


Joined: May 14, 2003 Posts: 3
|
Posted: Tue Jul 29, 2003 1:51 pm Post subject: Re: LAST ALBUMS ADDED |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Jul 29, 2003 2:16 pm Post subject: Re: LAST ALBUMS ADDED |
|
|
| hmm....interesting problem. i'll investigate. |
|
| Back to top |
|
|
Halcyon
Beginner


Joined: May 14, 2003 Posts: 3
|
Posted: Tue Jul 29, 2003 2:32 pm Post subject: Re: LAST ALBUMS ADDED |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Jul 30, 2003 12:52 pm Post subject: Re: LAST ALBUMS ADDED |
|
|
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 |
|
|
|
|
|
|
|