The MU forums have moved to WordPress.org

drag and drop restricted. (20 posts)

  1. rehan
    Inactive
    Posted 18 years ago #

    Hi people, ive managed to solve the earlier problems with htaccess issues after following the tips here, thanks for that guys!

    But anyhows.. Ive stumbled upon an unknown problem where,
    when I tried dragging the image from the image-uploading.php template onto the wysiwyg rich text editor my mouse cursor turned into a "restriction sign". What is wrong in this case? Any gives? Hope someone could point a lead for me on this. Your help will be greatly appreciated.

    You guys can check out the thing for yourself at this blog

    test.pencilspin.com
    user: test
    pwd: yahoo12

  2. rehan
    Inactive
    Posted 18 years ago #

    Oh i forgot to point out that... in giving me the restriction sign, i wasnt able to drop the image into the WYSIWYG editor but I could however insert a link onto the plain text editor.

  3. mrvyper
    Member
    Posted 18 years ago #

    rehan: have you tried it in both IE and firefox browsers?

    I'm having a similar problem, but this seems to be a problem with the IE browser only.

    If I upload an image with firefox I can drag and drop it normally. If I use Internet Explorer it doesn't work. It uploads normally, but when I try to drag the image over to the post it displays a circle with a line through it and will not allow me to drag and drop.

    Anyone know how to fix this? I'm sure most of my users will be using IE and I need to get it working for them.

    Thanks for any help you can provide.

  4. fredl
    Member
    Posted 18 years ago #

    I'm also having the same problem, IE does not accept drag drop feature, and fire fox is running it correctly...
    I'm also having a problem when clicking the image button in cpanel, the message are :
    First one

    Fichier Source : http://blog.example.com/wp-includes/js/tinymce/utils/form_utils.js
    Ligne : 1
    Code Source :
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    This error seems for me being a rewriterule error, but which one ?
    <stong>the second one is

    Erreur : renderBrowser is not defined
    Fichier Source : http://blog.example.com/wp-includes/js/tinymce/themes/advanced/image.htm?src=
    Ligne : 21

    and the third one

    Erreur : isVisible is not defined
    Fichier Source : http://blog.example.com/wp-includes/js/tinymce/themes/advanced/jscripts/image.js
    Ligne : 46

    I'm sure that the two previous error are a consequence of the first one, please i need some help.

    I've also remplaced in file: image-uploading.php

    124 : 'post_title' => $imgtitle ? $imgtitle : $filename,
    125 : 'post_content' => $descr,


    by

    124 : 'post_title' => $imgtitle ? htmlspecialchars($imgtitle) : $filename,
    125 : 'post_content' => htmlspecialchars($descr),

    help needed, thanx

  5. jaseone
    Inactive
    Posted 18 years ago #

    Not sure about those errors but I believe you first need to type something in the post box before you click and drag to it.

    The wysiwyg editor really grates on me so I usually don't use it especially because there is no way to use custom tags like for Taggerati when it is enabled so I just avoid it and if I want to post pictures I just (mo)blog from Flickr.

  6. fredl
    Member
    Posted 18 years ago #

    thanks J.
    My users want to have a button to add pictures, and have drag and drop features !!! well u know, i'm not the boss !
    I've just look in tinycme image.html file, there's a file javascript file require which is not présent, that's the problem, i'll try to fix it.
    thanx again.

  7. mrvyper
    Member
    Posted 18 years ago #

    Thanks for the data Fredl. Were you able to find and correct that file?

    Which file was it and where did you find it?

  8. ACG123
    Inactive
    Posted 18 years ago #

    the problem is IE specific and stems from the fact that the browser believes
    you are trying to drag the < a > tag and not the <img> tag which is
    a security violation according to msdn.
    The Fix:
    1) open image-uploading.php
    2) Somewhere in the 200's (meaning like 210 on my build, but it looksl ike line
    253 on the most recent release) find the following:
    <a id="link$i" class="imagelink" href="$href" onclick="imagePopup($i);return
    false;" title="{$image['post_title']}">
    <img id='image$i' src='$src' alt='{$image['post_title']}' $height_width />

    3) replace that with this:
    <img id='image$i' class='imagelink' src='{$image['guid']}' alt='{$image['post_title']}'
    {$image['hwstring_small']} onclick='imagePopup($i);return false;'/>

    4) If you still want the hand cursor in IE, replace this: $images_style
    .= "#target$i img { padding: {$ypadding}px {$xpadding}px; }\n";

    with this: $images_style .= "#target$i img { padding: {$ypadding}px
    {$xpadding}px; cursor:hand;}\n";

    Now i'm off to find why it is that tinymce is throwing a javascript error in
    ie.

  9. Inviz
    Inactive
    Posted 18 years ago #

    triplepost. Sorry.

  10. Inviz
    Inactive
    Posted 18 years ago #

    Hey, ACG123.
    This now works fine, thank u. but now there is no link to full image:

    <img height="96" alt="ff" src="/files/2005/10/stats.gif" width="106" />

    no onclick part. with my experiments it must be cut from whole tag. Any ideas?

  11. Inviz
    Inactive
    Posted 18 years ago #

    triplepost. Sorry.

  12. ACG123
    Inactive
    Posted 18 years ago #

    i dont understand what you mean about "no link to the full image". Whenever I have clicked on the thumbnail it brings up the delete/cancel menu. I have never seen a link to the full image.

  13. sloppyno
    Inactive
    Posted 18 years ago #

    ACG123 - Unfortuantely if you do what you said about changing the code in image-uploading.php, it solves the problem of dragging the image, but you are unable to click on the image when it's posted in IE to see full image.

    Can anyone help with a fix. Unfortunately this area of wordpress seems to have been developed with FIREFOX in mind. More people use IE I think.

    HELP

  14. Inviz
    Inactive
    Posted 18 years ago #

    ACG123:
    From tumbnail to fullscreen.

  15. ACG123
    Inactive
    Posted 18 years ago #

    I imagine some ondrop javascript could fix this pretty easily... I'll play with it when I have a moment but our users seem to be more concerned about custom templates and searching than the ability to click the images.

  16. Inviz
    Inactive
    Posted 18 years ago #

    ACG123 what is a problem with searching? :) Just integrate google on-site search and i will work good.

    About custom template: if u will make a good solution pls let me know :)

  17. ACG123
    Inactive
    Posted 18 years ago #

    google search isn't a good solution. They don't index quickly enough and they may ignore some blogs.

    We are developing a solution using mnogosearch and the htdb configuration.

  18. Inviz
    Inactive
    Posted 18 years ago #

    really? Not found any bad things in work but i just begin.

    For Russia there is a good solution of http://blogs.yandex.ru/

    They say its a really good service. You can add your own resource and try this. If u experience any problems with russian (how it might be :sad:) you can email me for help on inviz@personart.ru

  19. ACG123
    Inactive
    Posted 18 years ago #

    we just implemented mnogosearch at iblogs.com, you can check it out. We're still tweaking the rules about what to index but i'm happy with the speed of indexing and the speed of searching.

  20. mediast
    Member
    Posted 18 years ago #

    Does anybody have an update on this "IE specific" problem? It appears that the filename has changed from image-uploading.php to inline-uploading.php, and I can't find anything resembling the code snippet from above...

    Nick

About this Topic