How to remove SKYPE plugin-in effect on Coppermine galleries How to remove SKYPE plugin-in effect on Coppermine galleries
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to remove SKYPE plugin-in effect on Coppermine galleries

Started by mr5, December 06, 2010, 06:44:48 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

mr5

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.

Αndré

Quote from: mr5 on December 06, 2010, 06:44:48 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
File current/total
to something like
File current of total

mr5

Thanks Andre,

A long discussion is e.g. here 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...   


Αndré

Quote from: mr5 on December 06, 2010, 07:37:57 PM
found also this 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.


Αndré


mr5

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.

mr5


mr5

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.

mr5

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...

Αndré

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.


Αndré


mr5

Sorry Andre,
I just saw your input... Will try a new version later today

mr5