Forums

GeotagPhoto
[resolved] GeotagPhoto plugin thickbox feature not working with WordPress 3.0. (1 post)

  1. jonathantessier
    Member
    Posted 1 year ago #

    The proper scripts are not registered properly for WordPress 3.0. To register them properly you must edit the script.

    Apply to : GeotagPhoto Version 0.8.6
    Change module : geotagphoto.php

    Comment lines 271, 273, 275 :
    271 // echo '<script type="text/javascript" src="' . get_bloginfo('wpurl') . '/wp-includes/js/jquery/jquery.js"></script>'."\n";
    273 // echo '<script type="text/javascript" src="' . get_bloginfo('wpurl') . '/wp-includes/js/thickbox/thickbox.js"></script>'."\n";
    275 // echo '<style type="text/css" media="all">@import "' . get_bloginfo('wpurl') . '/wp-includes/js/thickbox/thickbox.css";</style>'."\n";

    Add the following lines after line 83 add_action('admin_menu', 'geotagphoto_menu'); :

    wp_enqueue_style('thickbox'); // inserting style sheet for Thickbox.
    wp_enqueue_script('jquery'); // including jquery.
    wp_enqueue_script('thickbox'); // including Thickbox javascript.

    Save the plugin and retry. It should work now. Make sure the option "Add Thickbox to all photos (not just tagged ones)" is enabled in the plugin settings.

    http://wordpress.org/extend/plugins/geotagphoto/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic