[Typo3] Authenticated comment System

Michael Scharkow mscharkow at gmx.net
Sat Jun 11 14:05:28 CEST 2005


Francesco di Francia wrote:
> 
> Hi.
> 
> I hope i haven't choosed the wrong word, "authenticated".
> There's a comment extension or a way to hack a comment extension so only 
> registered users can write a comment AND they cannot insert a fake 
> username as sign of their comment ?

This requires only a three-line fix to either ve_guestbook or 
content_comments plugin.

> At the moment i can only permit comment to registered users, but a 
> logged in users can still sign the comment with a fake 
> username/nickname/name.

It would be easier if we knew what your current solution is.

Anyway, two snippets may help:

1.   if ($GLOBALS['TSFE']->loginUser)    {
	do stuff only for fe users;}

2. $reviewer = $GLOBALS['TSFE']->fe_user->user['username'];

Cheers,
Michael



More information about the TYPO3-english mailing list