It is possible. In fact, I don't think it's very difficult. In file includes/block/newposts.php, make this change, around line 81:
Code:
'datecut' => array(
'defaultvalue' => 30,
'displayorder' => 5,
'datatype' => 'integer'
),
'template' => array(
'defaultvalue' => 'block_newposts',
'displayorder' => 6,
'datatype' => 'free'
),
);
public function getData()
the part in red is added. Note that there's an added comma on the existing line before the added 'template' block.
Then around line 209:
Code:
// trim the title after fetching the urls
$postinfo[$key]['title'] = fetch_trimmed_title($post['title'], $this->config['newposts_titlemaxchars']);
}
$templater = vB_Template::create($this->config['template']);
$templater->register('blockinfo', $this->blockinfo);
$templater->register('posts', $postinfo);
return $templater->render();
The part in red is changed.
This seems to work but is missing the phrases for the labels on the config page. I'm sure that's just a matter of figuring out what the phrase name should be. Also if you have existing new posts blocks I'm not sure if they'll get the default value. They may disappear until you edit them and save them with a template name in the new field.