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  

Gallery2 PHP-Nuke Integration on Add-On Domain
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Fri Sep 02, 2005 9:24 pm    Post subject: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Hello,

I have installed the G2 package itself in my modules directory (PHP-Nuke 7.6 + patch 3.1 + Sentinel 2.4.0a) and installed. It seemed to work just fine, but of course it wasnt part of Nuke.

I downloaded the Aug 30 version of the integration package and installed it too. It does not seem to work too well after this. The admin stuff comes up just fine and appears to work. When I then go to the G2, a very sparse page comes up in the default G2 theme. Shouldnt it pick up my nuke theme? Also, I cannot click on many links (such as site admin) without getting 404 page not found errors. Some links do work. I cannot login as admin and am always guest even though I exported my nuke users.

I am not convinced that I have setup my gallery2.cfg file correctly. The nuke installation into which i installed G2 is actually an Add-On domain. Here is my gallery2.cg:

<?php
$g2embedparams = array (
'embedphpfile' => '/home2/*****/public_html/158th/modules/gallery2/',
'embedUri' => 'modules.php?name=gallery2',
'relativeG2Path' => '/modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '/',
'cookiepath' => '/',
);
$g2mainparams = array (
'showSidebar' => NULL,
);
$g2configurationdone = 'true';
?>

The url to the site is http://158th.com but as you can see the actual path has the additional 158th directory off of the root web directory. I am wondering about admin config options 2 and 3 as related to addon domains. I tried adding in the /158th/ in option 3 and when running gallery2 it did pick up my nuke theme, but images and links would not work.

Any help would be appreciated...

Mr Papa
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Gallery2 PHP-Nuke Integration on Add-On Domain  

Back to top
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Fri Sep 02, 2005 9:56 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Found at least a partial solution in this thread:

http://www.nukedgallery.net/postx1854-0-0.html

gallery2.cfg now looks like:

<?php
$g2embedparams = array (
'embedphpfile' => '/home2/*****/public_html/158th/modules/gallery2/',
'embedUri' => 'modules.php?name=gallery2',
'relativeG2Path' => 'modules/gallery2/',
'loginRedirect' => 'modules.php?name=Your_Account',
'activeUserId' => '0',
'embedPath' => '',
'cookiepath' => '/',
);
$g2mainparams = array (
'showSidebar' => NULL,
);
$g2configurationdone = 'true';
?>

However, still no nuke theme integration. Is that not possible with G2? The default matrix is impossible to read with its white text on white background. Not very user friend to have to highlight the text to read. I doubt thats really how the theme is constructed, but how it shows up on my site.

Maybe there are still some fixes for me to make...

Mr Papa
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Sat Sep 03, 2005 6:56 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

you ahve to manually edit the theme of Gallery.

or, look in modules/gallery2/index.php and remove the "for" loop that deals with the CSS.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Sat Sep 03, 2005 9:20 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Thanks Dari! Commenting out that CSS for loop did indeed apply my nuke theme to the gallery. Of course, you also lose the "pretty" formatting that the gallery theme had. You now end up with a simple table layout structure, but I think its a fair trade. I can now read the stuff instead of white on white Cool

Some day maybe I will play withe gallery theme itself.

As usual, appreciate the help!

Mr Papa
Back to top
Offline View user's profile Send private message
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Sun Sep 04, 2005 4:58 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Okay, I seem to have Gallery2 working now with the above changes except its not the prettiest looking thing since I had to disable any of the gallery2 themes since they all show up white text on white background. Commenting out the CSS stuff in index.php makes the gallery2 show up in my nuke theme but in pretty simple table form.

However, the G2 image nuke blocks (random, daily, last, etc) dont always work. Whether or not they work is dependant upon where i am (ie which module) in my nuke structure.

For example, if I am at my nuke home, the image does not display because its looking for http://158th.com/index.phpmodules.php?...

If I am in the gallery2 module (ie looking at albums or images), the block shows correctly with address of http://158th.com/modules.php...

