Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gravatar 2.0: Fix gravatar, remove twitter and identica #878

Merged
merged 11 commits into from
Mar 5, 2025
4 changes: 4 additions & 0 deletions docs/NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Version 2.6-alpha1 ()
------------------------------------------------------------------------

* Update bundled avatar plugin: Fix gravatar image fetching, remove
defunct options for identica and twitter avatars, and clean up
documentation,

* PHP 8.4 fix: Remove deprecated constant E_STRICT

* PHP 8 compatibility fixes for bundled XML/RPC.php
Expand Down
9 changes: 9 additions & 0 deletions plugins/serendipity_event_gravatar/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
Version 2.0:
------------------------------------------------------------------------
* Fix gravatar: Avatars could not be fetched
* Remove the defunct avatar options identica and twitter
* Reimplement favatar and pavatar options for better reliability
* Update wavatar generator
* Update documentation and translation
* Additional fixes for PH 8 compatibility

Version 1.63.1:
------------------------------------------------------------------------
* PHP 8 compatibility
Expand Down
338 changes: 338 additions & 0 deletions plugins/serendipity_event_gravatar/LICENSE

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions plugins/serendipity_event_gravatar/UTF-8/lang_cs.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

@define('PLUGIN_EVENT_GRAVATAR_NAME', 'Avatar Plugin');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Zobrazuje avatary (ikona či obrázek přispěvatele) v komentářích. Podporovány jsou služby Gravatar, Pavatar, Favatar a MyBlogLog.');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Zobrazuje avatary (ikona či obrázek přispěvatele) v komentářích. Podporovány jsou služby Gravatar, Pavatar a Favatar.');

@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY', 'Tvořit smarty tag');
@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY_DESC', 'Pokud je tato volba zapnuta, obrázky avatarů nejsou zapsány přímo do textu komentáře, ale je místo toho vygenerován tag {$comment.avatar} pro šablonovací systém smarty. Pak budou avatary zobrazovat pouze styly vzhledu, které tento tag používají. Nejjednodušší způsob, jak zjistit, jestli Váš styl vzhledu podporuje avatary, je vyzkoušet zapnout toto nastavení.');
Expand Down Expand Up @@ -51,10 +51,9 @@

@define('PLUGIN_EVENT_GRAVATAR_LONG_DESCRIPTION', '<b><a href="http://www.gravatar.com" target="_blank">Gravatar</a></b> je centrální úložiště obrázků uživatelů spřažené s emailovou adresou, ' .
'<b><a href="http://www.peej.co.uk/projects/favatars.html" target="_blank">Favatar</a></b> poskytuje favicony načtené z osobních stránek uživatele, <b><a href="http://www.pavatar.com" target="_blank">Pavatar</a></b> ' .
'jsou obrázky uložené na osobních stránkách pisatele, <b><a href="http://www.mybloglog.com" target="_blank">MyBlogLog avatar</a></b> jsou centrálně ukládané obrázky a ' .
'<b><a href="http://www.splitbrain.org/go/monsterid" target="_blank">Monster ID</a></b>, <b><a href="http://scott.sherrillmix.com/blog/blogger/wp_identicon/" target="_blank">Identicon</a></b> a <b><a href="http://www.shamusyoung.com/twentysidedtale/?p=1462" target="_blank">Wavatar</a></b> avatary jsou nahrávané obrázky vytvořené jednotlivými uživateli.');
@define('PLUGIN_EVENT_GRAVATAR_EXTLING_WARNING', '<font color="red">POZOR!</font> Tento plugin musí být zařazen před všemi pluginy, které mění odkazy (jako např. plugin "exit tracking plugin")! ' .
'<font color="red">Jinak nebudou pracovat avatary služeb Pavatar, Favatar a MayBlogLog!</font>');
'<font color="red">Jinak nebudou pracovat avatary služeb Pavatar a Favatar!</font>');

@define('PLUGIN_EVENT_GRAVATAR_FALLBACK', 'Gravatar fallback');
@define('PLUGIN_EVENT_GRAVATAR_FALLBACK_DESC', 'Gravatar má implementovaných několik návratových metod pro případ, že pro požadovaného uživatele není znám žádný avatar. Implementovány jsou též Moster ID, Identicon a Wavatar. Pokud vyberete některý z těchto zíněných, nebudou uskutečňovány žádné další pokusy o načtení avataru, pokud uživatel zadá email.');
Expand Down
2 changes: 1 addition & 1 deletion plugins/serendipity_event_gravatar/UTF-8/lang_cz.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

@define('PLUGIN_EVENT_GRAVATAR_NAME', 'Avatar Plugin');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Zobrazuje avatary (ikona či obrázek přispěvatele) v komentářích. Podporovány jsou služby Gravatar, Pavatar, Favatar a MyBlogLog.');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Zobrazuje avatary (ikona či obrázek přispěvatele) v komentářích. Podporovány jsou služby Gravatar, Pavatar a Favatar.');

@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY', 'Tvořit smarty tag');
@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY_DESC', 'Pokud je tato volba zapnuta, obrázky avatarů nejsou zapsány přímo do textu komentáře, ale je místo toho vygenerován tag {$comment.avatar} pro šablonovací systém smarty. Pak budou avatary zobrazovat pouze styly vzhledu, které tento tag používají. Nejjednodušší způsob, jak zjistit, jestli Váš styl vzhledu podporuje avatary, je vyzkoušet zapnout toto nastavení.');
Expand Down
13 changes: 5 additions & 8 deletions plugins/serendipity_event_gravatar/UTF-8/lang_de.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

@define('PLUGIN_EVENT_GRAVATAR_NAME', 'Avatar Plugin');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Avatare bei Kommentaren anzeigen. Unterstützt werden Gravatare, Pavatare, Favatare, Twitter, Identica und MyBlogLog Avatare');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Avatare bei Kommentaren anzeigen. Unterstützt werden Gravatare und Alternativen wie Favatare.');

@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY', 'Smarty Tag erzeugen');
@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY_DESC', 'Wenn diese Option eingeschaltet ist, so wird das Avatar Bild nicht direkt in den Kommentar geschrieben, sondern es wird ein Smarty Tag {$comment.avatar} erzeugt, in dem der HTML Code des Images steht. Sie sollten diese Option nur einschalten, wenn sie wissen, dass ihr Template dieses Smarty Tag unterstützt. Ob das der Fall ist, sollten sie einfach ausprobieren.');
Expand Down Expand Up @@ -49,14 +49,11 @@
@define('PLUGIN_EVENT_GRAVATAR_AUTOR_ALT_DESC', 'Normaler Weise wird der Autorenname im TITLE Attribut des Avatar Bildes angegeben, das ALT Attribut wird mit einem * gefüllt, um das Seitenlayout nicht zu zerstören, wenn der Browser das Bild nicht laden kann. Allerdings wird blinden Lesern das ALT Attribut vorgelesen. Falls Sie diese Leser unterstützen wollen, sollten Sie diese Option einschalten.');

