[development] Block PHP code returns true

Rob Barreca rob at electronicinsight.com
Thu Aug 30 22:48:39 UTC 2007


You're using that in the block visibility PHP code correct? What isn't 
working? If $_COOKIE['FONALITYreseller'] evaluates to TRUE the block 
will show. What's a var_dump($_COOKIE['FONALITYreseller']) give you?

Tony Guntharp wrote:
> All,
> I'm trying to show a block only if a particular cookie has been set. 
> Is there any reason why this statement isn't working?
>
> <?php
> if($_COOKIE['FONALITYreseller']) {
>   return TRUE;
> } else {
>   return FALSE;
> }
> ?>
>
> thanks
>
> -t
>
> Tony Guntharp
> Co-Founder SourceForge.net
> fusion94 at damagestudios.net   
> 1-415-692-5507
> 1-415-680-5361
>
>
>
>


More information about the development mailing list