Page 1 of 1

U_TOPIC - Where can I set this varialble?

Posted: Tue Jun 07, 2005 3:21 am
by skadamo

Can anyone help me find where I can change the variable "U_TOPIC" in the following template?

Subject: Topic Reply Notification - {TOPIC_TITLE}
Charset: iso-8859-1


You are receiving this email because you are watching the topic, "{TOPIC_TITLE}" at {SITENAME}. This topic has received a reply since your last visit. You can use the following link to view the replies made, no more notifications will be sent until you visit the topic.


If you no longer wish to watch this topic you can either click the "Stop watching this topic link" found at the bottom of the topic above, or by clicking the following link:



Thanks in advance!!

Posted: Tue Jun 07, 2005 3:26 am
by AdamR
You can change it in /includes/functions_post.php

Should be around line 697 in vanilla phpBB:

Code: Select all

'U_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_POST_URL . "=$post_id#$post_id",
Out of curiosity, why do you want to change this?

- Adam

Posted: Wed Jun 08, 2005 2:06 am
by skadamo
Thanks for the reply!

My site is hosted by iPlanetWeb. They preconfigure phpNuke with the click of a link. When a member of my site is watching a topic the "topic reply notification" email has an incorrect path specified in the email.

The email includes the link... ... opic&p=487#

The link should be like this... ... opic&p=487#

So, I figured the variable U_TOPIC needs to have "PHP-Nuke/" added to the string. Am I on the right track? Will I mess something up if I change it? Is there a better way to correct the problem?

If it would be easier I would prefer to get rid of the "PHP-Nuke/" all together.

Posted: Wed Jun 08, 2005 5:07 am
by skadamo
I figured it out. Thanks again for the help!!!
//$script_name = 'modules.php?name=Forums&file=viewtopic';
$script_name = 'PHP-Nuke/modules.php?name=Forums&file=viewtopic';