Heureka!
In der Datei typo3conf/ext/chc_forum/mod1/index.php folgende Änderunge einpflegen:
...
function main() {
global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS;
// Feel like doing some debugging? Uncomment this line for some help...
//$this->debug = 1; // uncomment for debugging;
// Modified by Marc Wöhlken (woehlken@quadracom.de)
// Set fpid (pid of forum we'll be working with) -- we prefer a fpid sent via post over one sent via get.
$this->fpid = t3lib_div::GPvar('fpid');
if ((!empty($this->fpid)) && ($this->id=='0') ) $this->id=$this->fpid;
// END
// Access check!
// The page will show only if there is a valid page and if this page may be viewed by the user
$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id, $this->perms_clause);
$access = is_array($this->pageinfo) ? 1 : 0;
if (($this->id && $access) || ($BE_USER->user['admin'] && !$this->id)) {
// Set the lang object
$this->lang = $LANG;
// Place post and get vars in an attribute -- easier to work with.
$this->post = $GLOBALS['HTTP_POST_VARS'];
$this->get = $GLOBALS['HTTP_GET_VARS'];
// Debugging...
if ($this->debug == 1) {
$this->content .= 'POST:'.t3lib_div::view_array($this->post).'<br />'; // uncomment for debugging.
$this->content .= 'GET:'.t3lib_div::view_array($this->get).'<br />'; // uncomment for debugging.
}
// Modified by Marc Wöhlken (woehlken@quadracom.de)
// Code moved to top of function
/*
// Set fpid (pid of forum we'll be working with) -- we prefer a fpid sent via post over one sent via get.
$this->fpid = $this->post['fpid'];
if (empty($this->fpid)) $this->fpid = $this->get['fpid'];
*/
// END
if ($this->fpid) {
$where = 'pid='.$this->fpid;
$qresults = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'tx_chcforum_f_conf', "pid=$this->fpid", '', '', '');
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($qresults)) {
$this->feusers_pid = $row['feusers_pid'];
}
}
...
Thx Daniel_S, war ein super Tipp!
CU
maxhb