Home | Support Forums | Your Account | Gallery [2] | 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  

[RELEASE] Random Photo V2
Goto page 1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Author Message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Sat Jan 24, 2004 6:02 pm    Post subject: [RELEASE] Random Photo V2 Reply with quote

It's been tested and debugged. Get it here:
http://www.nukedgallery.net/download-file-30.html
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: [RELEASE] Random Photo V2  

Back to top
slackbladder

Moderator
Moderator


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

PostPosted: Sun Jan 25, 2004 5:20 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Yep like it!

Only problem I had (being MAC based) is the file name is too long (block-NG-RandomPhoto_functions.php) but only for my APPLICATION (GoLive) - it's OK for my server (MAC UNIX/darwin).

Also might be an idea to rename without the word 'block' at the beginning as it then appears in the 'dropdown' in blocks admin.
_________________
"The only difference between me and a madman is that I'm not mad."
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: 6261
Location: Washington Township, NJ, USA

PostPosted: Sun Jan 25, 2004 9:20 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

ahh..good point slack...done and done Smile
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
gravityarc

Novice
Novice


Joined: Aug 29, 2003
Posts: 21

PostPosted: Mon Jan 26, 2004 1:42 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

I'm having an issue with the height of the block. When I use AUTO there are some height problems. The block will take the height of the first image and text it displays, but then won't re-evaluate for further images. If I happen to get a horizontal image first, then I get a vertical one, either the text or image gets cut-off for the vertical one.

Hardcoding it is difficult too because if I do 200, then it works for most, but there tends to be a lot of blank space in horizontal images, and some text gets cut off for vertical ones. (I'm editing this in $content in block-NG-RandomPhoto.php by the way.)

Any suggestion on how to make it display horizontal and vertical pictures with varying amounts of text without cutting off anything or displaying lots of blank space?

Thanks!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Mon Jan 26, 2004 8:17 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

hmm...this is a good point (and the first time it's been raised)....i'll have to look into this and see what methods are available to dynamically resize blocks (without reloading the entire page).
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
gravityarc

Novice
Novice


Joined: Aug 29, 2003
Posts: 21

PostPosted: Mon Jan 26, 2004 10:59 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

If anyone's interested, there's a way to smooth your scrolling for when you use the RANDOM settings. In block-NG-RandomPhoto.php I changed the marquee settings to:
Code: › $content .= "<marquee loop=\"infinite\" direction=\"up\" title=\"Click here to view this picture\" behavior=\"scroll\" align=\"center\" scrollamount= \"1\" scrolldelay=\"45\" height=\"200\" onmouseover='this.stop()' onmouseout='this.start()'>";

The key changes are I changed scrollamount from 2 to 1, and scrolldelay from 60 to 45. This creates a very smooth scrolling effect. (I also changed the height from 220 to 200 so it doesn't take up quite as much room.)

The new Random Photo block is very cool!

Do you have any plans on making it so that you can choose which albums to include in the Random block (or choose which albums to exclude) rather than have it choose from all available albums?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Tue Jan 27, 2004 8:19 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

thanks for the hack Smile

as for choosing albums...maybe, as that would take quite a bit of code manipulation to add in an admin interface to allow for it...but, i'll stick it on my things to do list Smile
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Antra

Beginner
Beginner


Joined: Oct 30, 2003
Posts: 2

PostPosted: Tue Jan 27, 2004 11:42 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Keeps telling me that floatval() isn't a defined function. Where the heck is it?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Tue Jan 27, 2004 11:53 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

this question has been answered and asked in these forums before at http://www.nukedgallery.net/posts475-hi ... tval.html, but i'm feeling nice Wink so i'll answer it here, too.
you're using an oooold version of php: http://www.php.net/floatval (note that it's available for PHP >= 4.2.0).

use this syntax instead:
PHP: › <?php $foo = (float)$foo?>

_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Antra

Beginner
Beginner


Joined: Oct 30, 2003
Posts: 2

PostPosted: Tue Jan 27, 2004 10:54 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Thanks...I thought we had a fairly recent version of PHP, but I guess not :-/. Is 4.0 really that old?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6261
Location: Washington Township, NJ, USA

PostPosted: Wed Jan 28, 2004 7:53 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

very old. current version is 4.3.4 with 5.0 in beta. tell your provider to upgrade, there are LOADS of security issues w/ versions that old.
_________________
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: 6261
Location: Washington Township, NJ, USA

PostPosted: Wed Jan 28, 2004 10:57 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

dari wrote: › thanks for the hack Smile

as for choosing albums...maybe, as that would take quite a bit of code manipulation to add in an admin interface to allow for it...but, i'll stick it on my things to do list Smile


Alrighty, you can grab a testing version of a selectable random block here:
http://www.nukedgallery.net/download-file-37.html

When you log into your nuke site as admin, you will be presented with a list of your albums. Check the ones you want included, and click the "Save" button. Once you've logged out as admin, you should see only photos from your chosen albums in the block. See the demo at the demo site [nukedgallery.net]. I selected to only allow photos from the "Christmas 2001" album to be chosen.

Note that when you add new albums, or new photos to existing albums, you will have to go through the admin interface and re-select the album so that the correct number of photos is stored in the cache.

File all bugs/complaints/etc, to this thread:
http://www.nukedgallery.net/postp3841.html
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
lytspeed

Beginner
Beginner


Joined: Jul 06, 2004
Posts: 2

PostPosted: Sun Jul 11, 2004 4:00 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Warning: fopen(/home/thefaste/public_html/albums/block-random.cache): failed to open stream: Permission denied in /home/thefaste/.panel/web/portal/cms/blocks/NG-RandomPhoto_functions.php on line 221

Warning: fwrite(): supplied argument is not a valid stream resource in /home/thefaste/.panel/web/portal/cms/blocks/NG-RandomPhoto_functions.php on line 223

Warning: fclose(): supplied argument is not a valid stream resource in /home/thefaste/.panel/web/portal/cms/blocks/NG-RandomPhoto_functions.php on line 225

Fatal error: Call to undefined function: isalbumname() in /home/thefaste/.panel/web/portal/cms/blocks/NG-RandomPhoto_functions.php on line 101


These are the errors I get when I turn on the random block. I am a noob, but loaded gallery fine - gallery works nicely - latest version 1.4.3 I think. Also, runnin nuke 4.2

Any help would be appreciated!
Back to top
Offline View user's profile Send private message
valerie

Beginner
Beginner


Joined: Dec 16, 2003
Posts: 9

PostPosted: Mon Jul 26, 2004 4:44 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Wow! I love it! Works great. How hard would it be to make it scroll horizontally as a center block? I tried for a while but I couldn't figure out how to prevent the block from being as tall as the number of images I specified. In any event, thanks for such a great block.
Back to top
Offline View user's profile Send private message Visit poster's website
pokep

Beginner
Beginner


Joined: May 02, 2004
Posts: 1

PostPosted: Tue Aug 03, 2004 4:13 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Not working on 1.4.4
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Goto page 1, 2, 3, 4, 5, 6  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: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSearch Engine OptimizationWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

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