1
kjs222
NewBB-> Making Notification Options Visible
  • 2003/11/15 15:06

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


Hi There,

Continuation of a problem before. I have a highly modified NewBB mod, and everything is working except for showing notification options (on any of the pages). I'll work through my problem-solving steps below, but my hope is to find someone who can lead me to the files that actually interface between the database forum_notification settings in _config and making the forums visible on the screen.

I have discovered that the problem is not to do with the database, as I can see the following entry for newbb in the config:

a:8:{i:0;s:15:"thread-new_post";i:1;s:15:"thread-bookmark";i:2;s:16:
"forum-new_thread";i:3;s:14:"forum-new_post";i:4;s:14:"forum-
bookmark";i:5;s:16:"global-new_forum";i:6;s:15:"global-new_post";i:7;s19:
"global-new_fullpost";}

This is correct (I believe), so this SHOULD mean that the problem with my notification options MUST be when trying to show the block.

I also know that notification options on other modules are working.

Now, my forum's templates seem in order, each with thier own:
<{include file='db:system_notification_select.html'}>

That means to me that the problem must be due to one of the changes I've made to my forum PHP files???

I'm feeling pretty lost right now. I belive that the notification_select.html file is a system teplate that gathers its information from each implementing module, however, I can't figure out what part of newbb is supposed to prep the variables for it.

Can anyone tell me where I can find interface between the database settings (notification_options_active) and the system notification selection on index.php, viewforum, and viewtopic?

Thanks,
Keith

2
kjs222
Re: NewBB-> Making Notification Options Visible
  • 2003/11/15 15:43

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


New Info:

I edited: system_notification_select.html and deleted the:
<{if $xoops_notification.show}>

The result was that the notification table showed at the bottom of the pages... BUT, there were no options inside the notification table. So... that means that there must be something wrong with prepping each notification category of the Forums (and not a problem with the system's notification stuff.

In the same way, I took out the initial if statement in forumform.inc.php

if (!empty($xoopsUser) && !empty($xoopsModuleConfig['notification_enabled'])) {

echo "";
echo "// Check previous subscribed status...
$notification_handler =& xoops_gethandler('notification');
if (!empty($topic_id) && $notification_handler->isSubscribed('thread', $topic_id, 'new_post', $xoopsModule->getVar('mid'), $xoopsUser->getVar('uid'))) {
echo ' checked="checked"';
}
echo " /> "._MD_NEWPOSTNOTIFY."
\n";
}

And the option appeared to allow for notification of replies when creating a new post... however, when checked, this doesn't actually result in the notification being sent on reply.

So... there must be some file messed up within newbb; and that file must be messed up globally for all of my newbb. Of course, it could also be some database entry I havn't yet found, but I'm really getting lost here!

Anyways, any guidance would be VERY WELCOME!!!

Thanks,
Keith

3
kjs222
Re: NewBB-> Making Notification Options Visible
  • 2003/11/15 16:18

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


Well, I'm stumped for the day; my last observation is that I'm thinking my problem (at least to begin with) can be isolated to the following code:

$xoopsModuleConfig['notification_enabled']

For some reason, this is returning empty... even though it appears to be full in the database?

So, this ModuleConfig problem seems to effect both the selecting and the recieving of notifications in my forum.

Again, any ideas would be appreciated, I'm quite frustrated with this problem.

Thanks a lot,
Keith

Login

Who's Online

259 user(s) are online (99 user(s) are browsing Support Forums)


Members: 0


Guests: 259


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