WordPress.org

Ready to get started?Download WordPress

Forums

SH Contextual Help
Upload to the media does not work (29 posts)

  1. Tom Savino
    Member
    Posted 2 years ago #

    Can not add pictures or media through Media Library click on the icon and nothing happens.

    http://wordpress.org/extend/plugins/sh-contextual-help/

  2. marikamitsos
    Member
    Posted 2 years ago #

    Also:
    Can NOT put links or any kind of span, etc.
    Because if you look at the HTML editor:

    1. Before you save: Some red text <span style="color: #ff0000;">HERE</span>
    2. After you save one time: Some red text <span style=\"color: #ff0000;\">HERE</span>
    3. After you save two times: Some red text <span style=\\\"color: #ff0000;\\\">HERE</span>

    And for links

    1. Before you save: Some link <a href="http://wordpress.org">HERE</a>
    2. After you save one time: Some link <a href=\"http://wordpress.org\">HERE</a>
    3. After you save two times:
    Some link <a href=\\\"http://wordpress.org\\\">HERE</a>

    and so on...

    Could I place a request as well?
    Instead of having the options to insert before/after/replace the content on "WordPress Contextual Help" it would be easier to JUST load (show) and edit the default content.
    This way one can decide where to place the edited text. Before/after or in-between. Would save so much time and options...
    And if one doesn't like it can always reset :)

    Thank you for an excellent idea.

  3. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi marikamitsos,
    Thank you for report the problem. The problem which you showed me is fixed. Regarding your request, I have tried before I launch this plugin. Unfortunately the default contextual help content is hard-coded. So I cannot collect the data from database. Only if user click on every page, then I can collect.

    Sam Hoe

  4. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi tsavino,
    Please provide me the detail of the problem because I can upload and insert the image. Thanks.

    Sam Hoe

  5. marikamitsos
    Member
    Posted 2 years ago #

    Thanx Sam for your quick response. What I mentioned is solved, EXCELLENT.

    but...
    I'm afraid tsavino is right.
    The visual editor does not save pics, links and other things maybe. They can NOT even be clicked. They DO save though on HTML
    Even worst, paragraphs do not change not even on HTML. It is just a loooooong text of just one loooong paragraph. I managed to make paragraphs by manually adding the p code on HTML, BUT they get lost again when you go back to the visual editor.
    I have wordpress 3.1.1 on a test site and have all plugins deactivated. So it is not a conflict with anything else.
    You better give it another stab. :)

    Thanx again

  6. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi marikamitsos,
    The problem which cause p tag missing is fixed. Thank you for report this problem.
    Regarding the problem of upload image, I can upload the image and insert into help content.

    Sam Hoe

  7. Tom Savino
    Member
    Posted 2 years ago #

    Same problem as marikamitsos even after upgrading still not upload is possible

  8. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi tsavino,
    Please give me more details about upload bug. So far I haven't got this problem.

  9. Tom Savino
    Member
    Posted 2 years ago #

    When ever I click on add image, add video, add audio, add media nothing happens no popup to access my media and I use FireFox 4. I have tryed it one a single install, muliti site, and with no plug-in at all still not popup for to access the media. I just does nothing.

  10. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi tsavino,
    I already tested in Firefox 4.0 and working fine. But loading slower than testing in Google chrome.Is this problem only appear in my plugin? Did you check your default one which is in pages and posts?

  11. Tom Savino
    Member
    Posted 2 years ago #

    Yes pages and post work fine tried it in chrome and IE9 no luck

  12. Tom Savino
    Member
    Posted 2 years ago #

    I am also using WP Super Edit and none of the extra tinyMCE button show I turned that plug-in off but it still does not work. tried it on my Ubuntu box to still does not work.

  13. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi tsavino,
    It is so weird. if you can provide me your wordpress login details, I will go inside and check the problem.

  14. Tom Savino
    Member
    Posted 2 years ago #

    need a email address don't want to put info on here.

  15. Tom Savino
    Member
    Posted 2 years ago #

  16. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

  17. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi tsavino,
    Did you change your admin page? How did you change your admin page theme? When I check the source code of my plugin page, I found that the important scripts and css are missing. I guess the problem is because of that. BTW, did you try my plugin in others wordpress site?

  18. Tom Savino
    Member
    Posted 2 years ago #

    yes 4 other sites, I have done nothing to the admin pages and the admin theme is the one that comes with wordpress...

  19. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi tsavino,
    So your 4 other sites also got this problem?

  20. Tom Savino
    Member
    Posted 2 years ago #

    yes all 4 and one is clean install same problem...

  21. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi tsavino,
    Sorry, I still don't know why. I will working on this problem. Thank you for reporting this problem.

    Sam Hoe

  22. marikamitsos
    Member
    Posted 2 years ago #

    Could it be browser related?
    I mean I only have and use Firefox4 or Firefox 3.something

  23. Tom Savino
    Member
    Posted 2 years ago #

    ff3 ff4 chrome and ie7/8/9 I have them all none work

  24. Tom Savino
    Member
    Posted 2 years ago #

  25. Tom Savino
    Member
    Posted 2 years ago #

    Sam Hoe
    I fixed it with code below. On line 32 is where I replaced

    // Add Actions and Filters
    add_action('admin_menu','sh_help_menu');
    add_filter('wp_head','add_tinymce_editor');
    add_action('contextual_help','shcontextual_help', 10, 3);
    add_action('wp_dashboard_setup', 'sh_help_dashboard_widget' );
    register_activation_hook(__FILE__,'set_sh_help_options');
    register_deactivation_hook(__FILE__,'unset_sh_help_options');
    
    // TinyMce
    function sh_help_tinymce(){
    	add_filter('teeny_mce_buttons', 'teeny_mce_buttons');
    	wp_enqueue_script('page');
    	wp_enqueue_script('thickbox');
    	wp_print_scripts('editor');
    	wp_enqueue_script('media-upload');
    	wp_enqueue_script('word-count');
    	wp_tiny_mce(false);
    	add_thickbox();
    /}

    With the code below and it works fine now test it and let me know.

    // Add Actions and Filters
    add_action('admin_menu','sh_help_menu');
    add_filter('admin_head','show_tinyMCE');
    add_action('contextual_help','shcontextual_help', 10, 3);
    add_action('wp_dashboard_setup', 'sh_help_dashboard_widget' );
    register_activation_hook(__FILE__,'set_sh_help_options');
    register_deactivation_hook(__FILE__,'unset_sh_help_options');
    
    // TinyMce
    function show_tinyMCE() {
        wp_enqueue_script( 'common' );
        wp_enqueue_script( 'jquery-color' );
        wp_print_scripts('editor');
        if (function_exists('add_thickbox')) add_thickbox();
        wp_print_scripts('media-upload');
        if (function_exists('wp_tiny_mce')) wp_tiny_mce();
        wp_admin_css();
        wp_enqueue_script('utils');
        do_action("admin_print_styles-post-php");
        do_action('admin_print_styles');
    
    }
  26. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you tsavino. I will change this code into my plugin.

  27. marikamitsos
    Member
    Posted 2 years ago #

    Cudos for you Tsavino. The image upload works fine now.

    BUT Sam (or even Tsavino),
    I'm afraid the "insert link" still does NOT work in WYSWYG. Could you please give it another look?
    Thank you

  28. Tom Savino
    Member
    Posted 2 years ago #

    ff3 ff4 chrome and ie7/8/9 I have them all and they work for me wp-3.1.2 what are you using?

  29. Sam Hoe
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, marikamitsos
    You are right. The "insert link" still not working in visual editor. Only working in html editor.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic