PHP Nuke + G2

Ansolon
Ansolon's picture

Joined: 2003-01-14
Posts: 46
Posted: Mon, 2005-10-03 19:25

Hi I tried to embed g2 with using nukedgallery files anyway although there is blank page while setting up.. I added g2 as a phpnuke module.
However the main thing is the phpnuke site is TUrkish while you go to g2 module al other Turkish letters in phpnuke is broken.

Moreover I am using Siriux theme that which it seems best for me.. However its also break the site design.... I dont think its related with our phpnuke theme because of the other themes are fits the site... Maybe it can be resolve easily..

But the Tukish letters problem is more important I think

You can check the module from... http://www.x-session.com/modules.php?name=gallery2

 
kaplansa

Joined: 2005-10-07
Posts: 9
Posted: Fri, 2005-10-07 17:29

Can't get URL Rewrite to work using the PHP-Nuke embed module.

G2 and the PHP Nuke embed module with no URL rewriting works just fine. Check out http://www.seth.org/modules.php?name=gallery2. The issue is that when I turn on rewriting and click into the embedded G2 gallery2, ALL the links on the page show the rewrite, so even the entire Nuke home page screws up. Basically, once you click into the gallery with rewriting turn on (even just "show item" and nothing else), every link on the page, including the Nuke module links on the left menu bar all reflect the gallery URL rewite. So even "downloads" looks like "http://www.seth.org/v/weddingpics/modules.php?name=Downloads" -- you see? The "/v/weddingpics" portion of the URL shouldn't be there.

My URL Rewrite options in the G2 embed module are set to .htaccess path = /home/sethorg/public_html (this is the root www dir) and public path = / (as in "http://www.seth.org/").

The .htaccess file that's being modded in the root www has no other rewrites in there, other than the codes that G2 is setting. With only "show item" turned on, this is my .htaccess file. What change do I have to make so the rewrite only affects URLs that include modules.php?name=gallery2 ??

# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR] 
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_FILENAME} !modules\.php\?name\=gallery2
    RewriteRule .   -   [L]

    
    RewriteCond %{THE_REQUEST} \ /v/(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !modules\.php\?name\=gallery2
    RewriteRule .   /modules.php?name=gallery2&g2_view=core.ShowItem   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !modules\.php\?name\=gallery2
    RewriteRule .   /modules.php?name=gallery2&g2_view=core.ShowItem&g2_path=%1   [QSA,L]

</IfModule>

# END Url Rewrite section
 
umm

Joined: 2005-09-23
Posts: 2
Posted: Thu, 2005-10-13 02:59

Hi, I have phpnuke 7.8 and I have installed gallery 2.0 everything is working except that when i open the gallery in my php nuke i get a error in the browser:

I took a cap of it with my paintshop pro? Does anyone know how to fix this error, I use this site in a chat called Halsoft Chat. ( a Browser based chat that lets u view websites as you chat.

It reads as follows:

Line: 981
Char: 3
Error: Object required
Code: 0
URL: http://www.dvx0nlineradi0.com/modules.php?name=gallery2

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-10-13 11:22

maybe better post your issues on www.nukedgallery.net

 
mswanson

Joined: 2004-05-25
Posts: 3
Posted: Wed, 2005-11-09 03:17

I should probably post this over on nukedgallery, but I dont have an account over there and I just wanted to post this snipit in case it helps anybody else. Problem: The gallery2 phpnuke integration on nukedgallery.net breaks with the rewrite module. I really needed to use it so I found a way to hack the RewriteUrlGenerator.class file from the rewrite module directory to skip rewriting if the URI indicates an embeded gallery. This isn't necessarily the BEST way to do this, modifications/improvements are welcome.

--- RewriteUrlGenerator.class.org       2005-11-08 21:11:17.000000000 -0600
+++ RewriteUrlGenerator.class   2005-11-08 21:14:24.000000000 -0600
@@ -61,9 +61,14 @@
     function init($baseFile=null, $embedPath=null, $relativeG2Path=null, $embedSessionString=null) {
        parent::init($baseFile, $embedPath, $relativeG2Path, $embedSessionString);

-       list($ret, $this->_shortUrls) = RewriteMap::getShortUrls();
-       if ($ret->isError()) {
-           $this->_error = true;
+       if(preg_match("/\/modules.php?.*?name=gallery2/",$_SERVER['REQUEST_URI'])) {
+               $this->_error=true;
+       }
+       else {
+               list($ret, $this->_shortUrls) = RewriteMap::getShortUrls();
+               if ($ret->isError()) {
+                   $this->_error = true;
+               }
        }
     }

Hope that helps

 
jedinite

Joined: 2005-12-03
Posts: 1
Posted: Sat, 2005-12-03 00:54

I'm sorry I'm a complete noob at PHP and I am running PHP-NUKE 7.9 on my server. I have installed Gallery2 to http://www.mysite.com/gallery2/

I added your script as index.php file to http://www.mysite.com/modules/gallery2/index.php
but when I click on the module link all I get is a blank page. I know I'm missing something but I don't know where to begin. A quick word of advice would be much appreciated.

Also is there a way to incorporate my nuke_users table entries to the g2_users table? I'll troll the forums for more answers but if anyone could offer a good how to I'd appreciate it.

 
id01

Joined: 2005-11-07
Posts: 62
Posted: Sun, 2006-01-01 05:48

yes, you can. Check here http://www.nukedgallery.net/

Keep in mind, you -must- install gallery2 in the modules directory of your phpnuke installation. Anywhere else will give you a hell of a time to get it working~!

 
inertia

Joined: 2006-03-26
Posts: 1
Posted: Sun, 2006-03-26 18:31

Hello all friends..

Well, I am quite new in the area, although I have practiced somehow in the G1 and G2 area..
The problem I have is related with the implementation of G2 + phpNuke. I have phpNuke 7.5 and G2.1 installed. I think all work fine, axcept an issue of compatibility between the UTF-8 and ISO charsets...

I found a way in nukedGallery for tranforming phpnuke db into UTF-8 from ISO-8859-7 (Greek). The fact is that, for now, I do not want to make this transformation. I want to implement gallery without having different charset from the rest of the nukesite... I am asking this because I have already seen it in action by a greek youth community site, www.18-24.gr . In the url: http://www.18-24.gr/modules.php?name=gallery2 the user can find G2 in action, but without problems with UTF-8. Can anyone help me on this?

 
shomazta

Joined: 2006-06-20
Posts: 1
Posted: Tue, 2006-06-20 23:42

im completely lost, as well as confused. I used to use PHPNuke awhile back (version 7.3 I think) now everything has been updated, a whole lot. And now when i add a module it does not appear in the administration. Through an installer my webhost setup I was able to run 7.8 and currently am using that installation. However any new module added does not appear in the admin panel nor can I access the module. I considering checking in the Module Administration List and nothing appeared. In this case nothing appears period... when I typed in the proper url for the module I found the page, however since G2 hasn't been configured through the administration, I was stopped abruptly in my tracks. In one instance (banner module) I see text, yet no image or link. There is a proper image, as well as coding within the banner index.php script, however since the image for some reason does not appear, I can not access the banner administration, which is very vital to the site, as well as Gallery. If anyone could possibly spend time troubleshooting my problems I would be very thankful. If necessary I can try installing another instance of PHPNuke and rebuild the site from there or copy the databases for both the forums and news. However I'd prefere not to have to start from scrath. The website is www.AZNRappa.com ... please help, I've been trying to install vital modules such as NSN Sentinel as well.

 
linuxfueled
linuxfueled's picture

Joined: 2005-12-31
Posts: 6
Posted: Fri, 2006-07-07 20:08

My site is fully functional with PHPnuke 7.8
However my relative path to G2 data is in /usr/share for security reason.
My module appears as a standard page with no module content displayed.
There are no errors displayed.
Any workaround for this?

thanks in advnace

http://Linuxfueled.com

 
kicsi2l8

Joined: 2005-05-11
Posts: 2
Posted: Fri, 2006-07-14 23:57

jedinite, i have the same issue you have....installed gallery2 into modules directory, and added the index.php file at the top of this post...and all i get is the blank page...well..not blank...the phpnuke page shows up..but blank body where galery should be..

any luck?

any suggestions?

-andy

 
Soldierette!!
Soldierette!!'s picture

Joined: 2004-06-04
Posts: 44
Posted: Fri, 2006-08-04 07:43

There is a fix for the blank page issue now. Check nukedgallery.net forum. It should be in the latest download now. The reason I know this is because I've been sitting here for the past 2 hours scouring the net, reading about different integrations for phpnuke.

 
Xirian

Joined: 2007-04-29
Posts: 3
Posted: Sun, 2007-04-29 02:07

Hello,

I'm pretty new to all this gallery stuff. I just finished installing the Gallery2. Everything works fine as far as I can tell. My issue is, I would like it to be integrated with my phpnuke 7.8 website. When I was installing it, I didn't not see this thread and just assumed that it would be integrated automatically if I added it to my nukewebsite root. Apparently I was wrong.

I have a couple of issues, but I'll only ask about issue in this thread. I want to integrate the Gallery2 into my phpnuke website for the members there. However, I did not install it, initially, into the Modules area of my nuke website as I have read that I should have done. So, my questions are as follows:

- Do I have to uninstall it and move it to the modules section of my nuke website or is there another way to move it there?
- Or can I leave it where it is and simply try an integration that way?
- If there is a way to leave it where it is, can someone direct me to the instructions of how to get it actually visually connected to my nuke website?

I have viewed all the posts in this thread and followed all the links, but none have answered my above questions. If I do not make sense, I will try to explain better or give more information if needed.

Thank you in advance.

~Xirian~