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  

RandomPhoto problem

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

Beginner
Beginner


Joined: Mar 02, 2005
Posts: 6

PostPosted: Fri Oct 07, 2005 4:41 am    Post subject: RandomPhoto problem Reply with quote

I got the following warnings when I tried the randomphoto block.

Any help you could give is very much appreciated! Thank you very much for your time.

Warning: fopen(http://jpnx.com/nuke/modules/Gallery/albums/block-random.cache): failed to open stream: HTTP wrapper does not support writeable connections. in /home/toritaiy/public_html/nuke/blocks/NG-RandomPhoto_functions.php on line 221

Warning: fwrite(): supplied argument is not a valid stream resource in /home/toritaiy/public_html/nuke/blocks/NG-RandomPhoto_functions.php on line 223

Warning: fclose(): supplied argument is not a valid stream resource in /home/toritaiy/public_html/nuke/blocks/NG-RandomPhoto_functions.php on line 225

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

________________
The CONFIG lines from the top of my block file(s):

NG-RandomPhoto_functions.php
Code: › global $gallery, $GALLERY_EMBEDDED_INSIDE, $GALLERY_EMBEDDED_INSIDE_TYPE, $GALLERY_MODULENAME, $Version_Num;

/*******************************************************************/
/* Full path to your Gallery, don't forget the trailing /          */
/*******************************************************************/
$GALLERY_BASEDIR = "/home/toritaiy/public_html/nuke/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,"http://jpnx.com/nuke/modules/Gallery/albums/");


block-NG-RandomPhoto.php
Code: ›
$selector = "RANDOM";

/*******************************************************************/
/* 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 = 10;

/*******************************************************************/
/* Show photos horozontally(1) or vertically(0). Valid only for    */
/* $selector = RANDOM                                              */
/*******************************************************************/
$horozontal = 1;

/*******************************************************************/
/* Size of thumbnail. Leave at 0 to use Gallery default            */
/*******************************************************************/
$scaleTo = 0;


/*******************************************************************/
/* Scrolling photos, valid only for $selector = RANDOM             */
/*******************************************************************/
$scroll = 1;




My site Info
http://jpnx.com/nuke/

Gallery URL http://jpnx.com/nuke/modules/Gallery

Gallery version: 1.4.4

Apache version: 1.3.33 (Unix)
PHP version: 4.4.0


----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):
The CONFIG lines from the top of your block file(s):
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: RandomPhoto problem  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Mon Oct 10, 2005 11:21 am    Post subject: Re: RandomPhoto problem Reply with quote

your album directory is wrong, it's a directory, not a URL.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
toritaiyo

Beginner
Beginner


Joined: Mar 02, 2005
Posts: 6

PostPosted: Wed Oct 12, 2005 3:23 am    Post subject: Re: RandomPhoto problem Reply with quote

Thanks. I'm sorry to have taken up your valuable time over a careless mistake.

I corrected it. But then I got this error:

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

I must have done something wrong but I don't know what.

Here is the current (corrected) code:

Code: ›
/*******************************************************************/
/* Full path to your Gallery, don't forget the trailing /          */
/*******************************************************************/
$GALLERY_BASEDIR = "/home/toritaiy/public_html/nuke/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/toritaiy/public_html/nuke/modules/Gallery/albums/");

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

Site Admin
Site Admin


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

PostPosted: Wed Oct 12, 2005 6:58 am    Post subject: Re: RandomPhoto problem Reply with quote

bah, i thought i had corrected this in the uploads....change the "isalbumname" to "getalbumname"
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
toritaiyo

Beginner
Beginner


Joined: Mar 02, 2005
Posts: 6

PostPosted: Thu Oct 13, 2005 2:26 am    Post subject: Re: RandomPhoto problem Reply with quote

It's working great!

Dari, you're the best!!!!

Thanks for all of your help!!!!!!
-Tori

p.s. Does nukedgallery take donations?
Back to top
Offline View user's profile Send private message
jimlink

Beginner
Beginner


Joined: Jan 10, 2007
Posts: 5

PostPosted: Thu Jan 11, 2007 2:23 pm    Post subject: Re: RandomPhoto problem Reply with quote

Ahhh, my first post on nukegallery.net !!!
Well, I can't figure this out. I have two sites, both running gallery1.
I installed the RandomPhoto Blocks on both sites with a center block.
Both sites load the block fine and show the thumbs, but only one site will actually load the photo when you click the link for the image.

I can see exactly what's wrong when doing a mouse over and looking at the url that will be loaded. The site that works shows " /phpnuke/ " in the path. The site that doesn't work does Not have "/phpnuke/" in the path,
clicking gives me an invalid file error. (the path is missing /phpnuke/ ).
I'm using the same paths for the gallery application and album, except for the domain obviously. Same directory file structure for both sites.

