| Re: Guide, how to solve problems caused by Wordbook |
| by McDonald on 2008/10/15 9:44:18 Wordbook 1.16 has some overkill when it comes to the use of 'global'. Ofter $xoopsUser is listed twice as you can see in entry.php: le="color: #000000"><?php global $xoopsUser, $xoopsUser, $xoopsConfig, $xoopsDB, $modify, $xoopsModuleConfig, $xoopsModule, $XOOPS_URL; Also, this typo has been found a few times: le="color: #000000"><?php list($numrows) = $xoopsDB -> fetchRow($xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB -> prefix("wbentries")." WHERE submit = 'O' AND offline = '0'")); This is line 155 from index.php. Instead of submit = 'O' (Ooooh) it should be submit = '0' (zero). I think that Encyclopedia, which is based on Wordbook 1.17 beta, has similar problems. |
| Re: Guide, how to solve problems caused by Wordbook |
| by Anonymous on 2008/10/15 9:33:02 Excellent - thank you
|
| Guide, how to solve problems caused by Wordbook |
| by hervet on 2008/10/15 8:24:07 Hello, Wordbook's blocks can cause many troubles to the other modules. Here is a fix. Edit /xoops/modules/wordbook/blocks/entries_top.php and replace line 13 : le="color: #000000"><?php global $xoopsDB, $xoopsModule, $xoopsUser; with : le="color: #000000"><?php global $xoopsDB; edit /xoops/modules/worbook/blocks/entries_new.php replace line 12 : le="color: #000000"><?php global $xoopsDB, $xoopsModule, $xoopsModuleConfig, $xoopsUser; with : le="color: #000000"><?php global $xoopsDB, $xoopsUser; and finally, in /xoops/modules/wordbook/blocks/random_term.php replace line 13 : le="color: #000000"><?php global $xoopsDB, $xoopsConfig, $xoopsModule, $xoopsModuleConfig, $xoopsUser; with : le="color: #000000"><?php global $xoopsDB, $xoopsConfig, $xoopsUser; A side effect of the bugs of its blocks is that other modules "loose" their preferences (and many things else like comments). Bye, Hervé |