WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't find the bookmarklet in 2.5 (10 posts)

  1. johnathonwilliams
    Member
    Posted 6 years ago #

    Sorry if I'm being thick here, but I can't seem to find the Press It! bookmarklet in WP 2.5.

    In previous versions it was at the bottom of the Write Post screen.

    Anyone else?

  2. Ian Betteridge
    Member
    Posted 6 years ago #

    Nope, it seems to have gone walkies.

  3. Dion Hulse
    WordPress Dev
    Posted 6 years ago #

    The bookmarklet has been removed from WP 2.5.

    According to Matt it'll be making a return in 2.6 better than ever.

    You can still use the 2.3 bookmarklet, which you can find on this page: http://codex.wordpress.org/Press_It

    I also wrote these ones up awhile ago since the default one didnt support Opera very well:
    New Window/tab: javascript:function A(b){return (encodeURIComponent)?encodeURIComponent(b):escape(b);}Q='';if(window.getSelection){Q=window.getSelection();}else if (document.getSelection){Q=document.getSelection()}else if(document.selection){Q=document.selection.createRange().text;}void(window.open('http://site-url/wp-admin/post-new.php?text='+A(Q)+'&popupurl='+A(location.href)+'&popuptitle='+A(document.title)));

    One which works in the current window: javascript:function A(b){return (encodeURIComponent)?encodeURIComponent(b):escape(b);}Q='';if(window.getSelection){Q=window.getSelection();}else if (document.getSelection){Q=document.getSelection()}else if(document.selection){Q=document.selection.createRange().text;}location.href='http://site-url/wp-admin/post-new.php?text='+A(Q)+'&popupurl='+A(location.href)+'&popuptitle='+A(document.title);

    You'll need to update the 'site-url' in the link to be useful though.
    Just create a new bookmark and set those as the URL..

  4. johnathonwilliams
    Member
    Posted 6 years ago #

    Got it. Thanks for your help.

  5. pozmu
    Member
    Posted 6 years ago #

    dd32 thanks, but it dosn't work for me (I'm using Opera).
    I get redirected to URL like this:
    http://my-blog.com/wp-admin/post-new.php?text=I%20also%20wrote%20these%20ones%20up%20awhile%20ago%20since%20the%20default%20one%20didnt%20support%20Opera%20very%20well&popupurl=http%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2F164205%3Freplies%3D4&popuptitle=WordPress%20%E2%80%BA%20Support%20%C2%BB%20Can't%20find%20the%20bookmarklet%20in%202.5

    But the post form is empty... am I missing something?
    Thanks in advance.

  6. fimp
    Member
    Posted 6 years ago #

    pozmu: I had the same problem as you, but this one worked for me:

    javascript:location.href='http://SITEURL/wp-admin/post-new.php?popupurl='+escape(location.href)+'&popuptitle='+escape(document.title);

  7. Dion Hulse
    WordPress Dev
    Posted 6 years ago #

    apologies for the late reply :)

    dd32 thanks, but it dosn't work for me (I'm using Opera).
    I get redirected to URL like this:

    I'm not sure, I just tried it in Opera9.5 and it worked for me, and that URL looks allright to me(Infact, If i change the url it does work for me).

    If you have the same problem, I'd just give fimp's version a go, but you'll loose the select-text functions.

  8. danapalooza
    Member
    Posted 6 years ago #

    Thanks dd32. In Safari, works like a charm.

  9. Grievous Angel
    Member
    Posted 6 years ago #

    My old PressIt link, which is a browser button for me, still seems to work. Doesn't seem to do images though, which I think it used to...

  10. MrBlueTHC
    Member
    Posted 6 years ago #

    dd32 was correct in his links for PressIt; the only problem was that his '&' in the querystrings to seperate out the parameters were converted to HTML safe '&'. I've put the edited versions below that work in version 2.5.1.

    New Window/tab:
    javascript:function A(b){return (encodeURIComponent)?encodeURIComponent(b):escape(b);}Q='';if(window.getSelection){Q=window.getSelection();}else if (document.getSelection){Q=document.getSelection()}else if(document.selection){Q=document.selection.createRange().text;}void(window.open('http://site-url/wp-admin/post-new.php?text='+A(Q)+'&popupurl='+A(location.href)+'&popuptitle='+A(document.title)));

    One which works in the current window:
    javascript:function A(b){return (encodeURIComponent)?encodeURIComponent(b):escape(b);}Q='';if(window.getSelection){Q=window.getSelection();}else if (document.getSelection){Q=document.getSelection()}else if(document.selection){Q=document.selection.createRange().text;}location.href='http://site-url/wp-admin/post-new.php?text='+A(Q)+'&popupurl='+A(location.href)+'&popuptitle='+A(document.title);

Topic Closed

This topic has been closed to new replies.

About this Topic