[TYPO3] Redirect at Login problem

Marlies C mc at mcuniverse.com
Thu Jan 12 14:28:10 CET 2006


"Olivier Dobberkau" <olivier.dobberkau at dkd.de> wrote in message 
news:mailman.1.1137059918.12427.typo3-english at lists.netfielders.de...

>
> hi marlies,
>
> the extension was written for version 3.5 and works there.
> please do not expect it to work with any other version. :-(
>
> have a look at the pi classes.
>
> class tx_dkdredirectatlogin {
>     function main($conf,$parentObj) {
>         if(!$conf['redirect_url']) {
>
> if($GLOBALS["TSFE"]->fe_user->user['tx_dkdredirectatlogin_redirectpage']) 
> {
>                 $redirectPage = 
> $GLOBALS["TSFE"]->fe_user->user['tx_dkdredirectatlogin_redirectpage'];
>             } else {
>                 $groupData = $GLOBALS["TSFE"]->fe_user->groupData;
>                 $query = "SELECT tx_dkdredirectatlogin_redirectpage FROM 
> ".$GLOBALS["TSFE"]->fe_user->usergroup_table." WHERE 
> tx_dkdredirectatlogin_redirectpage AND uid IN 
> (".implode(",",$groupData["uid"]).") ORDER BY uid";
>                 $res = @mysql(TYPO3_db,$query);
>                 while($row = mysql_fetch_assoc($res)) {
>                     if($row['tx_dkdredirectatlogin_redirectpage']) {
>                         $redirectPage = 
> $row['tx_dkdredirectatlogin_redirectpage'];  //take the first group with a 
> redirect page
>                         break;
>                     }
>                 }
>             }
>             $conf['redirect_url'] = 
> $parentObj->pi_getPageLink($redirectPage);
>         }
>         return $conf['redirect_url'];
>     }
> }
>
> it could be that some dbal stuff needs to done. or that some other ext is 
> preventing it to work. or that the function is already in the version of 
> typo3 you have installed...
>
> greetings,
>
> olivier
>
>
>

Thanks Oliver. I will pass the info on to the boys. They understand coding 
better than me.

Greetings,
Marlies
www.enomaly.net





More information about the TYPO3-english mailing list