[TYPO3] php help in regards to frontend logins
dave typo
typothree at gmail.com
Wed May 9 14:33:27 CEST 2007
so are we looking at syntax like this?
if ($logged = $GLOBALS["TSFE"]->fe_user->user == 8) {
$this->markContentArray["###DOWNLOAD_LINK###"] = '';
if($this->conf['addDownloadLink']) {
$this->markContentArray["###DOWNLOAD_LINK###"] = '<a
href="' . $info['origFile'] . '"' .
$target.$GLOBALS['TSFE']->ATagParams .
'>download original image</a>';
}
}
// also is 8 on the first line also be the uid of the user group?
logically this looks like it makes sense to me...
thanks again
-dave
On 5/9/07, Mauro Lorenzutti <mauro.lorenzutti at webformat.com> wrote:
> Hi Dave,
>
> Wednesday, May 9, 2007, 12:09:20 PM, you wrote:
>
> > Hi I'm trying to make it so that the marker ###DOWNLOAD_LINK###
> > within a php file only displays when a frontend user (belonging to a
> > specific group) is logged in
>
> > so I added the line if ($HTTP_COOKIE_VARS["fe_typo_user"]) {
>
>
> To get the logged in user you can use the following code:
>
> $logged = $GLOBALS["TSFE"]->fe_user->user;
>
> $logged will contain an array with all the FE user informations.
>
> Regards,
> Mauro Lorenzutti
>
>
> e-mail: mauro.lorenzutti at webformat.com
>
> ---------------------------------------------------------
> WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
> Tel +39-0427-926.389 -- Fax +39-0427-927.653
> info at webformat.com -- http://www.webformat.com
> ---------------------------------------------------------
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list