Marcus
Well-known member
I want to add a "&node_id=..." to my virtual forums.
This is the class (the editor here does not keep tabs from my windows notepad as well as eclipse):

This is the class (the editor here does not keep tabs from my windows notepad as well as eclipse):
PHP:
<?php
class VirtualForums_Route_Prefix_Threads extends XFCP_VirtualForums_Route_Prefix_Threads
{
public function buildLink($originalPrefix, $outputPrefix, $action, $extension, $data, array &$extraParams)
{
$response = parent::buildLink();
if(isset($response->params['data']['myforumId']))
{
$response->params['extraParams']['node_id'] = $response->params['data']['myforumId'];
}
return $response;
}
}
