Posted: Wed Feb 09, 2005 1:36 pm Post subject: Re: [RELEASE] Random Photo V2
Hi,
I have PHPNuke 7.5 and Gallery 1.4.4. Tried to install the block-NG-RandomPhotoV2SelectTest, but I'm having some problems:
1. It doesn't create the block-random.cache in my album dir. I have tried to create an empty file myself.
I have replaced all isAlbumName with getAlbumName.
2. I get the following error displayed inside my Random Block:
Quote: › Warning: main(blocks/block-NG-RandomPhotoSelectTest_functions.php): failed to open stream: No such file or directory in /var/www/whacked/block-NG-AutoPhoto.php on line 6
Warning: main(): Failed opening 'blocks/block-NG-RandomPhotoSelectTest_functions.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/whacked/block-NG-AutoPhoto.php on line 6
Fatal error: Call to undefined function: get_photo() in /var/www/whacked/block-NG-AutoPhoto.php on line 18
Code: ›
/*******************************************************************/
/* Full path to your albums directory, don't forget the trailing / */
/*******************************************************************/
define(ALBUM_DIRECTORY,"/var/www/whacked/albums/");
/*******************************************************************/
/* Valid values for $selector: "DAILY", "HOURLY", "RANDOM", "AUTO" */
/* DAILY, HOURLY show a new photo each day/hour */
/* RANDOM shows a new photo with each reload of the page */
/* AUTO refreshes just the block with a new random photo */
/*******************************************************************/
$selector = "AUTO";
/*******************************************************************/
/* Number of seconds between autorefresh of block, valid only for */
/* $selector = AUTO */
/*******************************************************************/
$auto_rate = 5;
/*******************************************************************/
/* Number of photos to display, valid only for $selector = RANDOM */
/*******************************************************************/
$number_of_pix = 1;
/*******************************************************************/
/* Show photos horozontally(1) or vertically(0). Valid only for */
/* $selector = RANDOM */
/*******************************************************************/
$horozontal = 0;
/*******************************************************************/
/* Size of thumbnail. Leave at 0 to use Gallery default */
/*******************************************************************/
$scaleTo = 0;
/*******************************************************************/
/* Scrolling photos, valid only for $selector = RANDOM */
/*******************************************************************/
$scroll = 1;
/*******************************************************************/
/* STOP!! DO NOT EDIT ANYTHING BELOW THIS POINT */
/*******************************************************************/
define(CACHE_FILE, ALBUM_DIRECTORY."block-random.cache");
NG-RandomPhotoSelectTest_functions.php
Code: ›
/*******************************************************************/
/* Full path to your Gallery, don't forget the trailing / */
/*******************************************************************/
$GALLERY_BASEDIR = "/var/www/whacked/modules/gallery/";
/*******************************************************************/
/* The module name of your Gallery, default is "gallery" */
/*******************************************************************/
$GALLERY_MODULENAME = "gallery";
/*******************************************************************/
/* Time, in seconds, to refresh random photo cache. Default is */
/* 86400 (check it daily) */
/*******************************************************************/
define(CACHE_EXPIRED, 86400);
/*******************************************************************/
/* Full path to your albums directory, don't forget the trailing / */
/*******************************************************************/
define(ALBUM_DIRECTORY,"/var/www/whacked/albums/");
/*******************************************************************/
/* STOP!! DO NOT EDIT ANYTHING BELOW THIS POINT */
Posted: Thu Mar 03, 2005 4:25 pm Post subject: Re: [RELEASE] Random Photo V2
I've read through the thread installed and then re-einstalled and I keep getting this error message:
Warning: main(NG-RandomPhoto_functions.php) [function.main]: failed to create stream: No such file or directory in /home/www/ataflightcrews/nuked/blocks/block-NG-RandomPhoto.php on line 30
Fatal error: main() [function.main]: Failed opening required 'NG-RandomPhoto_functions.php' (include_path='') in /home/www/ataflightcrews/nuked/blocks/block-NG-RandomPhoto.php on line 30
Posted: Fri Mar 04, 2005 8:36 am Post subject: Re: [RELEASE] Random Photo V2
clipperpro wrote: › I've read through the thread installed and then re-einstalled and I keep getting this error message:
Warning: main(NG-RandomPhoto_functions.php) [function.main]: failed to create stream: No such file or directory in /home/www/ataflightcrews/nuked/blocks/block-NG-RandomPhoto.php on line 30
Fatal error: main() [function.main]: Failed opening required 'NG-RandomPhoto_functions.php' (include_path='') in /home/www/ataflightcrews/nuked/blocks/block-NG-RandomPhoto.php on line 30
Can anyone help me out?
Thanks!
just upload the file NG-RandomPhoto_functions.php to your blocks/ folder...
Posted: Mon May 02, 2005 1:19 pm Post subject: Re: [RELEASE] Random Photo V2
Hi, I've tried the isAlbumName to getAlbumName change. I still get this error which I got before the change . . .
"Fatal error: Call to undefined function: fs_file_exists() in /var/www/html/phpnuke/blocks/NG-RandomPhoto_functions.php on line 192"
Posted: Tue May 03, 2005 1:17 am Post subject: Re: [RELEASE] Random Photo V2
Took me awhile but I didfind it. Wasn'ta simple search tho, over 600 matches and only saw one that pertained to my error
Thanks for the help tho, I entered the locations as http://sitename.com etc when it apparenly need a different syntax, /var/www/html/phpnuke. Seems to be working right now but only getting 2 images scrolling up. I'll play with the settings and see what I can get.
Posted: Wed May 04, 2005 11:31 am Post subject: Re: [RELEASE] Random Photo V2
Quote: › If you had dropped the error into the search and choosen "all words," you would have gotten 9 responces, 8 solutions and your thread.
-drmike
I did copy and paste the error into the search altho I didn't use exact match. If the search engine sorts by most relevent it should have put the ones with all the words first insted of 15-20 down the list, after some that only had 1 or 2 words that matched. Since this apparently isn't the case I know better now, I was going by most search engin parimeters.
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
Posted: Mon May 23, 2005 6:09 pm Post subject: Re: [RELEASE] Random Photo V2
no, drmike did not start nukedgallery.net, I did. Call me a "Search Nazi" if you will, however, this is primarily a one-man site. DrMike and Kit pitch in when they have time. In order to save myself time so that I might be able to address all the forum questions, I'm a strong advocate of "search, it's been asked before".
also, the "search first" rule is in the forum rules and regs [nukedgallery.net].
Posted: Tue May 24, 2005 12:08 pm Post subject: Re: [RELEASE] Random Photo V2
Sorry, dari.
Rotten mood yesterday. Didn't need to poop in this thread about it.
I was just searching about 100 different forums yesterday and sometimes searches just don't work. When the person that knows the solution takes the time to post and simply says "search", then there is a self-defeating purpose, IMHO.
Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
Posted: Tue May 24, 2005 12:15 pm Post subject: Re: [RELEASE] Random Photo V2
yeah yeah, and they were meant to be broken....
honestly though, if you had to answer the same question dozens of times over and over again, directing the user to a search, which they should do to begin with, saves everyone time. they get an immediate answer, instead of having to wait for you to step through and diagnose their problem, and you don't chew up time retyping what's already been said.
Posted: Fri Jul 08, 2005 6:23 am Post subject: Re: [RELEASE] Random Photo V2
Hey all, I've been through this thread and done a search, I can't see any errors with this block, and I'm pretty sure I've set it up right, but when I enable the block the whole site disappears, apart from the left hand block column, which moves to the right, and the randomphoto block says "there's a problem right now with this block".
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