| Author |
Message |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
AdBot
|
| Post subject: [RELEASE] Random Photo V2 |
|
|
|
|
|
| Back to top |
|
 |
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Sun Jan 25, 2004 5:20 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Sun Jan 25, 2004 9:20 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
ahh..good point slack...done and done  _________________
 |
|
| Back to top |
|
|
gravityarc
Novice


Joined: Aug 29, 2003 Posts: 22
|
Posted: Mon Jan 26, 2004 1:42 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Mon Jan 26, 2004 8:17 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
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 |
|
|
gravityarc
Novice


Joined: Aug 29, 2003 Posts: 22
|
Posted: Mon Jan 26, 2004 10:59 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Tue Jan 27, 2004 8:19 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
thanks for the hack
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  _________________
 |
|
| Back to top |
|
|
Antra
Beginner


Joined: Oct 30, 2003 Posts: 2
|
Posted: Tue Jan 27, 2004 11:42 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
| Keeps telling me that floatval() isn't a defined function. Where the heck is it? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
Antra
Beginner


Joined: Oct 30, 2003 Posts: 2
|
Posted: Tue Jan 27, 2004 10:54 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
| Thanks...I thought we had a fairly recent version of PHP, but I guess not :-/. Is 4.0 really that old? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Wed Jan 28, 2004 7:53 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Wed Jan 28, 2004 10:57 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
dari wrote: › thanks for the hack
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 
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 |
|
|
lytspeed
Beginner


Joined: Jul 06, 2004 Posts: 2
|
Posted: Sun Jul 11, 2004 4:00 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
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 |
|
|
valerie
Beginner


Joined: Dec 16, 2003 Posts: 9
|
Posted: Mon Jul 26, 2004 4:44 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
| 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 |
|
|
pokep
Beginner


Joined: May 02, 2004 Posts: 1
|
Posted: Tue Aug 03, 2004 4:13 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
| Not working on 1.4.4 |
|
| Back to top |
|
|
|
|
|
|
|