Feature #8347
Make default Gravatar configurable
| Status: | New | Start date: | 2010-06-18 | ||
|---|---|---|---|---|---|
| Priority: | Should have | Due date: | |||
| Assignee: | - | % Done: | 10% |
||
| Category: | - | ||||
| Target version: | - | Estimated time: | 0.25 hour | ||
| Votes: | 0 |
Description
This patch is for t3blog version 0.9.1
Change line 272 of file pi1\widgets\blogList\class.blogList.php from:
$default = t3lib_div::locationHeaderUrl(t3lib_extMgm::siteRelPath($this->extKey). 'icons/gravatar.png');
to
$default = ($this->conf['gravatarDefaultIcon']) ? t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $this->conf['gravatarDefaultIcon'] : t3lib_div::locationHeaderUrl(t3lib_extMgm::siteRelPath($this->extKey). 'icons/nopic_50_f.jpg');
Typoscript:
plugin.tx_t3blog_pi1.blogList.gravatarDefaultIcon = fileadmin/templates/xyz/gravatar.jpg
Associated revisions
- fix bug 7930: return the resulting selected array in the methods buildStaticInfoSelector and optionsConstructor
- new method needsInit which tells if the object has already been initialised
- fix bug 8347: Vorarlberg is correct for VB in Austria
- fix bug 8594: no default zone must be used if it does not fit to the default country
History
Updated by Dmitry Dulepov almost 3 years ago
- File 8347.diff added
- % Done changed from 0 to 10
Gravatars are used in several places. Attached is a work in progress, not the final patch.
Updated by Felix Nagel over 2 years ago
We should add the TS to the pi1\widgets\blogList\setup.txt and to the documentation.
Updated by Dmitry Dulepov about 2 years ago
Btw, using t3lib_div::getIndpEnv('TYPO3_SITE_URL') . $this->conf['gravatarDefaultIcon'] is wrong because $this->conf['gravatarDefaultIcon'] may have a host part already (CDN host, for example). Such concatenations should never be used. t3lib_div::locationHeaderUrl() takes care of such cases.
Updated by Felix Nagel 12 months ago
Attached patch.