Well, the basic functionality seems to work fine in 4.1.7

Added this "moron"-script in localconf.php:

function user_match ($cmd) {
   switch($cmd) {
     case "yup" :
       return true;
     break;
   }
}


Added this to a template:

quickMenu.uidList = 90,89,86

[userFunc = user_match(yup)]
   quickMenu.uidList = 90,89,86,461
[global]


Cleared cache (typo3conf & pages), reloaded page, and my list was 
extended as expected.


As you seem able to include & run your function from an external file, I 
guess you haven't changed your userFuncClassPrefix value from 'user_'?

Sorry, not much help here... :-[

Hope you solve it somehow,

/Mattias

pasqualeb wrote:
> Hi all,
> I need to use a user function condition. I made several attempt to  
> accomplish this but does not work at all.
> 
> At the present the user function is reduced to:
> 
> function user_check($cmd) {
>       return (TRUE);
> }
> 
> and the condition to
> 
> page.30 = TEXT
> page.30.value = FALSE
> [userFunc = user_check(Check)]
> page.30.value = TRUE
> [GLOBAL]
> 
> 
> a) following the TSref, I put the code in localconf.php without results;
> 
> b) I create a single file (user_check.php) in fileadmin/:
> <?
> 
> // echo 'TEST';
> 
> function user_check($cmd) {
>       return (TRUE);
> }
> 
> ?>
> 
> 
> and then used
> 
> page.includeLibs.user_check = fileadmin/user_check.php
> 
> in TS setup. Even in this case, no results.
> 
> c) I put an echo('TEST') at the very beginning of the file (see above)  
> anche checked that the file is correctly loaded.
> 
> I have checked several post on the mailing list, but without any result in  
> this simple case. Any suggestion?
> 
> 
> Any help will be greatly appreciated.
> Thanks,
> Pasquale Basile
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english@lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 

-- 
Mattias Borell
Systemingenjör
LUDC - Lunds Universitets Diabetes Center
CRC, Ingång 72, Hus 60, plan 13
205 02 Malmö

Tel: 040 39 12 27
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Reply via email to