Including Gallery3 in my existing website

coreydc

Joined: 2014-06-16
Posts: 3
Posted: Mon, 2014-06-16 16:11

I would like to include or customize Gallery3 to look just like my existing website or include the gallery in a section of my website. I have looked around and can't find documentation on it.

Anyone have information on this?

Thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2014-06-16 19:32

http://galleryproject.org/node/106581

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
coreydc

Joined: 2014-06-16
Posts: 3
Posted: Tue, 2014-06-17 18:11

The instructions on this page http://www.flashyourweb.com/gallery2/embed_samples/g3_rest.php#item/1

Don't seem to be the same as the actual code base for G3

For the:

url: 'http://www.flashyourweb.com/gallery3/rest',
code: 'http://www.flashyourweb.com/gallery2/embed_samples/'

The Url and code links are not there on the new install

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-06-17 18:49

You need to edit it for the url(s) you use.
You need to enable the rest module.
the code is where you placed the code on your site.

http://galleryproject.org/node/106581#comment-394974

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
coreydc

Joined: 2014-06-16
Posts: 3
Posted: Tue, 2014-06-17 20:00

I realize that I need to change the urls, I was just using the ones from the example. I enabled rest, however there is no "rest" directory or "embed_samples"

Or will that just be processed by the page?

in the RSS example it is now referenced like this:

/gallery3/index.php/rss/feed/gallery/album/1

instead of this:

/gallery3/rss/feed/gallery/album/1

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2014-06-18 04:17

I forgot to mention you need to enable guest access for the REST module.
Admin -> settings -> advanced. Rest 'allow_guest_access' change to 1 from 0.

Example:
http://gallery2.ca/test/index.html
I placed the code in the http://gallery2.ca/test/code/ directory and i set the URLs as follows:

    <script>
        jQuery(document).ready(function(){
            $('#gallery').g3rest({
                url: 'http://gallery2.ca/gallery3/index.php/rest',
                code: 'http://gallery2.ca/test/'
            });
            $("#coder").click(function() {
                $("#code-sample").fadeToggle("slow", "linear");
            });
        });
    </script>

I hope that helps.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team