Aaaaaarrrrrrggghhhhhhhh!!!!!!

mattynuke

Joined: 2006-05-31
Posts: 7
Posted: Thu, 2006-06-01 00:59

I have been trying to get G2 embedded into my site for 3 days now and cannot get it to work.
I have followed the instructions for embedding G2... I created the file "gallery2embedded.php" and placed it in my G2 root directory. I set the cookies to "/", cleared my cookies, and disabled the URL Rewrite module.

I have tried every path combination I can possible think of and still no dice.

Using the cut and paste "gallery2embedded.php" code this is what I get. What am I doing wrong here??

http://www.realestatephotopro.com/gallery2/gallery2embedded.php

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2006-06-01 01:02

try this post, I recently fixed for someone else: http://gallery.menalto.com/node/49530

 
mattynuke

Joined: 2006-05-31
Posts: 7
Posted: Thu, 2006-06-01 01:22

OK, I tried your fix and here is what I get:

http://www.realestatephotopro.com/gallery2/gallery2embedded.php

 
mattynuke

Joined: 2006-05-31
Posts: 7
Posted: Thu, 2006-06-01 01:29

My hosting service is VizaWeb, and I believe is a Unix server. All of my site files reside in a "/public_html/" directory. Within that directory is my G2 folder containing the G2 installation and my "gallery2embedded.php" file. The other contents of the G2 folder are:
.htaccess
bootstrap.inc
config.php
fantversion.php
g2data
gallery2embedded.php
images
index.php
init.inc
install
lib
login.txt
main.php
modules
README.html
README_FILES
themes
upgrade

All of my site files are in the directory above this one.

I can log into the stand alone just fine. I just cannot get this embed to work.

Eventually I want to get the Gallery page to load into this:

http://www.realestatephotopro.com/gallery2/gallery_template.php

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2006-06-01 01:47

so are you using gallery 2.0?
this code only works with 2.1 or greater.

 
mattynuke

Joined: 2006-05-31
Posts: 7
Posted: Thu, 2006-06-01 01:52

The install is 2.0.2. I'm not sure if VizaWeb will allow an update?

 
mattynuke

Joined: 2006-05-31
Posts: 7
Posted: Thu, 2006-06-01 02:55

So is it not possible to embed with Gallery 2.0.2?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2006-06-01 03:15

it will just take a little rewrite, but I would try to update first. 2.1 is much better, and 2.2 from svn (nightly build) is incredible.
There is a preinstaller script available which makes the download and update painless. And if VizaWeb does not allow updates, then let me know.

-s

 
mattynuke

Joined: 2006-05-31
Posts: 7
Posted: Thu, 2006-06-01 17:52

Thanks suprsidr...

I got the Gallery upgraded to 2.1.1, and the test file now works properly. But now that I have upgraded Gallery there are some modules that are no longer active... The one I really want to get going is dcdraw, as the photos I will be using will be in RAW format. But I would also like to get the others activated as well.

The problem I am having now is setting the paths to the binaries. I can see the modules I want are there on the web server, but I can't seem to figure out the correct paths. I tried the dir.php file and all it returned was "/dir.php" and that path didn't work for the module activation.

It is a Linux server at VizaWeb. The path to sendmail is /usr/sbin/sendmail, if that helps to identify the path structure.

Any ideas? Once i get this figured out, I'm ready to rock.

Thanks for all your help!