Support » Plugin: Link Library » [Plugin: Link Library] "Add to Links" Bookmarklet not working – 404 error….

  • This looks like the same problem as with the “Press This” bookmarklet in Tools.

    The below fix works for it, but it’s not the same code for the “Add Links” bookmarklet, so it won’t work. But maybe someone can explain how to get it to work?

    Try this.
    
    It has to do with the URI Encoding getting mixed up with the mod_rewrite...
    
    the part where it says u='+e(l.href)+' change it to u='+e(l.href.replace(/\//g,'\\/'))+'
    
    so my 'Press This' code would be
    javascript:var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://wealthhack.com/wp-admin/press-this.php',l=d.location,e=encodeURIComponent,g=f+'?u='+e(l.href.replace(/\//g,'\\/'))+'&t='+e(d.title)+'&s='+e(s)+'&v=2';function a(){if(!w.open(g,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=720,height=570')){l.href=g;}}a();void(0);
    
    For my blog WealthHack.com your blog wil have your domain in the Press This link.

    http://wordpress.org/extend/plugins/link-library/

Viewing 1 replies (of 1 total)
  • This works….

    javascript:void(linkmanpopup=window.open('http://<<YourWPblogurl>>.com/wp-admin/link-add.php?action=popup&linkurl='+escape(location.href.replace(/\//g,'\\/'))+'&name='+escape(document.title),'LinkManager','scrollbars=yes,width=900px,height=600px,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus();

    basically just adding the

    .replace(/\//g,’\\/’)

    to the url is what does it.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Link Library] "Add to Links" Bookmarklet not working – 404 error….’ is closed to new replies.