Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have same issue and the plugin does not show anything on Chrome but does in Firefox. Was there a solution ?

    Thread Starter Raju Gautam

    (@rajug)

    Sorry guys,

    The problem was not because of the function add_action but it seems it is obvious that the problem is again because of WordPress upgrade to 3.0.

    An if condition check was logically wrong or kind of stupid. They have a if condition like this in the plugin :

    if ( strpos($_SERVER['REQUEST_URI'], 'post.php?action=edit') !== false  ) {
        // show the image upload field.
    }

    The condition was true in prior versions because in the URL while editing the post looks like this:

    /wordpress/wp-admin/post.php?action=edit&post=1

    And WordPress 3.0 does have the link while editing the post like this:
    /wordpress/wp-admin/post.php?post=1&action=edit

    and WordPress 3.0 does not display the form because the condition always gets failed.

    Really annoying and frustrating situation I had since last week.

    Really annoying and frustrating situation I had since last week.

    Now I checked the condition like this:

    if ( $_GET['action'] == 'edit' ) {
        // show the image upload field.
    }

    Can anyone point out me if I am doing something wrong? Though it is working now but I am not sure that I can use $_GET superglobal directly inside the function/method of a class in the plugin.

    With Regards
    Raju

    I am also having some problem:

    add_action('activate_'.$this->tmh_pi_path, array(&$this, 'tmhpiActivate'));
    add_action('edit_form_advanced', array(&$this, 'tmhpiCustomFields'));
    add_action('edit_page_form', array(&$this, 'tmhpiCustomFields'));
    add_action('edit_post', array(&$this, 'tmhpiMetaboxHandle'));

    It was working perfecting fine before with 2.9 but when I upgrade it to 3.0 then suddenly it does not show a form field in below the post form in admin.

    Thread Starter Raju Gautam

    (@rajug)

    Anyone help me please. I am stuck here with this problem.

    Thread Starter Raju Gautam

    (@rajug)

    Thank you so much MichaelH! That did the trick.

    Will come back… need to learn more on WP.

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