Is there a cache somewhere that needs to be deleted ??

When you do a mouseover, you'll see the path at the bottom of explorer.
ANY thoughts on why this is happening & how to fix it ???
I checked the block files over and over. I can't figure it out.

This site works :
http://www.ohanarocks.com/phpnuke/index.php

This site does not work:
http://www.noquarterlive.com/phpnuke/index.php

btw..
Happy New Year everybody!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Fri Jan 12, 2007 10:13 am    Post subject: Re: RandomPhoto problem Reply with quote

on the site that doesn't work, make sure you've got the proper path info in the block configuration area (at the top of the block).
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
jimlink

Beginner
Beginner


Joined: Jan 10, 2007
Posts: 5

PostPosted: Fri Jan 12, 2007 3:49 pm    Post subject: Re: RandomPhoto problem Reply with quote

Thanks for the reply, I've started from scratch 3 or 4 times with both sites.
Always the same results.. the Ohana site works, the No quarter site does not.
Gallery works fine as a module and as a stand alone for Both sites.

The only difference is that I tried to install the 'RandomPhotoV2SelectTest' blocks
on the No Quarter site before any of this. The blocks didn't work.

So, I installed the standard V2 blocks on both sites.
The site that previously had 'select' installed, is the site with the problem.
Do the 'select' blocks leave any leftovers in the directories when un-installed?

I just downloaded the files on Jan 10th, so I'm guessing they're the latest release.

Thanks again for the quick reply, I'll keep pecking & poking...
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Wed Jan 17, 2007 7:34 am    Post subject: Re: RandomPhoto problem Reply with quote

yeah, you might want to make sure that there are no .cache files lingering in your blocks directory (i think that's where those are written to).
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
jimlink

Beginner
Beginner


Joined: Jan 10, 2007
Posts: 5

PostPosted: Wed Jan 17, 2007 9:34 am    Post subject: Re: RandomPhoto problem Reply with quote

I'll take another look Dari, thanks.
I installed the "most popular" block and it works fine.. using the same url & directories. But check this out, the last time I reinstalled the 'random blocks', the thumbs showed (no prob), and a mouseover showed the correct hyperlink with /phpnuke/ in the path!! But as soon as I hit F5 to refresh the page... BAM!!
The mouseover showed the link without /phpnuke/ in the path. wtf? he-he-he...

I'll keep going till I get it. As I mentioned, the Ohanarocks website works fine.
And btw, I want to let you know I appreciate all your work.
You've done a great Job. And I'm sure everyone here realizes that.
Back to top
Offline View user's profile Send private message
jimlink

Beginner
Beginner


Joined: Jan 10, 2007
Posts: 5

PostPosted: Fri Jan 26, 2007 5:54 pm    Post subject: Re: RandomPhoto problem Reply with quote

Well... I reinstalled Gallery 1.5 , and added a newly named album.
Standalone and embedded in my PHPNUKE site, the Gallery works fine.
I Removed and installed the blocks, & deleted any cache files I could find.
Again the NG 'Most Popular' block works fine, but the 'Random' block doesn't.
While it was deactivated, I did a 'Show" from the admin module.
And It worked fine, no problems, had /phpnuke/ in the path, everything was great.
When I activated the block and went to the main page to view it,
the path changed back to the bad URL ( /phpnuke/ no longer exists!! ).
The thumb images load and display fine in the center block.
Anyone else have a problem with the NG-Random Photo Block on a phpnuke site?
Here's the webpage again, www.noquarterlive.com.
Feel free to read the posts I made earlier on the same subject.
The blocks work fine on the other website.

CAN ANYONE HELP?? !!!
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Mon Jan 29, 2007 7:38 am    Post subject: Re: RandomPhoto problem Reply with quote

hrm, you might want to search here. i seem to recall problems in the past w/ gallery 1.x not forming the correct URLs. also, can you tell me what version of the random block you're using, so i can double-check the code?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
jimlink

Beginner
Beginner


Joined: Jan 10, 2007
Posts: 5

PostPosted: Fri Feb 02, 2007 11:23 am    Post subject: Re: RandomPhoto problem Reply with quote

The tar I downloaded says 144, but the internal file has 2.0 .
So, I'm going to say the random block is version 2.0.

The working website has Gallery v1.5.3, the non-working site is v1.5.5.p11.
I'll rename the 1.5.5 gallery directory, and upload the 1.5.3 version.
I still have a zipped version of 1.5.3 on my puter. Don't know if it will make a difference, but it's worth a try. The random block files are exactly the same except for the domain name being used in the functions config file.

If I can't get this working, can anyone point me to a possible mod??
I'm not sure where the thumbs are building the image urls, but for
some reason /phpnuke/ is being left out of the hyperlinks.
(once the block is activated. It works fine while deactivated).
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

 
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 OptimisationSEOWeb 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