• Before upgrading to WP2, I would like to know how I can post using the Press It feature (bookmarklet) the way it was in version 1.5.x I tried WP2 out, and noticed that when one clicks the press it button, you’re taken to the wordpress write a post, in the admin section. In WP 1.5.x when you use Press It, a window pops up with the selected text, and one can edit it and click Publish, withought ever having to go to the wordpress admin section.

    I tried modifying the Press It link from 1.5.x, but it won’t work with WP2. After looking at both of them, I nopticed that the 1.5.x link uses bookmarklet.php, as well as java script to pop open a window, whereas, the WP2 link takes you directly to post.php.

    I would really like to find a way which I can use the old method of posting with a Press It link, with word press 2. I will paste the code from the 2 links, and hopefully someone can help me solve this problem:

    Press It Link from WP 1.5.x
    javascript:if(navigator.userAgent.indexOf(‘Safari’) >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}void(window.open(‘https://marcustroiano.com/blog/wp-admin/bookmarklet.php?text=’+encodeURIComponent(Q)+’&popupurl=’+encodeURIComponent(location.href)+’&popuptitle=’+encodeURIComponent(document.title),’WordPress bookmarklet’,’scrollbars=yes,width=600,height=460,left=100,top=150,status=yes’));

    Press It link from WP 2.0.x
    javascript:if(navigator.userAgent.indexOf(‘Safari’) >= 0){Q=getSelection();}else{Q=document.selection?document.selection.createRange().text:document.getSelection();}location.href=’https://www.marcustroiano.com/sandbox/wp-admin/post.php?text=’+encodeURIComponent(Q)+’&popupurl=’+encodeURIComponent(location.href)+’&popuptitle=’+encodeURIComponent(document.title);

    If I use the 1.5.x code and change the url so that it will post to my gallery 2 site, the text formatting is doesnt work (the text you highlight is a bunch of t&d&f& etc…) and the options like post category and add Link are gone.

    I’m sure its something really easy, but I have no idea what it is as I’m not sure what exactly has been changed with WP2 which would affect using the bookmarklet, or rather, the Press It feature.

    Thanks in advance.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WP2 Press IT with bookmarklet.php not working’ is closed to new replies.