Disable snap.com preview for specific links

Creating and modifying plugins.
Post Reply
matsch
Regular
Posts: 43
Joined: Wed Oct 26, 2005 7:59 pm

Disable snap.com preview for specific links

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Disable snap.com preview for specific links

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
matsch
Regular
Posts: 43
Joined: Wed Oct 26, 2005 7:59 pm

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
matsch
Regular
Posts: 43
Joined: Wed Oct 26, 2005 7:59 pm

Post 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... ;-)
Post Reply