11
Dave_L
Re: NewBB Module - Blank Page after submitting a posting
  • 2004/9/28 13:36

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


But I wouldn't rush to upgrade a production site just yet, especially without a backup.

(Just my personal policy of never trusting anything brand new. )

12
tedsmith
Re: NewBB Module - Blank Page after submitting a posting
  • 2004/9/28 14:33

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I've just learnt this the hard way cause I've upgraded, -reset all the permissions, and I can access the forums via the 'Recent Topics' block, but if I click on the forum menu all I see are my top catergories and nothing inbetween! Also, some of the graphics appear as missing links. Dam!!

13
tedsmith
Re: NewBB Module - Blank Page after submitting a posting
  • 2004/9/30 10:23

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I'd still be interested to know how to insert the code as described in lbkhorse's posting 5 posts back. My post after it is asking for clairification on it.

I had a problem with the installation of NewBB2 so have reverted back to NewBB standard for now.

14
tedsmith
Re: NewBB Module - Blank Page after submitting a posting
  • 2004/10/1 8:25

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


**BUMP**

15
tedsmith
Re:NewBB Module - Blank Page after submitting a posting
  • 2004/10/5 12:36

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I've just tried updating the templates of my cloned template set to see if this might resolve the problem (having read that updating the templates is necessary for the NewBB2 module). I then updated the module in sys\admin again. But alas, it didn't work either.

Any other suggestions apart from the flurry so far suggested?

I notice XOOPS are using the NewBB2 module. Has it been OFFICIALLY released now, cause all I can find are references to its RC status.

Thanks

Ted

16
libkhorse
Re:NewBB Module - Blank Page after submitting a posting
  • 2004/10/6 7:07

  • libkhorse

  • Just popping in

  • Posts: 4

  • Since: 2004/9/17


Hi! sorry, these day is our national day, so I'm on vacation. Now I'm back.
:)
I mean that just replace all contents in the /modules/newbb/include/notification.php (not the newbb\functions.php) with the following codes :

//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                                                    //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

if ( !defined('NEWBB_NOTIFY_ITEMINFO') ) {
define('NEWBB_NOTIFY_ITEMINFO'1);

    function 
newbb_notify_iteminfo($category$item_id)
    {
        
$module_handler =& xoops_gethandler('module');
        
$module =& $module_handler->getByDirname('newbb');

        if (
$category=='global') {
            
$item['name'] = '';
            
$item['url'] = '';
            return 
$item;
        }

        global 
$xoopsDB;
        if (
$category=='forum') {
            
// Assume we have a valid forum id
            
$sql 'SELECT forum_name FROM ' $xoopsDB->prefix('bb_forums') . ' WHERE forum_id = '.$item_id;
            
$result $xoopsDB->query($sql); // TODO: error check
            
$result_array $xoopsDB->fetchArray($result);
            
$item['name'] = $result_array['forum_name'];
            
$item['url'] = XOOPS_URL '/modules/' $module->getVar('dirname') . '/viewforum.php?forum=' $item_id;
            return 
$item;
        }

        if (
$category=='thread') {
            
// Assume we have a valid topid id
            
$sql 'SELECT t.topic_title,f.forum_id,f.forum_name FROM '.$xoopsDB->prefix('bb_topics') . ' t, ' $xoopsDB->prefix('bb_forums') . ' f WHERE t.forum_id = f.forum_id AND t.topic_id = '$item_id ' limit 1';
            
$result $xoopsDB->query($sql); // TODO: error check
            
$result_array $xoopsDB->fetchArray($result);
            
$item['name'] = $result_array['topic_title'];
            
$item['url'] = XOOPS_URL '/modules/' $module->getVar('dirname') . '/viewtopic.php?forum=' $result_array['forum_id'] . '&topic_id=' $item_id;
            return 
$item;
        }

        if (
$category=='post') {
            
// Assume we have a valid post id
            
$sql 'SELECT subject,topic_id,forum_id FROM ' $xoopsDB->prefix('bb_posts') . ' WHERE post_id = ' $item_id ' LIMIT 1';
            
$result $xoopsDB->query($sql);
            
$result_array $xoopsDB->fetchArray($result);
            
$item['name'] = $result_array['subject'];
            
$item['url'] = XOOPS_URL '/modules/' $module->getVar('dirname') . '/viewtopic.php?forum= ' $result_array['forum_id'] . '&topic_id=' $result_array['topic_id'] . '#forumpost' $item_id;
            return 
$item;
        }
    }
}
?>

17
libkhorse
Re:NewBB Module - Blank Page after submitting a posting
  • 2004/10/6 7:21

  • libkhorse

  • Just popping in

  • Posts: 4

  • Since: 2004/9/17


By the way!
The problem is caused by php's include_once() function and this function's case sensitive attribute. So when your host is based on windows, be careful at the XOOPS_ROOT_PATH defined in mainfile.php, make it all lowercase will be safe.
As that reason even the newbb2 will probably cause the problem too!

18
tedsmith
Re:NewBB Module - Blank Page after submitting a posting
  • 2004/10/6 11:58

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Oh my golly gosh!! It worked!! I'm so thankful I could cry!

In my case, the file was not named notification.php but notification.inc.php. I changed the file like you stated and it worked anyway. Perhaps you meant the second named file?

I also changed all the XOOPS_ROOT_PATH to lower case, but I got loads of php errors, so I changed that back again - it still works fine.

I'll have to write all this up so that I can apply the change when I upgrade to the next version (if it's still necessary by then).

Thanks again lbkhorse - you really are a super-trooper!

19
libkhorse
Re:NewBB Module - Blank Page after submitting a posting
  • 2004/10/7 4:04

  • libkhorse

  • Just popping in

  • Posts: 4

  • Since: 2004/9/17


Hi! tedsmith
It's nothing.

1. Sorry, I have made a mistake. the file name of mine is also notification.inc.php not notification.php.
2. I mean make sure the things in the second quote (here is E:/Www/xoops) in the following line in mainfile.php to be lowercase
define('XOOPS_ROOT_PATH', 'E:/Www/xoops');

So for better, this line after modified should be like :
define('XOOPS_ROOT_PATH', 'e:/www/xoops');

20
tedsmith
Re:NewBB Module - Blank Page after submitting a posting
  • 2004/10/7 8:14

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Gotcha. I misunderstood and thought you meant change the variable name itself from upper to lower case. I have changed my value to lower case like you suggest, and all is working great. Thanks again.

Login

Who's Online

276 user(s) are online (237 user(s) are browsing Support Forums)


Members: 0


Guests: 276


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits