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  

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

Beginner
Beginner


Joined: May 02, 2004
Posts: 8

PostPosted: Wed Feb 09, 2005 1:36 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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


You can see the module on: http://whacked.dk [whacked.dk]

Configs:
block-NG-RandomPhotoSelectTest.php
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           */



Anyone?
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Re: [RELEASE] Random Photo V2  

Back to top
magikern

Beginner
Beginner


Joined: Jan 22, 2004
Posts: 19
Location: Oslo NO

PostPosted: Tue Mar 01, 2005 10:43 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

One small request:
GT-nextgen version! Didn't find one in the forum.
Back to top
Offline View user's profile Send private message Visit poster's website
clipperpro

Beginner
Beginner


Joined: Jan 03, 2004
Posts: 1

PostPosted: Thu Mar 03, 2005 4:25 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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!
Back to top
Offline View user's profile Send private message
magikern

Beginner
Beginner


Joined: Jan 22, 2004
Posts: 19
Location: Oslo NO

PostPosted: Fri Mar 04, 2005 8:36 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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...
Back to top
Offline View user's profile Send private message Visit poster's website
FNolan

Beginner
Beginner


Joined: Apr 29, 2005
Posts: 5

PostPosted: Mon May 02, 2005 1:19 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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"

Any thoughts or ideas would be appreciated.
Back to top
Offline View user's profile Send private message Visit poster's website
drmike

Wizard
Wizard


Joined: Mar 20, 2005
Posts: 232
Location: Charlotte, NC

PostPosted: Mon May 02, 2005 7:01 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

FNolan wrote: › Any thoughts or ideas would be appreciated.


Been discussed 8 times already on this board. A simple search for the error turns up the solution.

-drmike
Back to top
Offline View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
FNolan

Beginner
Beginner


Joined: Apr 29, 2005
Posts: 5

PostPosted: Tue May 03, 2005 1:17 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Took me awhile but I didfind it. Wasn'ta simple search tho, over 600 matches and only saw one that pertained to my error Smile

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.

Again thanks for the help. Wink
Back to top
Offline View user's profile Send private message Visit poster's website
drmike

Wizard
Wizard


Joined: Mar 20, 2005
Posts: 232
Location: Charlotte, NC

PostPosted: Tue May 03, 2005 9:56 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

FNolan wrote: › Took me awhile but I didfind it. Wasn'ta simple search tho, over 600 matches and only saw one that pertained to my error Smile


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
Back to top
Offline View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
FNolan

Beginner
Beginner


Joined: Apr 29, 2005
Posts: 5

PostPosted: Wed May 04, 2005 11:31 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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.
Back to top
Offline View user's profile Send private message Visit poster's website
Tolwyn

Novice
Novice


Joined: May 07, 2005
Posts: 23

PostPosted: Mon May 23, 2005 5:59 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Hey, you know... It's YOU that wanted to start nukedgallery.net.

Maybe you should start a guide on how to use a forum?

Search Nazi's piss me off.

drmike wrote: ›
FNolan wrote: › Took me awhile but I didfind it. Wasn'ta simple search tho, over 600 matches and only saw one that pertained to my error Smile


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
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Mon May 23, 2005 6:09 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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].
Back to top
Offline View user's profile Send private message Visit poster's website
Tolwyn

Novice
Novice


Joined: May 07, 2005
Posts: 23

PostPosted: Tue May 24, 2005 12:08 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Sorry, dari.
Rotten mood yesterday. Didn't need to poop in this thread about it. Embarassed
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.
Back to top
Offline View user's profile Send private message
Tolwyn

Novice
Novice


Joined: May 07, 2005
Posts: 23

PostPosted: Tue May 24, 2005 12:09 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

PS. No one reads the rules. Wink
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Tue May 24, 2005 12:15 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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.
Back to top
Offline View user's profile Send private message Visit poster's website
artificialhero

Beginner
Beginner


Joined: Jul 07, 2005
Posts: 3

PostPosted: Fri Jul 08, 2005 6:23 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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".

Anyone got any idea what's going on?
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 Integration » Blocks View previous topicPrinter friendly versionView next topic
Goto page Previous  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: 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