Home | Support Forums | Your Account | Gallery [2] | 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] - Improved New Albums Block
Goto page Previous  1, 2
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Author Message
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Wed Aug 13, 2003 5:41 am    Post subject: Re: [RELEASE] - Improved New Albums Block Reply with quote

techmike wrote: › Warning: Invalid argument supplied for foreach() in /var/www/mikenet/php/html/gallery-1.3.4/session.php on line 55

In sessions.php change the section around line 55 to
Code: ›
/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
    foreach($_SESSION as $key => $value) {     
        eval("\$$key = & \$_SESSION[\"$key\"];");
    }             
}


techmike wrote: ›
Fatal error: Failed opening required '/var/www/mikenet/php/html//var/www/mikenet/php/html/gallery-1.3.4/ML_files/ML_settings.inc' (include_path='.:/usr/share/pear') in /var/www/mikenet/php/html/gallery-1.3.4/ML_files/ML_config.php on line 108


Hmn - plz post the config lines from your block.
EXAMPLE:
/* CHANGE THESE VARIABLES */
$GALLERY_BASEDIR = "/path/to/modules/gallery/";
define(WEB_BASE_ADDR,"http://yoursite.com/");
define(GALLERY_NAME,"gallery");
define(USE_THUMBS,1); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,1); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/path/to/albums/");

/* DON"T CHANGE ANYTHING BELOW HERE */
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
AdBot
   Post subject: Re: [RELEASE] - Improved New Albums Block  

Back to top
techmike

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 3
Location: Sweden

PostPosted: Wed Aug 13, 2003 6:37 am    Post subject: Reply with quote

Ok, that fixed my first problem thanks!

/* CHANGE THESE VARIABLES */
$GALLERY_BASEDIR = "/var/www/mikenet/php/html/gallery-1.3.4/";
define(WEB_BASE_ADDR,"http://mikenet.mine.nu/php/html/");
define(GALLERY_NAME,"MikeNet");
define(USE_THUMBS,0); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/var/www/mikenet/php/html/gallery-1.3.4/albums/");
/* DON"T CHANGE ANYTHING BELOW HERE */
Back to top
Offline View user's profile Send private message Visit poster's website
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Wed Aug 13, 2003 6:54 am    Post subject: Reply with quote

define(GALLERY_NAME,"MikeNet");

Should be:

define(GALLERY_NAME,"gallery-1.3.4");

GALLERY_NAME = module name
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


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

PostPosted: Wed Aug 13, 2003 7:19 am    Post subject: Reply with quote

channone wrote: › I had the same error. i did the following and it went away.

define(ALBUMCACHE, $gallery->app->albumDir . "/album_list.cache");
/* define(ALBUMCACHE,ALBUM_DIRECTORY."album_list.cache"); */

line 134 or so

if(fs_file_exists(ALBUMCACHE)) {
/* $stat = fs_stat(CACHE_FILE); */
$stat = fs_stat(ALBUMCACHE);

it's late and I took a quick stab at it..seems to work.


Yes, this was a goof on my part Embarassed i gotta check my code better
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
techmike

Beginner
Beginner


Joined: Aug 03, 2003
Posts: 3
Location: Sweden

PostPosted: Wed Aug 13, 2003 8:32 am    Post subject: Reply with quote

Quote: ›
define(GALLERY_NAME,"MikeNet");

Should be:

define(GALLERY_NAME,"gallery-1.3.4");

GALLERY_NAME = module name


Thanks for your help!
Now I have changed this, and moved it so the module is called "Galleri", I have also made a fresh install of the 1.3.4-pl1 ML (but using the old config and album dir). The lines in your block looks like this now:
/* CHANGE THESE VARIABLES */
$GALLERY_BASEDIR = "/var/www/mikenet/php/html/modules/Galleri/";
define(WEB_BASE_ADDR,"http://mikenet.mine.nu/php/html/");
define(GALLERY_NAME,"Galleri");
define(USE_THUMBS,0); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/var/www/mikenet/albums/");
/* DON"T CHANGE ANYTHING BELOW HERE */


But now I get an error that says:
Fatal error: Failed opening required '/var/www/mikenet/php/html//var/www/mikenet/php/html/modules/Galleri/ML_files/ML_settings.inc' (include_path='.:/usr/share/pear') in /var/www/mikenet/php/html/modules/Galleri/ML_files/ML_config.php on line 109

after trying to change this on my own (I simply removed "$stripped . "/". " from line 109) i get the following error:

Fatal error: Call to undefined function: numaccessiblealbums() in /var/www/mikenet/php/html/blocks/block-newAlbums.php on line 48

guess this wasn't as easy as i thought it would be. Maybe the trouble is that I'm using the Multilanguage version? Is anybody else doing this successfully?
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

PostPosted: Wed Aug 13, 2003 8:36 am    Post subject: Re: [RELEASE] - Improved New Albums Block Reply with quote

grab the new version [nukedgallery.net] in the download. it has a couple of bugfixes that may address your issues.
i'm using gallery 1.3.5-cvs-b115 (which is ML capable) at http://phpnuke.nukegallery.net and don't have any problems with it.[/url]
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
Ciro

Beginner
Beginner


Joined: Aug 13, 2003
Posts: 4

PostPosted: Wed Aug 13, 2003 11:16 am    Post subject: Reply with quote

Tnx for the answer slackbladder...

Maybe is NUKE_BASE_ADDR a little more clearer then WEB_BASE_ADDR.

The purpose of my site is not to create traffic so my albums are in the right dir for me.

It's really too hot overhere to do another install of Gallery. I'm really not up to the job right now...

Anyway! Tnx for you time!
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
Goto page Previous  1, 2

 
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