As i thought is the problem here:
if ( $can_post == 1 ) {
$xoopsTpl->assign(array('viewer_can_post' => true, 'forum_post_or_register' => "<a href="newtopic.php?forum=".$forum.""><img src="".$bbImage['post']."" alt=""._MD_POSTNEW."" /></a>"));
} else {
$xoopsTpl->assign('viewer_can_post', false);
if ( $show_reg == 1 ) {
$xoopsTpl->assign('forum_post_or_register', '<a href="'.XOOPS_URL.'/user.php?xoops_redirect='.htmlspecialchars($xoopsRequestUri).'">'._MD_REGTOPOST.'</a>');
} else {
$xoopsTpl->assign('forum_post_or_register', '');
}
}
So there is the problem? It is $xoopsRequestUri) which in this chase redirect including the values to user.php, but instead of
http://www.iis-resources.com/user.php?xoops_redirect=/modules/newbb/viewtopic.php?topic_id=1223&forum=3&post_id=5607#forumpost5607
it shows
http://www.iis-resources.com/user.php?xoops_redirect=/modules/newbb/viewtopic.php
so everything including ? (topic_id=1223&forum=3&post_id=5607#forumpost5607) is gone.
Why is this?
in common.php line 229:
$xoopsRequestUri = @xoops_getenv('REQUEST_URI');
if (!$xoopsRequestUri) {
$xoopsRequestUri = (!$rq = xoops_getenv('SCRIPT_NAME')) ? getenv('REQUEST_URI') : $rq;
}
Running PHP 4.3 under IIS 5 on Windows XP, there is no $_SERVER['REQUEST_URI'] variable. This seems to fix it:
if(!isset($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = substr($_SERVER['argv'][0], strpos($_SERVER['argv'][0], ';') + 1);
}
But here the Core devs have to look in it
In the newbb there are 2 files using this:
viewtopic.php and viewforum.php,
i will use in the new newbb now a different way to eliminate this problem.