On your website https://robfelty.com/plugins , you list an Image Browser plugin. Is this available to download?
You state on the webpage that you get the gallery below by utilising the shortcode [imagebrowser category=10]. There is no gallery below.
]]>I have plugin version 0.3 with WP 3.5 and I’ve found Image Browser don’t paginate with permalinks active, page number beeng a dynamic subpage of the parent (permalink) search page and thus not passing ‘page’ parameter as expected. (I am not sure this interpretation to be completely correct, because I’m not very found in WP).
After some research, I’ve solved this issue adding a sentence in image-browser.php’s ‘imagebrowsershortcode’ function, as follows:
function imagebrowsershortcode($atts) {
$page = get_query_var(‘page’);
$browser = new ImageBrowser();
$defaults = get_option(‘image_browser’);
…etc.
and another sentence in get_query function,
function get_query($get) {
if (!empty($get)) {
$get[‘year’] = $get[‘img_year’];
$get[‘month’] = $get[‘img_month’];
$get[‘category’] = $get[‘img_cat’];
$get[‘page’] = get_query_var(‘page’);
}
To show the link ‘Newer images’ and drop down list for the last page, I’ve add this if below the if ‘if ($image_count > $limit+$offset) {‘ :
if ($image_count < $limit+$offset) {
$text .= “<div style=’float:right’>”;
$text .= ‘<select onchange=”
location.href=this[this.selectedIndex].value;”>’;
for ($i=1; $i<=$num_pages; $i++) {
if ($page == $i) {
$selected = “selected=’selected'”;
} else {
$selected = ”;
}
$text .= “<option $selected value='” . add_query_arg(‘page’, $i,
$oldquery) . “‘>” .
“Page $i</option>\n”;
}
$text .= ‘</select>’;
$text .= “<span style=’padding:0 .5em’><a href='” . add_query_arg(‘page’,
$page-1, $oldquery) . “‘>” . __(‘Newer images’) . “</span>”;
$text .=”</div>\n”;
}
I’m afraid this one is not the most elegant solution, but I don’t know php.
Hope this be useful if anyone has similar problems.
]]>version 0.3
There are several places where the PHP shorttag is used and so it doesn’t execute the PHP.
<? instead of <?php
Also, have you considered the option to link to the post instead of the attachment page?
]]>Hello,
I came across your plugin and I think it may help my project if it lives on the client side. Does this plugin allow users to search through my images using keywords or does it only allow logged in blog administrators to search all the images?
I am building an “artist registry” for a museum so I will need to give site visitors the ability to search for artwork/images.
Thanks, please let me know.
mrsingleton
Hi there
Great plugin with potential, but with 2 current problems:
A)
The images that are displayed are only showing up in one column, not three columns as I have specified in the Image Browser settings page.
B)
Also when you click the image it does not take you to the post that has this images set as the Featured Image.