forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: mr5 on December 06, 2010, 06:44:48 pm

Title: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 06, 2010, 06:44:48 pm
Hello,
I realise that the problem is with SKYPE and not in Coppermine. However, it affects all CM gallery users if they have SKYPE installed and did not specifically disable SKYPE "turn number highlighting on" feature in their IE or FF browser (and it is enabled by default!).
Of course I can easily disable the feature in MY browser, but as an administrator of the gallery, I have no influence on what users have in their browsers, and not everyone will understand how this advertisement got into the gallery. Thus we need a modification that would disable the plugin effect in Coppermine.

When SKYPE plug-in finds a text that resembles a phone number (e.g. like in this gallery page - see sk1.jpg), it will replace it with the following "invitation" to call that "number" with Skype... (see attached sk2.jpg).

There are some suggestions on how to remove it in HTML or CSS, but I would like to have an "official" Coppermine code modification.

Thanks.
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: Αndré on December 06, 2010, 07:06:21 pm
There are some suggestions on how to remove it in HTML or CSS, but I would like to have an "official" Coppermine code modification.
Please post that suggestions or a link to them. It would be easy if we change
Code: [Select]
File current/totalto something like
Code: [Select]
File current of total
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 06, 2010, 07:23:43 pm
Thanks Andre,

A long discussion is e.g. here http://forum.skype.com/index.php?showtopic=96959 (http://forum.skype.com/index.php?showtopic=96959) Have also seen some other entries with strange modifications (can't find right now). But I think what You suggest is the simplest and easiest solution and realy makes no difference to CM community. The only question is wheather the number itself will not be treated as phone number? '45 out of 35687' - will it not replace 35687 with a phone, have no idea what the internal criteria is - may be only when it is a longer number...   
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 06, 2010, 07:37:57 pm
found also this  http://www.petefreitag.com/item/751.cfm (http://www.petefreitag.com/item/751.cfm) ...
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: Αndré on December 06, 2010, 07:59:36 pm
found also this  http://www.petefreitag.com/item/751.cfm (http://www.petefreitag.com/item/751.cfm) ...
That seems to me the best option. Should be very easy to create a plugin for this. Give me some time to create such a plugin. I'll post the plugin here, as I need you to test if it works.
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 06, 2010, 08:23:28 pm
Thanks, will wait.
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: Αndré on December 06, 2010, 08:58:55 pm
Please try that (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/skype_demarkup/?view=tar) plugin.
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 06, 2010, 09:13:12 pm
You are fast... Thanks!
But... I never used any plugins yet, so have no idea how to install it. All to the main directory? I will test on the life gallery, so want to be sure I understand what I do. Thanks.
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 06, 2010, 09:18:52 pm
Found in doc. OK, will do
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 06, 2010, 10:54:17 pm
Sorry, can't install the plugin. Plugin mgr does not show it as 'not installed'. The plugin coppermine-skype_demarkup is in plugin directory, I can see it together with others in the package but others are shown.
Debug (admin only) shows /include/functions.inc.php

    * Notice line 184: Undefined index: dbcharset

but all the gallery functions work perfect.
Sorry Andre.
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 07, 2010, 05:36:39 am
Hello Andre,
Good and bad news.
Good - it works! You can see the Skype insertion for a second or less, and then it disappears.
Bad - it works in most cases, but when you refresh the same page several times, sometimes Skype insertion stays even when the page is fully loaded. Matter of speed?
In any case, I thank you very much.
PS One should never do modifications late in the evening... left nested directories of the plugin on server...
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: Αndré on December 07, 2010, 07:53:36 am
The plugin waits 800ms before it removes the Skype stuff. Maybe that's not enough. You can manually adjust that value in the .js file.
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 07, 2010, 11:24:30 am
Thank you Andre
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: Αndré on December 07, 2010, 11:38:21 am
Please try the updated version (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/skype_demarkup/?view=tar).
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 29, 2010, 10:37:24 am
Sorry Andre,
I just saw your input... Will try a new version later today
Title: Re: How to remove SKYPE plugin-in effect on Coppermine galleries
Post by: mr5 on December 30, 2010, 06:19:22 am
Thanks Andre,
It works OK. Have a great year!