Page 1 of 1
Disable snap.com preview for specific links
Posted: Sat Aug 23, 2008 12:54 am
by matsch
Hi,
anyone know how I can prevent the snap.com preview to pop up on some specific links or parts of the website?
The links are in one part of the entries.tpl of my template.
Regards,
matsch
Re: Disable snap.com preview for specific links
Posted: Sun Aug 24, 2008 12:44 am
by garvinhicking
Hi!
If you use the snapshotlinks plugin, you specify on which links it should operate (like <b>, <u> or <i>). If you configure it to <b> you can exclude certain links simply by NOT using <b> on the word you do not want to linkify. You could use <strong> instead for that word, for example.
(I don't use that plugin, so I hope I understood your question right)
Regards,
Garvin
Posted: Mon Aug 25, 2008 12:46 am
by matsch
Hi Garvin,
I am actually not quite sure what you mean. What do b, u and i have to do with a?

And where would I go to configure this anyway?
Right now all external links on my site trigger this (ugly) snap.com pop up. What I was hoping was something like this (in my entries.tpl):
Code: Select all
stopApplyingSnapCom();
<a href="http:/my.link.com/">MyLink</a>
...
startApplyingSnapComAgain();
Any ideas? I could also mark those a's with an id or a class...
Thanks,
matsch
Posted: Mon Aug 25, 2008 10:54 am
by garvinhicking
Hi!
Ah, I mixed it up with the Word-wikify function of that plugin.
For usual links: The javascript from snap.com is responsible for turning all links. I tried to find documentation on snap.com about the API for this javascript but couldn't find it.
Maybe their API has a way of specifying something like <a href="..." rel="nosnap"> to your links. You will need to ask their support if they have something like that, as it is unrelated to serendipity itself.
HTH,
Garvin
Posted: Mon Aug 25, 2008 10:58 am
by garvinhicking
Hi!
Ah, I mixed it up with the Word-wikify function of that plugin.
For usual links: The javascript from snap.com is responsible for turning all links. I tried to find documentation on snap.com about the API for this javascript but couldn't find it.
Maybe their API has a way of specifying something like <a href="..." rel="nosnap"> to your links. You will need to ask their support if they have something like that, as it is unrelated to serendipity itself.
HTH,
Garvin
Posted: Mon Aug 25, 2008 10:59 am
by garvinhicking
Hi!
Ah, I mixed it up with the Word-wikify function of that plugin.
For usual links: The javascript from snap.com is responsible for turning all links. I tried to find documentation on snap.com about the API for this javascript but couldn't find it.
Maybe their API has a way of specifying something like <a href="..." rel="nosnap"> to your links. You will need to ask their support if they have something like that, as it is unrelated to serendipity itself.
HTH,
Garvin
Posted: Mon Aug 25, 2008 11:00 am
by garvinhicking
Hi!
Ah, I mixed it up with the Word-wikify function of that plugin.
For usual links: The javascript from snap.com is responsible for turning all links. I tried to find documentation on snap.com about the API for this javascript but couldn't find it.
Maybe their API has a way of specifying something like <a href="..." rel="nosnap"> to your links. You will need to ask their support if they have something like that, as it is unrelated to serendipity itself.
HTH,
Garvin
Posted: Mon Aug 25, 2008 11:00 am
by garvinhicking
Hi!
Ah, I mixed it up with the Word-wikify function of that plugin.
For usual links: The javascript from snap.com is responsible for turning all links. I tried to find documentation on snap.com about the API for this javascript but couldn't find it.
Maybe their API has a way of specifying something like <a href="..." rel="nosnap"> to your links. You will need to ask their support if they have something like that, as it is unrelated to serendipity itself.
HTH,
Garvin
Posted: Mon Aug 25, 2008 11:01 am
by garvinhicking
Hi!
Ah, I mixed it up with the Word-wikify function of that plugin.
For usual links: The javascript from snap.com is responsible for turning all links. I tried to find documentation on snap.com about the API for this javascript but couldn't find it.
Maybe their API has a way of specifying something like <a href="..." rel="nosnap"> to your links. You will need to ask their support if they have something like that, as it is unrelated to serendipity itself.
HTH,
Garvin
Posted: Mon Aug 25, 2008 11:04 am
by garvinhicking
Hi!
Ah, I mixed it up with the Word-wikify function of that plugin.
For usual links: The javascript from snap.com is responsible for turning all links. I tried to find documentation on snap.com about the API for this javascript but couldn't find it.
Maybe their API has a way of specifying something like <a href="..." rel="nosnap"> to your links. You will need to ask their support if they have something like that, as it is unrelated to serendipity itself.
HTH,
Garvin
Posted: Mon Aug 25, 2008 12:06 pm
by garvinhicking
Hi!
Ah, I mixed it up with the Word-wikify function of that plugin.
For usual links: The javascript from snap.com is responsible for turning all links. I tried to find documentation on snap.com about the API for this javascript but couldn't find it.
Maybe their API has a way of specifying something like <a href="..." rel="nosnap"> to your links. You will need to ask their support if they have something like that, as it is unrelated to serendipity itself.
HTH,
Garvin
Posted: Mon Aug 25, 2008 12:16 pm
by matsch
Thanks Garvin,
I didn't know who to blame. Here is the answer (not tested yet):
18. How can I prevent specific links from having Snap Shots?
Add the 'snap_noshots' class to any link and it will not display the Snap Shot. For example:
<a class="snap_noshots" href="http://www.example.com">www.example.com</a>
Source:
http://www.snap.com/snapshots_faq.php
matsch
P.S.: One reply would've been enough...
