PDA

View Full Version : Unexpected problem with "$vbulletin->" variable


luroca
10-01-2005, 10:12 PM
Hello, this question is for vb 3.5.0 gold
If I used in /root/global.php:

eval('$candoit = in_array($vbulletin->userinfo[usergroupid], array(' . $vbulletin->options[can_do] . '));');

I get:
parse error, unexpected T_STRING in /home/myforum/public_html/vbtest/global.php on line xxx

When I used "in_array($bbuserinfo[usergroupid]" instead of "in_array($vbulletin->userinfo[usergroupid]" it was OK.

What´s wrong with "($vbulletin->userinfo[usergroupid]"?

Thanks in advance

filburt1
10-01-2005, 10:21 PM
What are you trying to do?

Andreas
10-01-2005, 10:32 PM
eval('$candoit = in_array($vbulletin->userinfo[usergroupid], array($vbulletin->options[can_do]));');

But what are you trying to do?

luroca
10-02-2005, 07:06 AM
Hello, thank you very much to both, specially to KirbyDE, now I think it?s OK :)
I am trying to upgrade this hack https://vborg.vbsupport.ru/showthread.php?s=&threadid=70966 to vb 3.5.0 as a product.

Thanks again.