Obviously, the index.phpmodules.php is incorrect, and must indicate something wrong in one of my relative paths? However, if I change the relative paths, the Gallery2 stuff itself (admin, edit album, etc) does not work.

I still think this might be related to my installation being on an add-on domain. The absolute path is /home2/*****/public_html/158th/modules/gallery2

but the domain is http://158th.com/modules/gallery2

Anyone else had any luck integrating into php-nuke with add-on domain?? Or am I missing something else?

Thanks...

Mr Papa
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Tue Sep 06, 2005 6:38 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

make sure that the "show sidebar block" in your phpnuke gallery2 admin config is NOT checked.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Wed Sep 07, 2005 1:47 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Dari, thanks for the response...

The problem with the image block not displaying because of a "different" link address to the image based on where I am in the nuke strucuture (root, modules, etc) is an issue in the php nuke block, not the G2 sidebar. Incidentally, I get the same results with the G2 sidebar on or off inside of gallery module.

Still think its something to do with the paths in the config file for add on domains, but I could be all wet as I am far from a gallery expert Embarassed

Currently have to turn off the php nuke blocks in the integration package because of the image link locations changing, but would like to be able to turn them back on.

Thanks...

Mr Papa
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Sep 08, 2005 6:34 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

can you give me an example of the "different" link address to the image? i'm a bit confused (it's early in the AM for me Smile )
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Fri Sep 09, 2005 9:52 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

No problem, its in the previous posts, but buried in my wordiness...

If I am at my home page (nuke root), the image block (php nuke block with random or latest image) is trying to load the image with this address:

http://158th.com/index.phpmodules.php?...

You can see that the index.html and modules.php? are incorrectly smashed together. It shouldnt even have the index.html in there as the rest (the ...) is correct.

If I am in the gallery viewing images, the image block (php nuke block) correctly loads the image from address:

http://158th.com/modules.php?...

So it seems to be using some relative address incorrectly and I have been thinking its related to my domain actually being an addon domain.

The Gallery module itself works just fine with no issues.

Currently, the php nuke block is deactivated since its not working, but I can put it back up for you to see if it would help. Incidentally, finally modded the G2 matrix theme to better match my site theme, so not nearly as ugly now Rolling Eyes

Thanks...

Mr Papa
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Mon Sep 12, 2005 9:05 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

what if you use www.158th.com in your browser...?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Mon Sep 12, 2005 8:03 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Hmmm...works just fine with the http://www.158th.com and does not work for http://158th.com

Was that testing a theory? Shocked

Any ideas on how to make it work for both since the rest of the site does?

Thanks...

Mr Papa
Back to top
Offline View user's profile Send private message
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Mon Sep 12, 2005 10:09 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

Well, upon further research, not really...

If I type in the page http://www.158th.com it works fine. However, if I type in the page http://www.158th.com/index.php or get there via any link (such as home), it wont work.

Again, the index.php and modules.php files get smashed together to create the invalid link.

Mr Papa
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Tue Sep 13, 2005 6:32 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

set your embedPath to /
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
MrPapa

Beginner
Beginner


Joined: Jul 03, 2005
Posts: 14

PostPosted: Tue Sep 13, 2005 9:51 am    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

No, if I do that Gallery itself stops functioning. I had taken the "/" out after reading this post:

http://www.nukedgallery.net/postx1854-0-0.html

and it got G2 working. Now just the nuke G2 blocks dont work.

Mr Papa
Back to top
Offline View user's profile Send private message
warhawk911

Beginner
Beginner


Joined: Sep 13, 2005
Posts: 5

PostPosted: Tue Sep 13, 2005 9:22 pm    Post subject: Re: Gallery2 PHP-Nuke Integration on Add-On Domain Reply with quote

I have the Exacte same problem. If i go directly to my Web site, it working, When i click on any link after, it stop working for the same reason. It add a index.html before the module=....

You can see it at: http://www.cdhl.net [cdhl.net]

Notice on the first time on the Web page, the G2 ImageBlock is working, but click on Home or anywhere else, it will stop working.

PHP 5.0.5
PhpNuke 7.7
Gallery 2 RC-2
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Gallery 2 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