Error $track->id on Activity Stream for GPS Tools

vrcn
vrcn
  • vrcn
  • 13 months ago
Hi Maverick, there's an error on the track link that appear in the activity stream, the $track->id is 0 always but in the tracks table the ID that appears is OK (not 0).

This is my code, is ok I think, just copy paste.

                $link = JRoute::_('index.php?option=com_gpstools&view=gpstools&task=viewtrack&id='.$track->id . ":" . $track->alias.$this->getItemId());
$act = new stdClass();
$act->cmd = 'wall.write';
$act->actor = $user->id;
$act->target = 0; // no target
$act->content = '';
$act->app = 'wall';
$act->cid = 0;
$act->title = JText::_('{actor} ha subido una nueva ruta: <a style="color:#43a1b9 !important;" href="'.$link.'">'.$track->title.' <img src="http://www.teamrunning.es/images/ruta.png" style="vertical-align:middle;width:16px;height:16px;"></a>' );
$act->content = $track->description;
CFactory::load('libraries', 'activities');
CActivityStream::add($act);


Thanks in advanced Maverick.

Access to viewing replies is restricted.
Showing 10 of 10 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai