[Typo3-dev] Help with extension (TCA?)

media.res | alex widschwendter a.widschwendter at mediares.at
Mon Mar 21 13:04:34 CET 2005


hi,

> The problem I am experiencing is a novice error I'm sure.  I have 
> successfully been able to filter the messages by the user.  Basically 
> what I did was write two new functions which translated the UID to the 
> username and checked the TO,CC,BCC table fields to see if the currently 
> logged in user can view the current message.  This works, but the count 
> is not correct.
> 
> I guess I was wondering how I can make a select where the uid must be in 
> any TO, CC or BCC.  The two functions I wrote look like this:

this should return the username of logged in user:
$GLOBALS["TSFE"]->fe_user->user['username'];


> They work, but I shouldn't be using my functions to do this because the 
> $this->internal is handling the DB call.  Is there a way to filter the 
> messages based on the current user id against the comma separated list 
> of the UID relation to fe_users? 

function inList($in_list,$item);

t3lib_div::inList($GLOBALS['TSFE']->fe_user->user['uid'], $m_to);


The problem that I am having is that
> the results that are returned are all messages, not filtered ones.  The 
> end-result is that even if the user has no messages displayed (filtered 
> with my functions), it still reports the number of rows from the 
> unfiltered list.  The other problem is that if a user has 2 messages, 
> and those messages are not in the same result set (page 1 vs page 2), 
> they still have to go to the next page to view the next message.

but i don't understand your problem ...

alex




More information about the TYPO3-dev mailing list