[development] Block PHP code returns true

Tony Guntharp fusion94 at damagestudios.net
Thu Aug 30 23:36:55 UTC 2007


Rob,
I am using that in the block visibility PHP code yes. The cookie is  
in firefox yet it's not showing the block. A var_dump is returning:   
bool(false)

-t

Tony Guntharp
Co-Founder SourceForge.net
fusion94 at damagestudios.net	
1-415-692-5507
1-415-680-5361


On Aug 30, 2007, at 3:48 PM, Rob Barreca wrote:

> 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