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  

Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic
Author Message
tabiggs

Beginner
Beginner


Joined: Nov 24, 2003
Posts: 1

PostPosted: Tue Dec 02, 2003 11:45 pm    Post subject: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9  

Back to top
Kit

Moderator
Moderator


Joined: Aug 31, 2003
Posts: 163

PostPosted: Wed Dec 03, 2003 12:47 am    Post subject: Reply with quote

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
Offline View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
valerie

Beginner
Beginner


Joined: Dec 16, 2003
Posts: 9

PostPosted: Tue Dec 16, 2003 10:41 pm    Post subject: Reply with quote

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
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 Dec 17, 2003 2:36 am    Post subject: Reply with quote

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
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
valerie

Beginner
Beginner


Joined: Dec 16, 2003
Posts: 9

PostPosted: Wed Dec 17, 2003 1:05 pm    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke Reply with quote

Thank you! That worked for me. I appreciate the help.
Back to top
Offline View user's profile Send private message Visit poster's website
GFED

Beginner
Beginner


Joined: Mar 28, 2004
Posts: 6

PostPosted: Sun Mar 28, 2004 8:01 am    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke Reply with quote

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
Offline View user's profile Send private message
GFED

Beginner
Beginner


Joined: Mar 28, 2004
Posts: 6

PostPosted: Sun Mar 28, 2004 8:03 am    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke Reply with quote

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
Offline View user's profile Send private message
GFED

Beginner
Beginner


Joined: Mar 28, 2004
Posts: 6

PostPosted: Sun Mar 28, 2004 8:06 am    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke Reply with quote

Taking gallery out of the home... and leaving the edited lines intact... everything works fine again...


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

Site Admin
Site Admin


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

PostPosted: Sun Mar 28, 2004 9:03 am    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke Reply with quote

gallery version?
phpnuke version?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
GFED

Beginner
Beginner


Joined: Mar 28, 2004
Posts: 6

PostPosted: Sun Mar 28, 2004 8:52 pm    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke Reply with quote

gallery 1.4.2
phpnuke 7.0
Back to top
Offline View user's profile Send private message
Kit

Moderator
Moderator


Joined: Aug 31, 2003
Posts: 163

PostPosted: Wed Apr 07, 2004 9:54 pm    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke Reply with quote

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
Offline View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


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

PostPosted: Thu Apr 08, 2004 6:58 am    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 Reply with quote

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
Offline View user's profile Send private message Visit poster's website
Kit

Moderator
Moderator


Joined: Aug 31, 2003
Posts: 163

PostPosted: Thu Apr 08, 2004 2:38 pm    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 Reply with quote

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
Back to top
Offline View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
flyfisher88

Beginner
Beginner


Joined: Apr 26, 2004
Posts: 6

PostPosted: Mon Apr 26, 2004 5:36 pm    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 Reply with quote

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
Offline View user's profile Send private message
Kit

Moderator
Moderator


Joined: Aug 31, 2003
Posts: 163

PostPosted: Tue Apr 27, 2004 10:38 pm    Post subject: Re: Assigning GALLERY as HOME PAGE in Nuke 6.5~6.9 Reply with quote

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
Offline View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 1 Integration View previous topicPrinter friendly versionView next topic
Goto page 1, 2  Next

 
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