1 (edited by shellwe 2016-11-13 03:10:44)

Topic: setting the flickr tag as a parameter in the URL

I am planning on redoing my client's site using WordPress.

I already redesigned it once... sadly in the time it took for my client to ever have time to make changes I became claustrophobic of the design and am redoing it in a more 'open' layout.

Anyway, the galleries use a flickr gallery; like so (old site):
http://greatplainslandscapes.com/testpr … y-gallery/

And I thought it would be cool for my testimonial page for my new site:
http://greatplainslandscapes.com/mockup … onials.php

It would be super cool if you could have links to a gallery of their project but not have to make a new gallery for each one. So like if the reviewer is Bob Kelso then we can go into our flickr and tag some of the pictures we took of that landscape with #kelso and then I can have some link like www.site.com/gallery.php?galleryname=kelso and then it would go out to that flickr account and grab all images with that tag.

TL:DR; Basically instead of hardwiring the flickr tag in it would be nice to set it as a property in the URL... but I still need to use the WordPress plugin.

Re: setting the flickr tag as a parameter in the URL

In order to set configuration options (such as flickrTags) via a query string in the URL, you'll need to set debugMode="TRUE" in the gallery's embedding code. (Please see the Setting Config Options support section for details.)

To do this within the Juicebox plugin for WordPress, open WP-Juicebox's 'wp-juicebox.php' file in a plain text editor and change line 280 from:

$string_builder .= '        backgroundColor: "' . $background_color . '",' . PHP_EOL;

... to:

$string_builder .= '        debugMode: "TRUE", backgroundColor: "' . $background_color . '",' . PHP_EOL;

You can then set a flickrUserName via the WP-Juicebox gallery settings interface (as usual) and set the flickrTags option via a query string in the URL, for example:
http://www.example.com/gallery/?flickrTags=landscape

If you wanted to, you could set the flickrUserName (or any other configuration options) via the query string, too. Configuration options set via the query string take precedence over those set via the embedding code or in the gallery's XML configuration file. For example:
http://www.example.com/gallery/?flickrUserName=my_flickr_account&flickrTags=landscape

Please note that the line number above refers to the current version of WP-Juicebox (v1.5.0).
(In the version of WP-Juicebox that you are currently using, the line to modify will be somewhere in the region of 289 ~ 290.)