Plugin Directory

Changeset 617276


Ignore:
Timestamp:
10/25/2012 11:54:40 AM (13 years ago)
Author:
DigitalTweaker
Message:

Fixed profile upload button issue

Location:
dt-author-box/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • dt-author-box/trunk/dt_authorbox.php

    r610149 r617276  
    44Plugin URI: http://www.digitaltweaker.com/web/wordpress/2012/04/digital-tweakers-author-box-plugin-for-wordpress
    55Description: Easily adds an author box signature to the end of your posts or articles with little setup. Adds profile image, author bio, author twitter link, and author website link. All settings can be found under user profile. For more documentation, visit the plugin website.
    6 Version: 1.1.3
     6Version: 1.1.4
    77License: GPL
    88Author: Digital Tweaker
     
    173173?><script type="text/javascript">
    174174jQuery(document).ready(function() {
    175  
    176 jQuery('#uploadimage').click(function() {
    177  formfield = jQuery('#image').attr('name');
    178  tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true');
    179  return false;
    180 });
     175jQuery(document).find("input[id^='uploadimage']").live('click', function(){
     176//var num = this.id.split('-')[1];
     177formfield = jQuery('#image').attr('name');
     178tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true');
    181179 
    182180window.send_to_editor = function(html) {
    183  imgurl = jQuery('img',html).attr('src');
    184  jQuery('#image').val(imgurl);
    185  tb_remove();
     181imgurl = jQuery('img',html).attr('src');
     182jQuery('#image').val(imgurl);
     183tb_remove();
    186184}
    187185 
     186return false;
     187});
    188188});
    189189</script>
     
    192192global $pagenow; 
    193193 
    194 if ( 'profile.php' == $pagenow ) {
     194if ( 'profile.php' || 'users.php' == $pagenow ) {
    195195add_action('admin_head','dt_profile_image_upload');
    196196wp_enqueue_script('media-upload');
  • dt-author-box/trunk/readme.txt

    r610149 r617276  
    11=== DT Author Box ===
    22Requires at least: 3.1.2
    3 Tested up to: 3.3.2
    4 Stable tag: 1.1.3
     3Tested up to: 3.4.2
     4Stable tag: 1.1.4
    55Contributors: Digital Tweaker
    66Donate link: http://www.digitaltweaker.com/donate
     
    4848
    4949== Changelog ==
     50= 1.1.4 =
     51* Fixed Profile Upload Image Button
     52
    5053= 1.1.3 =
    5154* Fixed Fatal Error along with others
Note: See TracChangeset for help on using the changeset viewer.