Quote:
Originally Posted by Mooff
Per default the execution code in a cms-php widget is returning the date.
After you create the widget you have to click on "Configure" on the right and insert my code.
edit: let me clarify that one.
You have to delete that code, which is in there by default:
Code:
$output = date(vB::$vbulletin->options['dateformat']) . "<br />\n";
If you post additional code below that line nothing will happen. It just takes the output value - and doesn't even evaluate the rest.
|
That code is removed and replaced by your code. Yet the date still shows. When I refresh the page it goes away, but upon refreshing again its there again.
Sometimes when refreshing, I get this error:
Code:
Parse error: syntax error, unexpected '&' in /packages/vbcms/widget/execphp.php(191) : eval()'d code on line 17
or
Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /packages/vbcms/widget/execphp.php(191) : eval()'d code on line 14