[TYPO3] php help in regards to frontend logins

dave typo typothree at gmail.com
Wed May 9 12:09:20 CEST 2007


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 the following:


          if ($HTTP_COOKIE_VARS["fe_typo_user"]) {
 $this->markContentArray["###DOWNLOAD_LINK###"] = '';

            if($this->conf['addDownloadLink']) {

                $this->markContentArray["###DOWNLOAD_LINK###"] = '<a
href="' . $info['origFile'] . '"' .
                        $target.$GLOBALS['TSFE']->ATagParams .
'>download original image</a>';
            	}
            }


but nothing worked, the ###DOWNLOAD_LINK### was still parsed, despite
the user not being logged in.

what else do i need to add in order to make it so that only logged in
users see the parsed marker ?

any help is appreciated.

-Dave


More information about the TYPO3-english mailing list