Topic Title: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9

Forum Index » Gallery 1 Integration » Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
Topic URL: http://www.nukedgallery.net/postt471.html

AuthorMessage
Post Title: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
tabiggs
Joined: Nov 24, 2003
Posts: 1

Posted: Tue Dec 02, 2003 11:45 pm
I think I have followed the directions with regard to trying to post my gallery assigning it to put it in the home page in nuke..

I get an error message saying "You can't access this file directly..."
----
Give us your Gallery 1.4.1
APACHE 1.3
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL: www.tabiggs.audio-stream.net
PHP version is 4.3.5
Graphics Toolkit:
Operating system: XP Pro
Web browser/version (if applicable): IE 6.0
The CONFIG lines from the top of your block file(s):

AuthorMessage
Post Title:
Kit
Joined: Aug 31, 2003
Posts: 163

Posted: Wed Dec 03, 2003 12:47 am
PHPNUKE 6.5 ~ 6.9
To get the Gallery to work as your homepage:

Go into ..\modules\Gallery\html_wrap\wrapper.header.default

Locate within the first few lines (starts on line 10 in mine)

Code: ›       if (!eregi("modules.php", $PHP_SELF)) {
         die ("You can't access this file directly...");
      }

Replace it with this
Code: › if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
   die ("You can't access this file directly...");
}


Save the file, go to yoursite.com/admin.php and Put in Homepage
By changing this, It will not remove the ability to have as a regular module.

AuthorMessage
Post Title:
valerie
Joined: Dec 16, 2003
Posts: 9

Posted: Tue Dec 16, 2003 10:41 pm
Drat -- that didn't work for me. Here's the code from in my wrapper.header.default file:

