[TYPO3-english] extension ratings without ip-check but with cookie ?

Ralf-René Schröder ralf.rene at online.de
Wed Oct 13 16:02:05 CEST 2010


i've tried to change the code in
ratings/class.tx_ratings_ajax.php:171

$GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_ratings_iplog',
   array(
	'pid' => $this->conf['storagePid'],
	'crdate' => time(),
	'tstamp' => time(),
	'reference' => $this->ref,
//	'ip' => $apiObj->getCurrentIp(), // alt
	'ip' => $GLOBALS["TSFE"]->fe_user->user["uid"], // neu: uid statt der IP mitloggen
   ));

an also the request in the api, but at first
nothing is stored in the table ip
what i'm doing wrong


-- 
Ralf-René Schröder
http://if-20.com  ... YAML templates for TYPO3
______________________________________________


More information about the TYPO3-english mailing list