Then extract the archive file on your local computer and perform the following modifications:
OPEN:
html/blocks/block-NG-mostPopular.php
FIND: $GALLERY_BASEDIR = "/home/httpd/vhosts/your_host/httpdocs/modules/gallery/";
REPLACE : $GALLERY_BASEDIR = "/home/httpd/vhosts/your_host/httpdocs/modules/gallery/";
with $GALLERY_BASEDIR = "/home/user/public_html/nuke_folder/modules/gallery/";
where you should enter your cPanel username instead of user and the exact Nuke Evolution folder instead of nuke_folder.
FIND: define(PHPNUKE_ADDR,"http://your_host/nuke_folder/");
REPLACE: your_host with the base Nuke Evolution installation URL and nuke_folder with the exact Nuke Evolution folder.
FIND: define(ALBUM_DIRECTORY,"/home/httpd/vhosts/your_host/httpdocs/modules/gallery/albums/");
REPLACE: define(ALBUM_DIRECTORY,"/home/httpd/vhosts/your_host/httpdocs/modules/gallery/albums/");
with define(ALBUM_DIRECTORY,"/home/user/public_html/nuke_folder/modules/gallery/albums/");
where you should enter your cPanel username instead of user and the exact Nuke Evolution folder instead of nuke_folder.
OPEN: html/blocks/block-NG-newAlbums.php
FIND: $GALLERY_BASEDIR = "/home/httpd/vhosts/your_host/httpdocs/modules/gallery/";
REPLACE : $GALLERY_BASEDIR = "/home/httpd/vhosts/your_host/httpdocs/modules/gallery/";
with $GALLERY_BASEDIR = "/home/user/public_html/nuke_folder/modules/gallery/";
where you should enter your cPanel username instead of user and the exact Nuke Evolution folder instead of nuke_folder.
FIND: define(PHPNUKE_ADDR,"http://your_host/nuke_folder/");
REPLACE: your_host with the base appearance Nuke Evolution installation URL and nuke_folder with the exact Nuke Evolution folder.
FIND: define(ALBUM_DIRECTORY,"/home/httpd/vhosts/your_host/httpdocs/modules/gallery/albums/");
REPLACE: define(ALBUM_DIRECTORY,"/home/httpd/vhosts/your_host/httpdocs/modules/gallery/albums/");
with define(ALBUM_DIRECTORY,"/home/user/public_html/nuke_folder/modules/gallery/albums/");
where you should enter your cPanel username instead of user and the exact Nuke Evolution folder instead of nuke_folder.
Once you are ready, open the Nuke Evolution folder through an FTP client and upload all the files from the Gallery html folder in it.
Open the http://yourdomainname.com/nuke_folder/modules/gallery/setup/index.php URL in your web browser, where you should replace yourdomainname.com with your actual domain name and nuke_folder with the folder where you have installed your Nuke Evolution script.
After this follow our comprehensive video tutorial regarding the Gallery module installation:
You should enable the Gallery module from the Nuke Evolution admin page->Modules.
A link to the Gallery will appear on the left menu of your web site. However, if clicking on it leads to the following error message: You can't access this file directly... you should edit the module code. You should open the wrapper.header.default file, which is located under the public_html/nuke_folder/modules/gallery/html_wrap/ folder. Replace nuke_folder with your actual Nuke Evolution folder. If the script is the main one for your account and it is installed directly under the public_html directory, the file can be found at public_html/modules/gallery/html_wrap/. Edit the file through cPanel -> FileManager. Put comments (//) in front of the following lines, which can be found near the top of the file:
// if (
// ($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpnuke' && !eregi("modules.php", $PHP_SELF))
// ) {
// die ("You can't access this file directly...");
// }
This will resolve the issue and the Gallery script will be accessible through the corresponding link located on your Nuke Evolution menu.
(c) Copyright 2004-2013 SiteGround. All rights reserved