| Author |
Message |
SpecialEd
Novice


Joined: Mar 03, 2004 Posts: 28 Location: Alaska
|
Posted: Tue Mar 16, 2004 3:40 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
I see this in the block and nothing else
Quote: › Please create your cache file.
how do I create a cache file? |
|
| Back to top |
|
|
AdBot
|
| Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
|
|
|
| Back to top |
|
 |
inSaNE_iRIsH
Wizard


Joined: Jun 19, 2003 Posts: 101
|
Posted: Tue Apr 27, 2004 11:48 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
I am trying to use multiple instances of this block, each pulling from a different album...how do i need to rename/recode the three associated files to achieve this?
block-NG-RandomPhotoSelectTest.php
NG-RandomPhotoSelectTest_functions.php
block-NG-AutoPhoto.php |
|
| Back to top |
|
|
inSaNE_iRIsH
Wizard


Joined: Jun 19, 2003 Posts: 101
|
Posted: Fri May 07, 2004 3:33 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
| bump? |
|
| Back to top |
|
|
Fredo
Beginner


Joined: May 06, 2004 Posts: 5 Location: Paris, France
|
Posted: Mon May 10, 2004 9:16 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
Hi, i just tried this new random block and i get the following error message :
"ERROR: requested index [6] out of bounds [2]
Fatal error: Call to a member function on a non-object in /home/xxxx/public_html/modules/gallery/classes/Album.php on line 1064"
It's about the orientation of the picture, but i can't figure out why i get this error.
The gallery version is 1.4.3 |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon May 10, 2004 9:22 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
| Check to see if there is a file in your BLOCKS directory call block-random.cache. If there is - delete it and refresh your page that contains the block. |
|
| Back to top |
|
|
Fredo
Beginner


Joined: May 06, 2004 Posts: 5 Location: Paris, France
|
Posted: Mon May 10, 2004 10:35 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
I've already tried to delete and recreate the cache file.but i still have the same error.
However when the cache file is created, only the main albums are inserted, the sub-albums aren't. Is it normal ? |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon May 10, 2004 10:45 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
| Are you using the SELECTABLE RANDOM block or the normal RANDOM block? The Normal one should build a cache file of all the albums - the selectable one, only the ones you select(I believe!). |
|
| Back to top |
|
|
Fredo
Beginner


Joined: May 06, 2004 Posts: 5 Location: Paris, France
|
Posted: Mon May 10, 2004 10:50 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
I'm using the selectable one. It creates the cache file but only with main albums.
Explanations :
My albums hierarchy is :
-Album1
- Subalbum1.1
- Subalbum1.2
-Album2
- Subalbum2.1
- Subalbum2.2
-etc...
When i check everthing only Album1 and Album1 are mentionned in the random-block.cache file, the subalbums1.1, subalbums2.2 aren't mentioned. |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Mon May 10, 2004 11:14 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
BUMP this back to DARI - it's his block, I'm sure he will respond shortly  |
|
| Back to top |
|
|
Fredo
Beginner


Joined: May 06, 2004 Posts: 5 Location: Paris, France
|
Posted: Mon May 10, 2004 11:57 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
After a few tries, the problem is the treatment of the subalbums. The script block-NG-RandomPhotoSelectTest.php only filled the list of albums with the name of the main albums. I will try to find out how to correct this.
Fredo |
|
| Back to top |
|
|
Fredo
Beginner


Joined: May 06, 2004 Posts: 5 Location: Paris, France
|
Posted: Tue May 11, 2004 4:32 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
To make it work with subalbums, i made the following change in NG-RandomPhotoSelectTest_functions.php :
Search the function createAdminList($albumName,$depth=0)
Replace the line :
$content .= "<input type=\"checkbox\" value=\"$photoCount\"
name=\"$albumName\">";
With
$content .= "<input type=\"checkbox\" value=\"$photoCount\"
name=\"" .$nestedAlbum->fields['name'] ."\">";
That's all. |
|
| Back to top |
|
|
ashe
Beginner


Joined: Mar 11, 2004 Posts: 9
|
Posted: Sat May 22, 2004 2:03 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
| Does anyone have a working version of this block. I can not get any of it to work. All it says is Quote: › Please create your cache file .
There is no admin panel, no cache being created. The random photo block worked perfectly, but I would really like to use the select random photo block. |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Sat May 22, 2004 12:48 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
It's working fine here:
http://www.esp3.net
Face of ESP 04 - top right (selected from one album)
Try doing as it says - Create the cache file (I renamed the cache file in the block as it would clash with the normal random cache file if you are running both blocks) |
|
| Back to top |
|
|
siege911
Beginner


Joined: Jun 09, 2004 Posts: 13
|
Posted: Wed Jun 09, 2004 6:07 pm Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
I'm getting this error.
Fatal error: Call to undefined function: isalbumname() in /home/******/*****/blocks/NG-RandomPhotoSelectTest_functions.php on line 307
I replaced certain info with ******
This error causes my site to crash as well. I only see my Left Blocks and underneath is this error. Everything in the center and the right blocks disappear.
I'm also really new at this so I'm not sure what I'm doing wrong.
I'm sure all of the "required" information is correct but I still get this error. |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Jun 10, 2004 12:45 am Post subject: Re: [TESTING] Selectable Album Random Block |
|
|
In the block NG-RandomPhotoSelectTest_functions.php - replace ALL references to:
isalbumname()
to:
getalbumname() |
|
| Back to top |
|
|
|
|
|
|
|