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
racer25

Novice
Novice


Joined: Jul 22, 2004
Posts: 21

PostPosted: Tue Oct 11, 2005 7:29 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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

Back to top
racer25

Novice
Novice


Joined: Jul 22, 2004
Posts: 21

PostPosted: Tue Oct 11, 2005 7:55 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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

Novice
Novice


Joined: Jul 22, 2004
Posts: 21

PostPosted: Fri Oct 14, 2005 2:34 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

Anyone ?
Back to top
Offline View user's profile Send private message
Kurse

Beginner
Beginner


Joined: Sep 30, 2003
Posts: 2

PostPosted: Tue Dec 13, 2005 1:23 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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

Moderator
Moderator


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

PostPosted: Sat Dec 31, 2005 6:46 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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.
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: 6318
Location: Washington Township, NJ, USA

PostPosted: Sat Dec 31, 2005 8:24 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

sure thing, let me catch up to the 150 posts i've missed over the week and i'll post the modification here Smile

happy 2k6 Smile
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: 6318
Location: Washington Township, NJ, USA

PostPosted: Sat Dec 31, 2005 9:12 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

just create a cache file (block-random.cache) in your albums directory (rename it if you want to use another name to resolve conflicts, but make sure you fix the "define" statements in the block files) and add this to it:
Code: › <album_name>/<number_of_photos_in_album>

note that it's the name of the album, not the title (ie, christmaspix2005). and don't forget the slash....
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: Sat Dec 31, 2005 11:25 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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?
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: 6318
Location: Washington Township, NJ, USA

PostPosted: Tue Jan 03, 2006 2:15 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

gotcha. do you know what albums they will be? will they ever change, or will it be a static list?
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: Tue Jan 10, 2006 4:40 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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!!!
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: 6318
Location: Washington Township, NJ, USA

PostPosted: Tue Jan 10, 2006 5:34 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

yep, i'll get on it.
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 Jan 23, 2006 2:41 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

bump.

Just point me in the right direction - if it's easier Smile
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: 6318
Location: Washington Township, NJ, USA

PostPosted: Wed Jan 25, 2006 8:45 am    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

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
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: Sat Feb 04, 2006 9:16 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

Still no luck?
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
slackbladder

Moderator
Moderator


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

PostPosted: Thu Feb 23, 2006 5:56 pm    Post subject: Re: [TESTING] Selectable Album Random Block Reply with quote

Bump. Is there anyone else I can take this problem to?
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 IndiaWeb Design MelbournePhoenix SEOPhoenix Web MarketingSEOflorida web design companyScottsdale Interior Designweb marketing servicesScottsdale SEOAsked Last NightSEO ServicesSEO IndiaWeb Development IndiaPHP Web Development IndiaWeb DirectoryNew York Yellow Pages

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