@define('PLUGIN_EVENT_GRAVATAR_LONG_DESCRIPTION', '<b><a href="http://www.gravatar.com" target="_blank">Gravatare</a></b> werden von einem zentralem Server anhand der EMail Information des Kommentators abgeholt, ' .
'<b><a href="http://www.peej.co.uk/projects/favatars.html" target="_blank">Favatare</a></b> sind die favicons auf der Homepage, die der Kommentator angegeben hat, ' .
'<b><a href="http://twitter.com" target="_blank">Twitter</a></b> lädt Bilder aus Twitter Profilen, ' .
'<b><a href="http://identi.ca" target="_blank">Identica</a></b> lädt Bilder aus Identica Profilen, ' .
'<b><a href="http://www.pavatar.com" target="_blank">Pavatare</a></b> zeigen auf ein Bild, das der Besucher auf seiner Homepage hat, ' .
'<b><a href="http://www.mybloglog.com" target="_blank">MyBlogLog Avatare</a></b> werden von einem zentralen Server geladen und ' .
'<b><a href="http://www.splitbrain.org/go/monsterid" target="_blank">Monster ID</a></b>, <b><a href="http://scott.sherrillmix.com/blog/blogger/wp_identicon/" target="_blank">Identicon</a></b> und <b><a href="http://www.shamusyoung.com/twentysidedtale/?p=1462" target="_blank">Wavatar</a></b> Avatare sind lokal erstellte und für jeden Schreiber einzigartige Bilder.');
'<b>Favatare</b> sind die Favicons auf der Homepage, die der Kommentator angegeben hat, ' .
'<b><a href="http://pavatar.github.io/pavatar/" target="_blank">Pavatare</a></b> zeigen auf ein Bild, das der Besucher auf seiner Homepage hat, ' .
'<b><a href="https://www.splitbrain.org/go/monsterid" target="_blank">Monster ID</a></b>, <b><a href="http://scott.sherrillmix.com/blog/blogger/wp_identicon/" target="_blank">Identicon</a></b> und <b><a href="https://www.shamusyoung.com/twentysidedtale/?p=1462" target="_blank">Wavatar</a></b> Avatare sind lokal erstellte und für jeden Schreiber einzigartige Bilder.');
@define('PLUGIN_EVENT_GRAVATAR_EXTLING_WARNING', '<font color="red">ACHTUNG!</font> Dieses Plugin muss vor allen Plugins ausgeführt werden, die Links verändern (wie z.B. das Exit Tracking Plugin)!<br/>' .
'<font color="red">Ansonsten werden Pavatare, Favatare und MyBlogLog Avatare nicht funktionieren!</font>');
'<font color="red">Ansonsten werden Pavatare und Favatare nicht funktionieren!</font>');

@define('PLUGIN_EVENT_GRAVATAR_FALLBACK', 'Gravatar Fallback');
@define('PLUGIN_EVENT_GRAVATAR_FALLBACK_DESC', 'Gravatar implementiert einige eigene Fallback Methoden für den Fal, dass kein Gravatar für den Benutzer gefunden wurde. Es wurde ebenso Moster ID, Identicon und Wavatar. Wenn Du einen dieser Fallbacks einstellst, so wird keine weitere Methode nach Gravatar versucht, falls der Benutzer eine EMail angegeben hat.');
Expand Down
2 changes: 1 addition & 1 deletion plugins/serendipity_event_gravatar/UTF-8/lang_pl.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

@define('PLUGIN_EVENT_GRAVATAR_NAME', 'Avatar Plugin');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Pokazuje avatary w komentarzach. Gravatars, Pavatars, Favatars und MyBlogLog avatars are supported.');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Pokazuje avatary w komentarzach.');

@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY', 'Produce smarty tag');
@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY_DESC', 'If this option is switched on, the avatar images are not written directly into the comment output but a smarty tag {$comment.avatar} is produced. Only templates, that support this smarty tag, will display the avatar, if this option is set to true. The best way is to try it, if your template supports this smarty tag.');
Expand Down
3 changes: 1 addition & 2 deletions plugins/serendipity_event_gravatar/UTF-8/lang_ru.inc.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

@define('PLUGIN_EVENT_GRAVATAR_NAME', 'Плагин аватаров');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Показ аватаров внутри комментариев. Поддерживаются Gravatar, Pavatar, Favatar, Twitter, Identica и MyBlogLog.');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Показ аватаров внутри комментариев. Поддерживаются Gravatar, Pavatar и Favatar');

