Hey I just tried force feeding this critter to an elk. The elk didn't like it much. Got a bad case of indigestion.
After editing package-info.xml to suit 1.0 Alpha, the only apparent glitch was with the second edit in sources/Dispatcher.class.php:
<operation>
<search position="replace"><![CDATA[ // was it, wasn't it....
if (empty($this->_function_name))
{
$this->_file_name = $default_action['file'];
$this->_function_name = $default_action['function'];
}]]></search>
<add><![CDATA[ $tpAction = whichTPAction();
if (!empty($tpAction))
return $tpAction;
]]></add>
</operation>
So I found the corresponding code in the latest elk's intestines:
// was it, wasn't it....
if (empty($this->_function_name))
{
$this->_file_name = $default_action['file'];
if (isset($default_action['controller']))
$this->_controller_name = $default_action['controller'];
$this->_function_name = $default_action['function'];
}
And tried replacing it with this:
// Testing TP edits...
$tpAction = whichTPAction();
if (!empty($tpAction))
return $tpAction;
// End testing TP edits...
Result: one grumpy elk, which didn't want to play and was sulking in the corner.
Got the TP stuff from here, which I think is the right repo: https://github.com/engelnyst/elk-tiny-portal
ETA: Admin was ok, but trying to go to board index gave "Fatal error: Call to undefined function whichTPAction() in K:\VertrigoServ\www\elkarte_tp\sources\Dispatcher.class.php on line 108"
# Time Memory Function Location
1 0.0007 402592 {main}( ) ..\index.php:0
2 0.0310 4620976 elk_main( ) ..\index.php:143
3 0.0413 5020264 Site_Dispatcher->__construct( ) ..\index.php:209