hello!
when reporting a post, the link i receive on the e-mail omits the topic number, like so:
http://www.mmofringe.com/index.php?option=com_joobb&view=topic&topic=&Itemid=55
when it should really be sending this:
http://www.mmofringe.com/index.php?option=com_joobb&view=topic&topic=848&Itemid=55
note the topic=848 on the second link.
as a result i get a "your request cannot be performed" message on my forums when re-directing from the link on the e-mail.
thanks for your help in advance!
i think ive located the proper file responsible for this: view.html.php under reportpost.
this is what it contains:
class JoobbViewReportPost extends JView
{
function display($tpl = null) {
global $mainframe;
// initialize variables
$postId = JRequest::getVar('post', 0, '', 'int');
// load form validation behavior
JHTML::_('behavior.formvalidation');
// handle page title
$this->document->setTitle(JText::_('BB_REPORTPOST'));
// handle bread crumb
$this->breadCrumbs->addBreadCrumb(JText::_('BB_REPORTPOST'), '');
$this->assignRef('postId', $postId);
// get buttons
$joobbButtonSet =& JoobbButtonSet::getInstance();
$this->assignRef('buttonSubmit', $joobbButtonSet->buttonByFunction['buttonSubmit']);
$this->assignRef('buttonCancel', $joobbButtonSet->buttonByFunction['buttonCancel']);
parent::display($tpl);
}
}
?>
i've highlighted where i think the problem might be.
anyone with any ideas?
Hi Troneas,
in \com_joobb\system\joobbmail.php (line 91) replace $row->topicId as shown below:
$topicLink = JRoute::_($this->siteURL.'index.php?option=com_joobb&view=topic&topic='.$row->id_topic.'&Itemid='.$Itemid);
@Robbie: You might want to change this in your SVN repository?
Kind regards,
Rainer
Quote by mn82:Hi Troneas,
in \com_joobb\system\joobbmail.php (line 91) replace $row->topicId as shown below:
$topicLink = JRoute::_($this->siteURL.'index.php?option=com_joobb&view=topic&topic='.$row->id_topic.'&Itemid='.$Itemid);
@Robbie: You might want to change this in your SVN repository?
Kind regards,
Rainer
you're the man!
thanks a bunch!