@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY', 'Создать тег Smarty');
@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY_DESC', 'Если эта опция включена, изображения аватара не записываются непосредственно в вывод комментария, но создаётся тег smarty {$comment.avatar}. Только шаблоны, поддерживающие этот тег Smarty, будут отображать аватар, если для этой опции установлено значение "Да". Лучший способ - попробовать это, если Ваш шаблон поддерживает этот тег Smarty.');
Expand Down Expand Up @@ -46,7 +46,6 @@
'<b><a href="http://www.peej.co.uk/projects/favatars.html" target="_blank">Favatar</a></b> являются иконками сайта (favicon) писателя, ' .
'<b><a href="http://www.pavatar.com" target="_blank">Pavatar</a></b> являются изображениями на сайте автора, ' .
'<b><a href="http://twitter.com" target="_blank">Twitter</a></b> загружает изображения профиля в Twitter, ' .
'<b><a href="http://identi.ca" target="_blank">Identica</a></b> загружает изображения профиля identi.ca, ' .
'<b><a href="http://www.mybloglog.com" target="_blank">Аватары MyBlogLog</a></b> снова являются централизованными изображениями аватаров и ' .
'<b><a href="http://www.splitbrain.org/go/monsterid" target="_blank">Monster ID</a></b>, <b><a href="http://scott.sherrillmix.com/blog/blogger/wp_identicon/" target="_blank">Identicon</a></b> и <b><a href="http://www.shamusyoung.com/twentysidedtale/?p=1462" target="_blank">Wavatar</a></b> являются локально созданными изображениями монстров, уникальными для каждого автора.');
@define('PLUGIN_EVENT_GRAVATAR_EXTLING_WARNING', '<font color="red">ОСТОРОЖНО!</font> Этот плагин должен быть запущен перед любым плагином, изменяющим ссылки (например, плагин отслеживания выхода)! ' .
Expand Down
21 changes: 0 additions & 21 deletions plugins/serendipity_event_gravatar/documentation_de.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ <h2>Inhalt</h2>
<li><a href="#avt_gravatar">Gravatar</a></li>
<li><a href="#avt_pavatar">Pavatar</a></li>
<li><a href="#avt_favatar">Favatar</a></li>
<li><a href="#avt_twitter">Twitter</a></li>
<li><a href="#avt_identica">Identica</a></li>
<li><a href="#avt_mybloglog">MyBlogLog</a></li>
<li><a href="#avt_wavatar">Wavatar</a></li>
<li><a href="#avt_monsterid">MonsterID</a></li>
<li><a href="#avt_identicon">Identicon/YCon</a></li>
Expand Down Expand Up @@ -74,24 +71,6 @@ <h3>Favatar</h3>
<p>Das Blog holt sich hier einfach das favicon der Homepage, die der Benutzer als seine URL angegeben hat. Dafür ist das favicon aber eben ein Icon und somit normaler Weise auch recht klein und nicht immer als Avatar geeignet.</p>
<p><a href="#top">top</a></p>

<a name="avt_twitter"></a>
<h3>Twitter</h3>
<p>Falls der Kommentator als URL ein <a href="http://twitter.com" target="_blank">Twitter Profil</a> angegeben hat, dann wird versucht, hier das Profilbild für diesen Benutzer zu laden.</p>
<p><i>Anmerkung</i>: Falls auch Favatare geladen werden sollen, dann muss Twitter vor diesen versucht werden, sonst wird das Favicon von Twitter geladen. Dies kann allerdings auch gewollt sein, um z.B. "Tweetbacks" von Twitter klar zu markieren.</p>
<p><a href="#top">top</a></p>

<a name="avt_identica"></a>
<h3>Identica</h3>
<p>Dies ist ein spezielles Avatar für <a href="http://identi.ca" target="_blank">Identica</a> Pingbacks. Es wird versucht, das Profilbild des Benutzers zu laden, der den Pingback ausgelöst hat.</p>
<p><i>Anmerkung</i>: Falls auch Favatare geladen werden sollen, dann muss Identica vor diesen versucht werden, sonst wird das Favicon von Identica geladen. Dies kann allerdings auch gewollt sein, um z.B. "Tweetbacks" von Identica klar zu markieren.</p>
<p><a href="#top">top</a></p>

<a name="avt_mybloglog"></a>
<h3>MyBlogLog</h3>
<p>Dies ist wieder ein (dem Gravatar Service sehr ähnlicher) zentraler Service. MyBlogLog ist eigentlich ein Blog Community Service, aber man kann aus diesem ebenfalls Avatare ermitteln</p>
<p>Das Vorhandensein eines MyBlogLog Avatars wird über die Homepage Angabe des Kommentators ermittelt.</p>
<p><a href="#top">top</a></p>

<a name="avt_wavatar"></a>
<h3>Wavatar</h3>
<p>Das Wavatar wird dynamisch erzeugt aus der Eingabe von Hompage und EMail des Kommentators. Es liefert für jeden Benutzer ein anderes aber immer selbes Avatar. Da es <strong>immer</strong> ein Avatar liefert, werden alle nachfolgenden Avatar Methoden ignoriert. Wavatare sehen in etwa wie folgt aus:</p>
Expand Down
5 changes: 2 additions & 3 deletions plugins/serendipity_event_gravatar/lang_cs.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

@define('PLUGIN_EVENT_GRAVATAR_NAME', 'Avatar Plugin');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Zobrazuje avatary (ikona �i obr�zek p�isp�vatele) v koment���ch. Podporov�ny jsou slu�by Gravatar, Pavatar, Favatar a MyBlogLog.');
@define('PLUGIN_EVENT_GRAVATAR_DESC', 'Zobrazuje avatary (ikona �i obr�zek p�isp�vatele) v koment���ch. Podporov�ny jsou slu�by Gravatar, Pavatar a Favatar.');

@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY', 'Tvo�it smarty tag');
@define('PLUGIN_EVENT_GRAVATAR_USE_SMARTY_DESC', 'Pokud je tato volba zapnuta, obr�zky avatar� nejsou zaps�ny p��mo do textu koment��e, ale je m�sto toho vygenerov�n tag {$comment.avatar} pro �ablonovac� syst�m smarty. Pak budou avatary zobrazovat pouze styly vzhledu, kter� tento tag pou��vaj�. Nejjednodu��� zp�sob, jak zjistit, jestli V� styl vzhledu podporuje avatary, je vyzkou�et zapnout toto nastaven�.');
Expand Down Expand Up @@ -51,10 +51,9 @@

@define('PLUGIN_EVENT_GRAVATAR_LONG_DESCRIPTION', '<b><a href="http://www.gravatar.com" target="_blank">Gravatar</a></b> je centr�ln� �lo�i�t� obr�zk� u�ivatel� sp�a�en� s emailovou adresou, ' .
'<b><a href="http://www.peej.co.uk/projects/favatars.html" target="_blank">Favatar</a></b> poskytuje favicony na�ten� z osobn�ch str�nek u�ivatele, <b><a href="http://www.pavatar.com" target="_blank">Pavatar</a></b> ' .
'jsou obr�zky ulo�en� na osobn�ch str�nk�ch pisatele, <b><a href="http://www.mybloglog.com" target="_blank">MyBlogLog avatar</a></b> jsou centr�ln� ukl�dan� obr�zky a ' .
'<b><a href="http://www.splitbrain.org/go/monsterid" target="_blank">Monster ID</a></b>, <b><a href="http://scott.sherrillmix.com/blog/blogger/wp_identicon/" target="_blank">Identicon</a></b> a <b><a href="http://www.shamusyoung.com/twentysidedtale/?p=1462" target="_blank">Wavatar</a></b> avatary jsou nahr�van� obr�zky vytvo�en� jednotliv�mi u�ivateli.');
@define('PLUGIN_EVENT_GRAVATAR_EXTLING_WARNING', '<font color="red">POZOR!</font> Tento plugin mus� b�t za�azen p�ed v�emi pluginy, kter� m�n� odkazy (jako nap�. plugin "exit tracking plugin")! ' .
'<font color="red">Jinak nebudou pracovat avatary slu�eb Pavatar, Favatar a MayBlogLog!</font>');
'<font color="red">Jinak nebudou pracovat avatary slu�eb Pavatar a Favatar!</font>');

@define('PLUGIN_EVENT_GRAVATAR_FALLBACK', 'Gravatar fallback');
@define('PLUGIN_EVENT_GRAVATAR_FALLBACK_DESC', 'Gravatar m� implementovan�ch n�kolik n�vratov�ch metod pro p��pad, �e pro po�adovan�ho u�ivatele nen� zn�m ��dn� avatar. Implementov�ny jsou t� Moster ID, Identicon a Wavatar. Pokud vyberete n�kter� z t�chto z�n�n�ch, nebudou uskute��ov�ny ��dn� dal�� pokusy o na�ten� avataru, pokud u�ivatel zad� email.');
Expand Down
Loading