Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group Avatar Upload isn\'t showing up – wp_enqueue_script( \'thickbox\' )


  • 21cdb
    Participant

    @21cdb

    My problem is that on step 3 of Group Creation “Create a Group – Group Avatar” the avatar upload form isn’t showing up.

    I did some debugging and found that this problem is related to my bp-custom.php (renamed bp-custom.php so that it didn’t load and the Avatar Upload Form showed up again.)

    I circumscribed the problem to the following line of code

    ‘wp_enqueue_script( ‘thickbox’ );’

    Once i delete it from my bp-custom.php the form shows up again!

    Can anyone please confirm that the Thickbox script is causing an error with the Group Avatar Upload form. I’m not sure why and if i should write a trac ticket for this issue, because thickbox isn’t part of buddypress but of WordPress?

Viewing 4 replies - 1 through 4 (of 4 total)

  • Andy Peatling
    Keymaster

    @apeatling

    Please create a defect ticket for this and explain anything you have found. It must be a container CSS ID conflict or something.


    21cdb
    Participant

    @21cdb

    Ticket created


    Jason Giedymin
    Participant

    @jason_jm

    I have replied to an other ticket of yours.

    It seems your using custom themes (based on your previous ticket) and may have some collisions as Andy has pointed out.

    I recommend posting your theme code and we the community will be better able to help you.

    Running WP (single) 2.9.2 and BP 1.2.1 with default theme. wp_enqueue_script( ‘thickbox’ ); will break group creation!

    I don’t have time to find out why, but somehow it relates to loader image thickbox initiates. This fixes it out, you won’t be seeing the loader though..

    wp-includes/js/thickbox/thickbox.js

    //on page load call tb_init

    jQuery(document).ready(function(){

    tb_init(‘a.thickbox, area.thickbox, input.thickbox’);//pass where to apply thickbox

    imgLoader = new Image();// preload image

    imgLoader.src = “”;//tb_pathToImage;

    });

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Group Avatar Upload isn\'t showing up – wp_enqueue_script( \'thickbox\' )’ is closed to new replies.
Skip to toolbar