| Author |
Message |
racer25
Novice


Joined: Jul 22, 2004 Posts: 21
|
Posted: Tue Oct 11, 2005 7:29 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
No I didn't manually craete a cache file. Forgive me if I missed it in the README but I can't see that part at all.
How would I do that, is just a blank file and what permissions do I need etc.
Thanks in advance. |
|
| Back to top |
|
|
AdBot
|
| Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
|
|
|
| Back to top |
|
 |
racer25
Novice


Joined: Jul 22, 2004 Posts: 21
|
Posted: Tue Oct 11, 2005 7:55 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Actually got the menu up to select the blocks but now get the following error message
Error: Requested index [2] out of bounds [1]
Fatal error: Call to a member function on a non-object in /home/keller/public_html/modules/gallery/classes/Album.php on line 1250 |
|
| Back to top |
|
|
racer25
Novice


Joined: Jul 22, 2004 Posts: 21
|
Posted: Fri Oct 14, 2005 2:34 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
| Anyone ? |
|
| Back to top |
|
|
Kurse
Beginner


Joined: Sep 30, 2003 Posts: 2
|
Posted: Tue Dec 13, 2005 1:23 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
I tried this block, and it does ask me which albums I want to display, but even after the selection it repeatedly asks again. It doesnt seem to be able to save the selection.
Just a suggestion: Maybe it would be easier to make it select what you do NOT want to display, I would think the list would be smaller that way. |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Sat Dec 31, 2005 6:46 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Hi Dari,
A quick question regarding the Selectable Block. I wish to hardcode the block to select only one ALBUM to pull images from. I want to remove the part that lists the albums (if logged in as admin). I have already done it on the newest block - just can't get my head round the random one. Can you steer me in the right direction?
Cheers
Happy 2006. _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6274 Location: Washington Township, NJ, USA
|
Posted: Sat Dec 31, 2005 8:24 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
sure thing, let me catch up to the 150 posts i've missed over the week and i'll post the modification here
happy 2k6  _________________
 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6274 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Sat Dec 31, 2005 11:25 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Thx however - I will still need the block to update the amount of photo's in the album (when new ones added).
Currently I have amended the script to create a NEW unique cache file (albumname.cache) and save in to the ALBUMS folder. Works great with the 'newest' block. Just need to be able to specify the album name in the random block (currently using the selectable ver.) and for it to 'rebuild' the cache file (update amount of images in the album) periodically.
Is it something around the scanalbum function? Can the album it scans be hardcoded? _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6274 Location: Washington Township, NJ, USA
|
Posted: Tue Jan 03, 2006 2:15 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
gotcha. do you know what albums they will be? will they ever change, or will it be a static list? _________________
 |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Jan 10, 2006 4:40 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Oops - missed ya post.
Yep - static list. New albums are added though but all references are controlled via MySQL (i.e. new album is created, then it's name is entered in to a custom mysql for use in different areas).
I just need to be able to 'insert' in to your code the album I want it to pick photos from and for it to update the cache for that album (already done via unique cache files). Perhaps if a variable is defined at the top then used throughout - I will then control the variable externally.
Any of that make sense!!! _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6274 Location: Washington Township, NJ, USA
|
Posted: Tue Jan 10, 2006 5:34 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
yep, i'll get on it. _________________
 |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon Jan 23, 2006 2:41 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
bump.
Just point me in the right direction - if it's easier  _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6274 Location: Washington Township, NJ, USA
|
Posted: Wed Jan 25, 2006 8:45 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
i've been looking at it, and i'm trying to figure out the best spot in which to put an array of album names...which, in your case, would also trim out a lot of excess code (ie, you wouldn't need "scanalbums" or "savecache", etc).... _________________
 |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Sat Feb 04, 2006 9:16 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Still no luck? _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Feb 23, 2006 5:56 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Bump. Is there anyone else I can take this problem to? _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
|
|
|
|
|