Topic: Juicebox Search

Steven wrote:

@artwindows

We are currently investigating SEO and Juicebox.
In the meantime, please take a look at this forum post for a possible solution.



Actually, I was referring to a search feature for being able to search photos on my own website,
built into Juicebox. Not SEO prep, so much.
Thx.

Re: Juicebox Search

Actually, I was referring to a search feature for being able to search photos on my own website,
built into Juicebox.

Perhaps the easiest way to achieve this would be to upload your images to a Flickr account and to tag your images with appropriate keywords.
You could then allow users to input a search term (or to choose one from a drop-down menu) and feed the search term to Juicebox via the flickrTags configuration option.
For example, try using the following code as your gallery's index page. Name it 'index.php' and insert your own Flickr username.

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Juicebox-Pro Gallery</title>
        <meta charset="utf-8" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <style type="text/css">
            body, html {
                margin: 0;
                height: 100%;
            }
            #header {
                background-color: #222222;
                color: #ffffff;
                height: 5%;
                text-align: center;
            }
            #main {
                height: 95%;
            }
        </style>
    </head>
    <body>
        <div id="header">
                <form action="index.php" method="get">
                    <div>Tag: <input type="text" name="tag">
                    <input type="submit" value="Submit"></div>
                </form>
        </div>
        <div id="main">
            <!--START JUICEBOX EMBED-->
            <script src="jbcore/juicebox.js"></script>
            <script>
                new juicebox({
                    containerId: 'juicebox-container',
                    useFlickr: 'true',
                    flickrUsername: 'username',
                    flickrTags: '<?php echo $_GET["tag"]?>'
                });
            </script>
            <div id="juicebox-container"></div>
            <!--END JUICEBOX EMBED-->
        </div>
    </body>
</html>

Re: Juicebox Search

Steven wrote:

Actually, I was referring to a search feature for being able to search photos on my own website,
built into Juicebox.

Perhaps the easiest way to achieve this would be to upload your images to a Flickr account and to tag your images with appropriate keywords.
You could then allow users to input a search term (or to choose one from a drop-down menu) and feed the search term to Juicebox via the flickrTags configuration option.
For example, try using the following code as your gallery's index page. Name it 'index.php' and insert your own Flickr username.

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Juicebox-Pro Gallery</title>
        <meta charset="utf-8" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <style type="text/css">
            body, html {
                margin: 0;
                height: 100%;
            }
            #header {
                background-color: #222222;
                color: #ffffff;
                height: 5%;
                text-align: center;
            }
            #main {
                height: 95%;
            }
        </style>
    </head>
    <body>
        <div id="header">
                <form action="index.php" method="get">
                    <div>Tag: <input type="text" name="tag">
                    <input type="submit" value="Submit"></div>
                </form>
        </div>
        <div id="main">
            <!--START JUICEBOX EMBED-->
            <script src="jbcore/juicebox.js"></script>
            <script>
                new juicebox({
                    containerId: 'juicebox-container',
                    useFlickr: 'true',
                    flickrUsername: 'username',
                    flickrTags: '<?php echo $_GET["tag"]?>'
                });
            </script>
            <div id="juicebox-container"></div>
            <!--END JUICEBOX EMBED-->
        </div>
    </body>
</html>

I don't use flicker. I number all of my photos and name them. The free google search for websites works for my other gallery but doesn't seem to find the comments on my photos that are generated by juicebox. Do you know why it wouldn't? I'll try again soon to make sure I'm not missing something. Thx.

Re: Juicebox Search

The free google search for websites works for my other gallery but doesn't seem to find the comments on my photos that are generated by juicebox. Do you know why it wouldn't?

This is an SEO issue and, as I mentioned in the Feature Requests thread, we are currently investigating SEO and Juicebox. If you implement the solution in this forum thread, Google should index your gallery and you should be able to find the gallery in Google's search results. It may take anything from a few days to several weeks for Google to index your site and the results would link to the gallery page, not to individual images within the gallery.

[Topic split from Feature Requests thread. Original feature request for search functionality left in thread.]