if(isset($GALLERY_EMBEDDED_INSIDE)) {
global $PHP_SELF;

if (($GALLERY_EMBEDDED_INSIDE_TYPE == 'postnuke' && !defined("LOADED_AS_MODULE")) ||
($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpnuke' && !eregi("modules.php", $PHP_SELF))) {
die ("You can't access this file directly...");
}

I tried adding the $_SERVER in front of the PHP_SELF, but I just kept getting parse errors. . .

AuthorMessage
Post Title:
slackbladder
Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK
Posted: Wed Dec 17, 2003 2:36 am
Hi,

KIT's answer worked for me when I tested it. Make sure your wrapper looks like this:

Code: ›
if(isset($GALLERY_EMBEDDED_INSIDE)) {
   global $PHP_SELF;

   if (($GALLERY_EMBEDDED_INSIDE_TYPE == 'postnuke' && !defined("LOADED_AS_MODULE")) ||
      ($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpnuke' && !eregi("modules.php", $_SERVER['PHP_SELF']))) {
         die ("You can't access this file directly...");
   }


If it still doesn't work - then try adding $_SERVER to the global statement:

global $PHP_SELF, $_SERVER;

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke
valerie
Joined: Dec 16, 2003
Posts: 9

Posted: Wed Dec 17, 2003 1:05 pm
Thank you! That worked for me. I appreciate the help.

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke
GFED
Joined: Mar 28, 2004
Posts: 6

Posted: Sun Mar 28, 2004 8:01 am
After putting gallery on the home page and editing these lines... now when a user tries to create an album this error comes up...

Fatal error: Call to a member function on a non-object in /home/adultwv/public_html/modules/gallery/classes/User.php on line 211

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke
GFED
Joined: Mar 28, 2004
Posts: 6

Posted: Sun Mar 28, 2004 8:03 am
In GOD mode (logged into admin) I was able to create an album... but when I tried to delete it...

Fatal error: Call to a member function on a non-object in /home/adultwv/public_html/modules/gallery/delete_photo.php on line 39

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke
GFED
Joined: Mar 28, 2004
Posts: 6

Posted: Sun Mar 28, 2004 8:06 am
Taking gallery out of the home... and leaving the edited lines intact... everything works fine again...


any suggestions?

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Sun Mar 28, 2004 9:03 am
gallery version?
phpnuke version?

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke
GFED
Joined: Mar 28, 2004
Posts: 6

Posted: Sun Mar 28, 2004 8:52 pm
gallery 1.4.2
phpnuke 7.0

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke
Kit
Joined: Aug 31, 2003
Posts: 163

Posted: Wed Apr 07, 2004 9:54 pm
This FIX was only tested Nuke 6.5 through 6.9.
I updated the Topic line to reflect this.

Plus my original reply had in big, bold letters...
6.5 ~ 6.9

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Apr 08, 2004 6:58 am
yeah, there have been lots of little changes made in phpnuke 7.0+ that seem to affect some functionality of Gallery. Unfortunately, since phpNuke seemingly releases a new version monthly, it's almost impossible for the developers to make fixes.

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
Kit
Joined: Aug 31, 2003
Posts: 163

Posted: Thu Apr 08, 2004 2:38 pm
dari wrote: › yeah, there have been lots of little changes made in phpnuke 7.0+ that seem to affect some functionality of Gallery. Unfortunately, since phpNuke seemingly releases a new version monthly, it's almost impossible for the developers to make fixes.

Move them to solitary confinement Shocked , reduce their rations Crying or Very sad , and make them run faster in the squirrel cage Mad . Bigger whip may need to be purchased. Very Happy
hehe..... seriously though.... I agree it is tough to keep up, little change here, little change there. Pretty soon this will be an 3 egg omlet hold the nuke. Twisted Evil

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
flyfisher88
Joined: Apr 26, 2004
Posts: 6

Posted: Mon Apr 26, 2004 5:36 pm
any updates for this for nuke 7.0?? I am getting the same problems with gallery 1.4.3 and nuke 7.0

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
Kit
Joined: Aug 31, 2003
Posts: 163

Posted: Tue Apr 27, 2004 10:38 pm
The errors that I have encountered with this in the newest version have been corrected by removing all the files within /modules/gallery (or rename the old gallery to Galler_old, then upload the gallery fresh. Rerun the install/config.

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
media
Joined: Jul 13, 2004
Posts: 4

Posted: Thu Jul 15, 2004 9:30 pm
Hrmm, Dari posted this link to me to solve my problem, but can someone please explain the steps to me for the following configuration:

PHP Nuke 7.2
Gallery v1.4.3-pl2

I am really confused because its seems like this is for prior versions of the programs.

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
media
Joined: Jul 13, 2004
Posts: 4

Posted: Thu Jul 15, 2004 9:48 pm
Nevermind, I got it.. Thanks Dari!!! One of the options worked..

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
Cook3677
Joined: Oct 06, 2004
Posts: 1

Posted: Thu Oct 07, 2004 10:11 am
Just an FYI for those asking: I made it work with phpnuke 7.5 and Gallery v1.4.4-pl2..


Basicly just like Kit said

Go into ..\modules\Gallery\html_wrap\wrapper.header.default

Replaced (started at line 12 for me)
Code: › if (
      ($GALLERY_EMBEDDED_INSIDE_TYPE == 'postnuke' && !defined("LOADED_AS_MODULE")) ||
      ($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpnuke' && !eregi("modules.php", $PHP_SELF)) ||
      ($GALLERY_EMBEDDED_INSIDE_TYPE == 'nsnnuke' && !eregi("modules.php", $PHP_SELF)) ||
      ($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpBB2' && !defined("LOADED_AS_MODULE"))
   ) {
         die ("You can't access this file directly...");
   }



with
Code: ›
if (
      ($GALLERY_EMBEDDED_INSIDE_TYPE == 'postnuke' && !defined("LOADED_AS_MODULE")) ||
      ($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpnuke' && !eregi("modules.php", $_SERVER['PHP_SELF'])) ||
      ($GALLERY_EMBEDDED_INSIDE_TYPE == 'nsnnuke' && !eregi("modules.php", $PHP_SELF)) ||
      ($GALLERY_EMBEDDED_INSIDE_TYPE == 'phpBB2' && !defined("LOADED_AS_MODULE"))
   ) {
         die ("You can't access this file directly...");
   }


Note the $_SERVER['PHP_SELF'] change.

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
tomcjay
Joined: Jun 23, 2005
Posts: 1
Location: Boston
Posted: Thu Sep 08, 2005 1:12 pm
I have gallery 1.5 and Nuke 7.6. I am ot quite sure what I am suppose to to do. I have look for the code mentioned initially in this thread in the gallery.header.default file and am unable to find the code. I would like to have gallery on the main page of nuke. What should I do? Arrow

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Sep 08, 2005 1:16 pm
alot has been changed in recent versions of gallery 1. IIRC, in 1.5.1, there is a method outlined for getting gallery as your homepage included in the package.

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
auctions97
Joined: Feb 08, 2010
Posts: 1

Posted: Tue Feb 09, 2010 12:58 am
thanks guys, the steps is really helpful

AuthorMessage
Post Title: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
benkids
Joined: Jan 03, 2011
Posts: 4

Posted: Mon Jan 03, 2011 9:54 pm
ZhiBike is the product Bike Trials [biketrialseller.com] of Bike Trial Seller [biketrialseller.com] our sales agents, there are a variety of the latest style in 2009, including Forks, Stems, Bashrings, Bike Store [biketrialseller.com] Cranks(158m), Cranks(170m), Handlebars, Hub(Front,Disc), Bike Shop [biketrialseller.com] Frames(20), Frames(26) and more. Welcome to our web site

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group