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  

[TESTING] Selectable Album Random Block
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
SpecialEd

Novice
Novice


Joined: Mar 03, 2004
Posts: 28
Location: Alaska

PostPosted: Tue Mar 16, 2004 3:40 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message Send e-mail Visit poster's website
AdBot
   Post subject: Re: [TESTING] Selectable Album Random Block  

Back to top
inSaNE_iRIsH

Wizard
Wizard


Joined: Jun 19, 2003
Posts: 101

PostPosted: Tue Apr 27, 2004 11:48 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
inSaNE_iRIsH

Wizard
Wizard


Joined: Jun 19, 2003
Posts: 101

PostPosted: Fri May 07, 2004 3:33 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

bump?
Back to top
Offline View user's profile Send private message
Fredo

Beginner
Beginner


Joined: May 06, 2004
Posts: 5
Location: Paris, France

PostPosted: Mon May 10, 2004 9:16 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


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

PostPosted: Mon May 10, 2004 9:22 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Fredo

Beginner
Beginner


Joined: May 06, 2004
Posts: 5
Location: Paris, France

PostPosted: Mon May 10, 2004 10:35 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


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

PostPosted: Mon May 10, 2004 10:45 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Fredo

Beginner
Beginner


Joined: May 06, 2004
Posts: 5
Location: Paris, France

PostPosted: Mon May 10, 2004 10:50 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


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

PostPosted: Mon May 10, 2004 11:14 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

BUMP this back to DARI - it's his block, I'm sure he will respond shortly Smile
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Fredo

Beginner
Beginner


Joined: May 06, 2004
Posts: 5
Location: Paris, France

PostPosted: Mon May 10, 2004 11:57 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
Fredo

Beginner
Beginner


Joined: May 06, 2004
Posts: 5
Location: Paris, France

PostPosted: Tue May 11, 2004 4:32 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
ashe

Beginner
Beginner


Joined: Mar 11, 2004
Posts: 9

PostPosted: Sat May 22, 2004 2:03 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


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

PostPosted: Sat May 22, 2004 12:48 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
siege911

Beginner
Beginner


Joined: Jun 09, 2004
Posts: 13

PostPosted: Wed Jun 09, 2004 6:07 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
Offline View user's profile Send private message
slackbladder

Moderator
Moderator


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

PostPosted: Thu Jun 10, 2004 12:45 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

In the block NG-RandomPhotoSelectTest_functions.php - replace ALL references to:

isalbumname()

to:

getalbumname()
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
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 Previous  1, 2, 3, 4, 5, 6, 7  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