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  

block-NG-RandomPhoto.php problem!!!

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
Virgin_Steel

Beginner
Beginner


Joined: Feb 24, 2005
Posts: 4

PostPosted: Thu Feb 24, 2005 2:42 pm    Post subject: block-NG-RandomPhoto.php problem!!! Reply with quote

i JUST Follow the instruction in readme but get this:
/block-NG-AutoPhoto.php
/blocks/block-NG-RandomPhoto.php
/blocks/NG-RandomPhoto_functions.php

Code: ›
Warning: fopen(/home/newwave/public_html/albumsblock-random.cache): failed to open stream: Permission denied in /usr/home/newwave/public_html/nwdb1/blocks/NG-RandomPhoto_functions.php on line 221

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/home/newwave/public_html/nwdb1/blocks/NG-RandomPhoto_functions.php on line 223
[b]NOTE:This line is not in the error:(About 20 lines like this above)[/b]

Fatal error: Call to undefined function: isalbumname() in /usr/home/newwave/public_html/nwdb1/blocks/NG-RandomPhoto_functions.php on line 101

----
http://novavalna.org/nwdb1/modules.php?name=Gallery
Gallery version: Gallery v1.4.4-pl2
Apache version: 1.3.33 (Unix)
PHP version: 4.3.10
Graphics Toolkit: netpbm freebsd-4.8
Operating system: FreeBSD
Browser: IE[code]
The CONFIG lines from the top of your block file(s):
block-NG-RandomPhoto.php
[code]$selector = "AUTO";

/*******************************************************************/
/* Number of seconds between autorefresh of block, valid only for */
/* $selector = AUTO */
/*******************************************************************/
$auto_rate = 10;

/*******************************************************************/
/* Number of photos to display, valid only for $selector = RANDOM */
/*******************************************************************/
$number_of_pix = 50;

/*******************************************************************/
/* 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;[/code]

NG-RandomPhoto_functions.php
[code]/*******************************************************************/
/* Full path to your Gallery, don't forget the trailing / */
/*******************************************************************/
$GALLERY_BASEDIR = "/usr/home/newwave/public_html/nwdb1/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,"/home/newwave/public_html/albums");[/code]
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: block-NG-RandomPhoto.php problem!!!  

Back to top
Virgin_Steel

Beginner
Beginner


Joined: Feb 24, 2005
Posts: 4

PostPosted: Thu Feb 24, 2005 3:10 pm    Post subject: Re: block-NG-RandomPhoto.php problem!!! Reply with quote

ok i thought i was wrong with that:

Code: › define(ALBUM_DIRECTORY,"/home/newwave/public_html/albums");

so i changed to:
Code: › define(ALBUM_DIRECTORY,"/home/newwave/public_html/albums/");


but now i'm gettin:
Quote: › Fatal error: Call to undefined function: isalbumname() in /usr/home/newwave/public_html/nwdb1/blocks/NG-RandomPhoto_functions.php on line 101
[/code]
Back to top
Offline View user's profile Send private message
Virgin_Steel

Beginner
Beginner


Joined: Feb 24, 2005
Posts: 4

PostPosted: Thu Feb 24, 2005 6:39 pm    Post subject: Re: block-NG-RandomPhoto.php problem!!! Reply with quote

ok i found the fix with replacing the isalbumname to GetAlbumName, but now when i click on album name it opens the album in the block ???
and how could i change the text 'from' "gallery name" to smaller cause its hide in the block bottom...
Back to top
Offline View user's profile Send private message
Virgin_Steel

Beginner
Beginner


Joined: Feb 24, 2005
Posts: 4

PostPosted: Thu Feb 24, 2005 7:12 pm    Post subject: Re: block-NG-RandomPhoto.php problem!!! Reply with quote

i just put it in 'RANDOM' and now everything works fine!
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

 
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 packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

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