I am trying to insert custom fields into the randomizer but keep receiving error the following error:
>>>>>>>
Parse error: parse error, expecting `’)’’ in /home/pmh2501/public_html/b4bsysee/plugins/pi.randomizer.php on line 56
Fatal error: Cannot instantiate non-existent class: randomizer in /home/pmh2501/public_html/b4bsysee/core/core.template.php on line 597
<<< start code that is causing this error-
function set_one()
{
$quotes = array(
“ee {exp:weblog:entries weblog=“tagline” entry_id=‘39’} {tagline}{/exp:weblog:entries}”,
“test “,
“Last Do, or do not. There is no ‘try’. - Yoda”, // No comma after the last item
);
return $quotes[array_rand($quotes)];
}
>>> end code >>>
I have tried it with and without the quotes.
My goal is to generate random quotes from a specific weblog.
Thanks.
