1
alfbrand
I need Notification Options Help
  • 2003/10/24 17:02

  • alfbrand

  • Just popping in

  • Posts: 5

  • Since: 2003/8/17


I cant get notification options to display on any module within my site, Inline or block.

Do they have to be activated globaly somewhere?


Alf

2
DFBH13
Re: I need Notification Options Help
  • 2003/10/24 17:12

  • DFBH13

  • Just popping in

  • Posts: 61

  • Since: 2003/6/26


Go to admin.Select the modules picture u want to change.Go 2 prefrences.It should be there.

3
alfbrand
Re: I need Notification Options Help
  • 2003/10/24 18:25

  • alfbrand

  • Just popping in

  • Posts: 5

  • Since: 2003/8/17


I have done this, both inline and block styles, on the Forums, and Links modules. But still they do not show up.

Any other suggestions?

4
robekras
Re: I need Notification Options Help
  • 2003/10/27 13:04

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


I had the same problem on my local XOOPS installation.
Having Win98, Apache 1.3.22 and PHP 4.3.3

The problem is in xoops/html/include/notification_functions.php.
In function notificationSubscribableCategoryInfo () there is
the following line:
$script_url = explode('/', $_SERVER['SCRIPT_NAME']);
I changed it to:
$script_url = explode('/', $_SERVER['PHP_SELF']);

In difference to a linux system, this variable shows the path to the php.exe on a windows system,
and not the path to the php script (which is e.g. index.php),
and so you will never see the notification block.

The variable $_SERVER['PHP_SELF'] shows the correct path to
the php script.


5
snakebyte
Re: I need Notification Options Help
  • 2003/10/28 18:22

  • snakebyte

  • Just popping in

  • Posts: 4

  • Since: 2003/1/21


Quote:

robekras wrote:
I had the same problem on my local XOOPS installation.
Having Win98, Apache 1.3.22 and PHP 4.3.3

The problem is in xoops/html/include/notification_functions.php.
In function notificationSubscribableCategoryInfo () there is
the following line:
$script_url = explode('/', $_SERVER['SCRIPT_NAME']);
I changed it to:
$script_url = explode('/', $_SERVER['PHP_SELF']);




I had the same problem until I read your post. Now it's fixed thanks to you. But I've a question How did you find the solution ?

6
robekras
Re: I need Notification Options Help
  • 2003/10/28 19:28

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10



First I looked for the template which is responsible for the notification block (system_notification_select.html).

Whithin the template there is the variable $xoops_notification.show

I did a search of $xoops_notification over the XOOPS sources and found some entries. The right file was notificaton_select.php, because here we have the following line:

if ($xoops_notification['show']) {

This was the entry point for debugging. (BTW, I use the ActiveState Komodo IDE for debugging, which is not too expensive for personal use. Don't know if there is something equivalent for free.)

In advance of the debugging I found that the function notificationSubscribableCategoryInfo() did not give back any notification categories.

Then I debugged into notificationSubscribableCategoryInfo () and was wondering about the variable $script_name having php.exe.

I included a phpinfo () command into my internet and into my local site and compared the _SERVER variables, and voila, the local site showed something different.
I found that the _SERVER['SELF_PHP'] on my local site did show the correct path.

But please dont't ask me about the correct values and meanings of the php _SERVER[] vars.


7
snakebyte
Re: I need Notification Options Help
  • 2003/10/28 20:36

  • snakebyte

  • Just popping in

  • Posts: 4

  • Since: 2003/1/21


I was on the way until the notification_select.php point. Thanks for your precious Help. See ya !!


Quote:

robekras wrote:

First I looked for the template which is responsible for the notification block (system_notification_select.html).

Whithin the template there is the variable $xoops_notification.show

I did a search of $xoops_notification over the XOOPS sources and found some entries. The right file was notificaton_select.php, because here we have the following line:

if ($xoops_notification['show']) {


8
kjs222
Re: I need Notification Options Help
  • 2003/11/3 13:52

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


I'm still having this problem (thread other thread), but I'm not sure I'm on Windows. I did your fix, but it didn't work. Is there any way this fix could mess up my site if I'm not on Windows? Mine is broken either way, but I'd hate to get everything "right" and have this be wrong still. Should I un-fix it?

Thanks,
Keith

9
robekras
Re: I need Notification Options Help
  • 2003/11/3 16:44

  • robekras

  • Documentation Writer

  • Posts: 187

  • Since: 2002/12/10


I think the change will not mess up your site.
To get the info about your site is very simple.
Make a simple block with the following php command:

phpinfo ();

Set PHP as blocktype, and make it available only for the admin (go to administration -> system -> group).

But the info you get with phpinfo may not help you for your notification problem.


10
kjs222
Re: I need Notification Options Help
  • 2003/11/3 18:15

  • kjs222

  • Friend of XOOPS

  • Posts: 116

  • Since: 2003/3/1 1


Thanks a lot,

Keith

Login

Who's Online

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


Members: 0


Guests: 309


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