Thanks for the help kh99, now I understand how to call the phrase with variables.
I have bigger problems though. For some reason it doesn't seem to be cycling through the code at all so I'll have to play with it more. I changed the php cdata to this:
Code:
if ($vbulletin->options['posts_last_x_hours_enabled'])
{
$timeframe = '*';
$posts_last_x_hours = '*';
$posts_last_x_hours = construct_phrase($vbphrase['posts_in_last_x_hours'], $posts_last_x_hours, $timeframe);
$templater->register('posts_last_x_hours', $posts_last_x_hours);
$templater->register('timeframe', $timeframe);
}
and the output is:
Code:
There have been post(s) in the last hours.
the "*" doesn't show up in my phrase for {1} or {2}, they come up blank within the phrase.
I'll have to keep playing with it.