U_TOPIC - Where can I set this varialble?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Registered User
Posts: 10
Joined: Fri Jan 07, 2005 4:17 pm

U_TOPIC - Where can I set this varialble?

Post 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!!
User avatar
Former Team Member
Posts: 9731
Joined: Tue Mar 02, 2004 5:40 pm
Location: Tampa, Florida
Name: Adam Reyher

Post 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
phpBB Support: Welcome | Userguide | Knowledge Base | Search
Honored supporter of the phpBB Group!
"If I have seen a little further it is by standing on the shoulders of Giants." - Isaac Newton
Registered User
Posts: 10
Joined: Fri Jan 07, 2005 4:17 pm

Post by skadamo »

Thanks for the reply!

My site korider.com 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...
http://korider.com/modules.php?name=For ... opic&p=487#

The link should be like this...
http://korider.com/PHP-Nuke/modules.php ... 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.
Registered User
Posts: 10
Joined: Fri Jan 07, 2005 4:17 pm

Post 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';

Return to “2.0.x Support Forum”