PDA

View Full Version : Solved URL's of e-mails are not correct



tavenger5
09-02-12, 23:08
I'm seeing Google webmaster tools report incorrect URL's for e-mail addresses that have been linked. For example:
(Français) Ont besoin d'aide avec mon V600 (http://cellphoneforums.net/fr/********/t194160-avoir-de-gros-problèmes-ont-besoin-d-aide-avec-mon-v600.html)

The e-mail address in the first post links to http://cellphoneforums.net/fr/mailto:xxxxxxxxx*********

This only happens with translated pages.

If you go to the untranslated version Have big Problems need some help with my V600 (http://cellphoneforums.net/********/t194160-have-big-problems-need-some-help-my-v600.html) You'll see the e-mail address link is normal.

r.dziadusz
12-02-12, 19:29
I can see it, i will try to recreate error in our test forum and find the way to solve it

r.dziadusz
12-02-12, 22:29
Ok
Here is quick fix for you:

You have to edit file:
forum root -> includes -> vbenterprisetranslator_functions_url_tracking.php

Find:


if (false !== strpos($address, 'vbet_flag-')) {
return substr($address, 10);
}


And after it put:


if (false !== strpos($address, 'mailto:') && false !== strpos($address, '@')) {
return $address;
}


Please note that it will work for new posts

r.dziadusz
12-02-12, 22:29
Ok
Here is quick fix for you:

You have to edit file:
forum root -> includes -> vbenterprisetranslator_functions_url_tracking.php

Find:


if (false !== strpos($address, 'vbet_flag-')) {
return substr($address, 10);
}


And after it put:


if (false !== strpos($address, 'mailto:') && false !== strpos($address, '@')) {
return $address;
}

tavenger5
13-02-12, 21:58
Thanks for the fix. It will not work for existing posts?

r.dziadusz
14-02-12, 21:12
Sorry,
It should also work with existing posts, have you implemented solution?

tavenger5
15-02-12, 06:33
yes, thanks that fixed the problem.

r.dziadusz
15-02-12, 20:29
Happy to help you, if you need any further informations please ask, for any other issues please open new threads

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations made by vBET PRODUCER_PRODUCT_VERSION