[TYPO3] Tutorial: tipafriend and sr_freecap
Fabian Koenig
koenig at bluhouse.de
Wed May 9 15:34:23 CEST 2007
Another little howto:
If you don't want to allow multiple recipients,
just go to your class.tx_tipafriend.php to line ~260 (function
validate...) and add
count(split(',',$tipData['recipient']))-1 == 0 &&
count(split('@',$tipData['recipient']))-1 == 1 &&
after
...
$tipData['name'] &&
$tipData['email'] &&
$tipData['recipient'] &&
...
Example:
...
if (
! (
$ret &&
$tipData['name'] &&
$tipData['email'] &&
$tipData['recipient'] &&
count(split(',',$tipData['recipient']))-1 == 0 &&
count(split('@',$tipData['recipient']))-1 == 1 &&
...
That's all.
hth.
Fabian (with-no-original-extension-in-his-Typo3-Project) König
More information about the TYPO3-english
mailing list