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.
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
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...
found also this http://www.petefreitag.com/item/751.cfm (http://www.petefreitag.com/item/751.cfm) ...
Quote from: 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) ...
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.
Thanks, will wait.
Please try that (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/skype_demarkup/?view=tar) plugin.
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.
Found in doc. OK, will do
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.
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...
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.
Thank you Andre
Please try the updated version (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/skype_demarkup/?view=tar).
Sorry Andre,
I just saw your input... Will try a new version later today
Thanks Andre,
It works OK. Have a great year!