| Author |
Message |
tabiggs
Beginner


Joined: Nov 24, 2003 Posts: 1
|
Posted: Tue Dec 02, 2003 11:45 pm Post subject: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 |
|
|
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): |
|
| Back to top |
|
|
AdBot
|
| Post subject: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 |
|
|
|
|
|
| Back to top |
|
 |
Kit
Moderator


Joined: Aug 31, 2003 Posts: 163
|
Posted: Wed Dec 03, 2003 12:47 am Post subject: |
|
|
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. |
|
| Back to top |
|
|
valerie
Beginner


Joined: Dec 16, 2003 Posts: 9
|
Posted: Tue Dec 16, 2003 10:41 pm Post subject: |
|
|
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. . . |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Dec 17, 2003 2:36 am Post subject: |
|
|
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; _________________ "The only difference between me and a madman is that I'm not mad." |
|
| Back to top |
|
|
valerie
Beginner


Joined: Dec 16, 2003 Posts: 9
|
Posted: Wed Dec 17, 2003 1:05 pm Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke |
|
|
| Thank you! That worked for me. I appreciate the help. |
|
| Back to top |
|
|
GFED
Beginner


Joined: Mar 28, 2004 Posts: 6
|
Posted: Sun Mar 28, 2004 8:01 am Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke |
|
|
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 |
|
| Back to top |
|
|
GFED
Beginner


Joined: Mar 28, 2004 Posts: 6
|
Posted: Sun Mar 28, 2004 8:03 am Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke |
|
|
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 |
|
| Back to top |
|
|
GFED
Beginner


Joined: Mar 28, 2004 Posts: 6
|
Posted: Sun Mar 28, 2004 8:06 am Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke |
|
|
Taking gallery out of the home... and leaving the edited lines intact... everything works fine again...
any suggestions? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Sun Mar 28, 2004 9:03 am Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke |
|
|
gallery version?
phpnuke version? _________________
 |
|
| Back to top |
|
|
GFED
Beginner


Joined: Mar 28, 2004 Posts: 6
|
Posted: Sun Mar 28, 2004 8:52 pm Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke |
|
|
gallery 1.4.2
phpnuke 7.0 |
|
| Back to top |
|
|
Kit
Moderator


Joined: Aug 31, 2003 Posts: 163
|
Posted: Wed Apr 07, 2004 9:54 pm Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke |
|
|
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 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6271 Location: Washington Township, NJ, USA
|
Posted: Thu Apr 08, 2004 6:58 am Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 |
|
|
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. _________________
 |
|
| Back to top |
|
|
Kit
Moderator


Joined: Aug 31, 2003 Posts: 163
|
|
| Back to top |
|
|
flyfisher88
Beginner


Joined: Apr 26, 2004 Posts: 6
|
Posted: Mon Apr 26, 2004 5:36 pm Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 |
|
|
| any updates for this for nuke 7.0?? I am getting the same problems with gallery 1.4.3 and nuke 7.0 |
|
| Back to top |
|
|
Kit
Moderator


Joined: Aug 31, 2003 Posts: 163
|
Posted: Tue Apr 27, 2004 10:38 pm Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 |
|
|
| 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. |
|
| Back to top |
|
|
|
|
|
|
|