Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Bookmarklets
Thanks Chris – that solves a long standing problem I had with the other add link bookmarklets.
Cheers,
Jon VC#9
Offline
#14 2004-11-23 08:39:44
- timtak
- New Member
- Registered: 2004-08-12
- Posts: 2
Re: Bookmarklets
It seems to open the entry page, not the link page, for me.
Also the new window is blocked by my popup blocker.
Tim
Offline
#15 2004-11-23 16:25:23
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: Bookmarklets
The window still doesn’t focus (even with <code>window.focus();</code>). And what is this with the “via” link? I mean, I’d love it if links/textile in the description actually worked, but I can’t see how you’re getting it to work. For me it breaks the link entirely when I spit them back out with <code><txp:link_feed_link /></code>. I’m assuming you’re using a plugin to spit those links out, or some other method?
Last edited by compooter (2004-11-23 16:30:27)
Offline
Re: Bookmarklets
timtak: what browser/pop-up blocker do you use? it pops up for me on Firefox 0.8 and 1.0
compooter: “via” is the link to referrer. and not quite understand what’s happening with your links.
Examples for this bookmarklet. Don’t forget to change SITE.COM —> into your site URL.
example1: add link [link to referrer as (via)]
<code>javascript:refsite=document.referrer;slashindex=refsite.indexOf(‘/’,8);refsite=refsite.substring(7,slashindex);void(txp_link=window.open(‘http://SITE.COM/textpattern/index.php?event=link&bm=1=‘escape(document.title)’&linkname=‘escape(document.title)’&url=‘escape(window.location.href)’&description=‘escape(‘(<a href=%22’+document.referrer’%22>via</a>)’),’_blank’,‘width=640,height=350,status=yes,resizable=yes,scrollbars=yes’));txp_link.focus();window.focus();</code>
example 2: add link [via (referrer link goes here)]
<code>javascript:refsite=document.referrer;slashindex=refsite.indexOf(‘/’,8);refsite=refsite.substring(7,slashindex);void(txp_link=window.open(‘http://SITE.COM/textpattern/index.php?event=link&bm=1=‘escape(document.title)’&linkname=‘escape(document.title)’&url=‘escape(window.location.href)’&description=‘escape(‘(via <a href=%22’+document.referrer’%22>‘refsite’</a>)’),’_blank’,‘width=640,height=350,status=yes,resizable=yes,scrollbars=yes’));txp_link.focus();window.focus();</code>
<small>Edit: sorry, wanted to post examples as links you can drag to your bookmarks, but all was smashed.</small>
Last edited by ChrisJ (2004-11-23 17:07:13)
Offline
#17 2004-11-23 17:22:50
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Re: Bookmarklets
yeah I understood exactly what you meant w/ the bookmarklet – & it still doesn’t focus. no big deal.
I’m also familiar with ‘via’ links. If you’d like an example of what I mean, this is the end result of what is spit out when using link_feed_link when you enter a ‘via’ link into the description:
<a href=“http://compooter.org/” title=“testing textile – (<a href=” http://compooter.org=”“>via</a>)”>testing (ignore me)
yes, broken. to see the example – you can see it live on my site under the ingestible links to teh right. but this is sort of fodder for some other thread. you can disregard this whole spiel ;-)
Last edited by compooter (2004-11-23 18:24:03)
Offline
Re: Bookmarklets
I try this but I keep getting an error:
Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked.
Is there something that I need to do to make this work?
Rayne
mama love
Offline
#19 2006-08-11 10:28:13
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Bookmarklets
I checked these bookmarkelts to insert links into txp link section but both do not work (anymore) for me in FF.
Anybody having a bookmarklet to insert links…??
Offline
Re: Bookmarklets
Hi alex would this help you?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#21 2006-08-11 17:16:55
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Bookmarklets
Hi Yiannis, not really… i look for a javascript bookmarklet which enables me to post links directly into TXP backend -> to the linksection. you know these bookmarklets for del.icio.us or Magnolia… such one i need for txp. Best one which works with Opera.
Offline
Re: Bookmarklets
I’m not sure if I understood 100% but would something like this help?
javascript:location.href='http://site.com/textpattern/?event=link&url='+encodeURIComponent(location.href)+'&linkname='+encodeURIComponent(document.title)
the code is based on the ‘post to my delicious’ one.
Create a new bookmark in your browser and paste the above in the address field after editing site.com with your site address
You have to be logged in your txp install to use it. (only tested on FF Mac)
Last edited by colak (2006-08-12 06:31:25)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#23 2006-08-13 14:54:48
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Bookmarklets
Wow cool Yiannis :)!! Works like a charm on FF and Opera 8.5. Thanks so much. I needed this for TXP mag cuz i did not find a decent way to get the links into txp backend.
Last edited by alexandra (2006-08-13 15:00:30)
Offline
Re: Bookmarklets
glad I could help:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline