gallery2 and drupal integration

carltonb

Joined: 2005-11-06
Posts: 2
Posted: Sun, 2005-11-06 22:05

Have been running Gallery2 for a few weeks and all seems well.

I now want to integrate it with Drupal, but here is my problem.

I do not understand how to do it, there are too many conflicting directions of what to do I have become very confused.

My gallery2 install is at http://www.carltonbrooks.net/gallery2
while my drupal install is at http://www.carltonbrooks.net/drupal

When I go to administer>settings>gallery> in drupal what path would I use to integrate the two programs. Or do I need to use a symlink in gallery2.

EITHER WAY I DO NOT UNDERSTAND

Thanks for all the support

carltonb

Gallery version = 2.0.1 core 1.0.0.1
PHP version = 4.3.4 cgi
Webserver = Apache/1.3.29 (Unix) FrontPage/5.0.2.2623
Database = mysql 4.0.16-globat
Toolkits = Exif, ImageMagick, NetPBM
Operating system = FreeBSD martinique.globat.com 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Wed May i386
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

 
woverko

Joined: 2005-11-04
Posts: 2
Posted: Sun, 2005-11-06 23:31

carltonb,

You might want to have a look at this site: http://drupal.org/project/gallery
It provides information on a module available for Drupal that allows for
Gallery integration.

Go to the address http://lab.walkah.net/drupalgallery/ for an example of how
it would look.

Also, you may want to move the files in the drupal directory to the web directory
to make this integration go a little more smoothly. At the same time, it won't
require people to know that they have to type http://www.carltonbrooks.net/drupal,
and instead can type http://www.carltonbrooks.net. I don't know if doing this
contradicts Drupal's suggested setup, but it seems a little more logical.

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Sun, 2005-11-06 23:38

Setting the path to '../gallery2' should work for you. I know there are some instructions about a symbolic link, but I cannot find out why this is necessary (anyone)?

If that does not work for you then add a symbolic link in your drupal dir to the gallery2 dir using:

ln -s ../gallery2 gallery2

And then your path would be 'gallery2'. The instructions say to use a trailing '/' but it's not necessary as the code seems to include it.

Check out http://codex.gallery2.org/index.php/Gallery2:How_to_Embed_Gallery2_in_Drupal for further help.

 
carltonb

Joined: 2005-11-06
Posts: 2
Posted: Tue, 2005-11-08 00:18

I am still confused, though I tried all the suggestions none seem to work. Can someone explain the following

cd /var/www/drupal.site
ln -s /path/to/gallery2

Using the above from the gallery.module infornmation it says to perform the following if the gallery is in a different directory than drupal.

So... if my drupal directory is http://www.carltonbrooks.net/drupal and my gallery2 is at http://www,carltonbrooks.net/gallery2
What should the above read. What I fail to understand is the "/var/www/" or the "/path/to/" what information gets replaced by this.

Again thanks for the help.

carltonb

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Tue, 2005-11-08 01:18

The http:// part is the URL. This is the part that a web browser would use to get onto your site. But the actual files are stored on your server in a set of directories. It is this that the path is refering to. For example, on a site I might have the URL that someone uses to access it as http://www.example.com/drupal, but the files are actually stored on the server as /var/www/htdocs/drupal (or /home/user/public_html/drupal or ...).

You need to know where you put the files on the server. Did you ftp them? What directory did you ftp them to? If you have shell access (which you need to create the symbolic link anyway) you can just do an ls and see what the path is. Once you get to your drupal directory, then create the symbolic link as I mentioned.

 
rimbeaux
rimbeaux's picture

Joined: 2006-10-17
Posts: 48
Posted: Fri, 2007-02-09 23:22

I took a look at your site; looks like you abandoned Drupal for Joomla? What gallery are you using now? I have two sites running drupal/gallery, and the integration is awesome, but the performance is poor!