| Author |
Message |
Ozone
Sergeant


Joined: Dec 02, 2003
Posts: 85
Location: Tower of the Sun
|
Posted:
Mon Dec 08, 2003 3:28 pm |
  |
I have phpnuke installed in the following directory on my domain
/phpnuke/html/
Whenever there is a reply to a topic and a pm received and a user has selected that they want to receive and email notification, the link provided in the email notification is wrong
for example
the link received in the mail would be:
http://2e1x1.net/modules.php?name=Private_Messages&file=index&folder=inbox
when it should be
http://2e1x1.net/phpnuke/html/modules.php?name=Private_Messages&file=index&folder=inbox
I have changed the bbtonuke configuration from the forums-admin-configuration screen to reflect this folder hierarchy from the domain. The address has not changed in the emails.
Can anyone help me with this? THis is the last major bug I have to fix on my 6.9 install. Even if you just tell me which file in the forums folder calls or creates this function so I can edit it, I would appreciate it.
EDIT: Is bbpatch1.zip (hosted here) safe to upload on 2.0.5? I dunno if it would fix my problems, there is no documentation as to what exactly it fixes. |
|
|
    |
 |
Ozone
Sergeant


Joined: Dec 02, 2003
Posts: 85
Location: Tower of the Sun
|
Posted:
Wed Dec 24, 2003 12:06 am |
  |
I have been pretty patient on this one. I have not found a fix for this to date and I see no one has posted bu there have been quite a few views?
Any Ideas?
Anyone? |
|
|
    |
 |
ryan1918
Sergeant


Joined: Aug 16, 2003
Posts: 144
|
Posted:
Mon Dec 29, 2003 8:14 am |
  |
|
    |
 |
Joschi
Nuke Cadet


Joined: Dec 21, 2003
Posts: 6
|
Posted:
Tue Dec 30, 2003 9:06 am |
  |
Today I stumbled over the same error. After some investigation I found the reason:
Open up includes/functions_post.php
-----------------
IN LINE 696:
| Code: |
| $script_name = 'modules.php?name=Forums&file=viewtopic'; |
ENTER BEFORE:
| Code: |
| $script_path = trim($board_config['script_path']); |
-----------------
IN LINE 735:
| Code: |
| 'U_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '&' . POST_POST_URL . "=$post_id#$post_id", |
REPLACE WITH:
| Code: |
| 'U_TOPIC' => $server_protocol . $server_name . $server_port . $script_path . $script_name . '&' . POST_POST_URL . "=$post_id#$post_id", |
-----------------
IN LINE 736:
| Code: |
| 'U_STOP_WATCHING_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '&' . POST_TOPIC_URL . "=$topic_id&unwatch=topic") |
REPLACE WITH:
| Code: |
| 'U_STOP_WATCHING_TOPIC' => $server_protocol . $server_name . $server_port . $script_path . $script_name . '&' . POST_TOPIC_URL . "=$topic_id&unwatch=topic") |
The setting in the admin configuration page for the script path will now be read out and inserted into the URL.
Be sure to enter the relative URL (so in your case phpnuke/html/modules/Forums ) |
|
|
   |
 |
Ozone
Sergeant


Joined: Dec 02, 2003
Posts: 85
Location: Tower of the Sun
|
Posted:
Tue Dec 30, 2003 9:24 am |
  |
same issue with PM's as well |
|
|
    |
 |
Joschi
Nuke Cadet


Joined: Dec 21, 2003
Posts: 6
|
Posted:
Tue Dec 30, 2003 10:43 am |
  |
Open up modules/Private_Messages/index.php
IN LINE 1377:
| Code: |
| $server_name = trim($board_config['server_name']); |
INSERT BEFORE:
| Code: |
| $script_path = trim($board_config['script_path']); |
-------------------
IN LINE 1397:
| Code: |
| 'U_INBOX' => $server_protocol . $server_name . $server_port . $script_name . '&folder=inbox') |
REPLACE WITH:
| Code: |
| 'U_INBOX' => $server_protocol . $server_name . $server_port . $script_path . $script_name . '&folder=inbox') |
 |
|
|
   |
 |
Ozone
Sergeant


Joined: Dec 02, 2003
Posts: 85
Location: Tower of the Sun
|
Posted:
Tue Dec 30, 2003 11:01 am |
  |
Well your email fix didn't solve my problem. So I am not going through the effort of changing the PM's. I appreciate the attempt. |
|
|
    |
 |
Joschi
Nuke Cadet


Joined: Dec 21, 2003
Posts: 6
|
Posted:
Tue Dec 30, 2003 11:05 am |
  |
This works perfectly if you use the original Private_Messages module (in my case nuke 7.0 with php 2.0.6) and if you have exactly followed my instructions. |
|
|
   |
 |
Ozone
Sergeant


Joined: Dec 02, 2003
Posts: 85
Location: Tower of the Sun
|
Posted:
Tue Dec 30, 2003 9:45 pm |
  |
|
    |
 |
Joschi
Nuke Cadet


Joined: Dec 21, 2003
Posts: 6
|
Posted:
Wed Dec 31, 2003 10:15 am |
  |
But even if you are using 2.0.5: the reason should be the same, maybe just the line numbers don't match (I just quickly checked the 2.0.5 files and they contain exactly the same error) |
|
|
   |
 |
Ozone
Sergeant


Joined: Dec 02, 2003
Posts: 85
Location: Tower of the Sun
|
Posted:
Wed Dec 31, 2003 10:28 am |
  |
Well in any event, I made your changes, and just double checked them.
It has not fixed my problem. |
|
|
    |
 |
Joschi
Nuke Cadet


Joined: Dec 21, 2003
Posts: 6
|
Posted:
Wed Dec 31, 2003 6:21 pm |
  |
So I can't help you anymore.
Nevertheless, problem is solved for me  |
|
|
   |
 |
|
|