CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #8347

Make default Gravatar configurable

Added by Felix Nagel almost 4 years ago. Updated almost 2 years ago.

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

8347.diff (1.5 kB) Dmitry Dulepov, 2010-08-04 15:50

0007-added-default-Gravatar-picture-see-http-forge.typo3..patch (1.9 kB) Felix Nagel, 2012-06-10 01:26

Associated revisions

Revision 9297
Added by Franz Holzinger almost 6 years ago

  • 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 over 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 3 years ago

We should add the TS to the pi1\widgets\blogList\setup.txt and to the documentation.

Updated by Dmitry Dulepov about 3 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.

Also available in: Atom PDF