Author |
Topic  |
|
barky81
Junior Member
 
USA
166 Posts |
Posted - 06 May 2001 : 22:28:42
|
I am setting up a new password-protected website/forums, and just noticed the following....
Even though the Admin_variables.asp reports the following (correctly, I think):
/forum/strForumURL = http://www.website.com/forum/
Whenever I register a new user or request a forgotten password via e-mail, the message inserts the strForumURL as
http://website/forum/
This is wrong. It is stripping out the "www." and the ".com" from around website.
This is also what happens if I just stick a response.write(strForumURL) on a page.
What is up? (People can't click on the url link in the e-mail to reach the website!)
TIA
barky81
|
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 07 May 2001 : 01:01:29
|
Could this be (another) Chili!Asp thing ? The strForumUrl is "calculated" in config.asp If it is a consistent error, you might be able to hardcode it into the strForumUrl = line that is in config.asp. The value of strForumUrl is fixed for all other files and never changed.
Pierre Join the Snitz WebRing |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 07 May 2001 : 06:37:58
|
strForumURL is set in the main forum config of admin options
You give it the forum url and your website url these are then assigned to strForumURL and strHomeURL respectively.
|
 |
|
barky81
Junior Member
 
USA
166 Posts |
Posted - 07 May 2001 : 13:34:44
|
No, this is a Windows installation:
SERVER_SOFTWARE Microsoft-IIS/5.0
Why is it "calculated"? (Especially since the admin config pages have you type it in.)
But since I typed it in, why is it "re-calculating it as described?
FWIW, I gave up on the ChiliASP...
quote:
Could this be (another) Chili!Asp thing ? The strForumUrl is "calculated" in config.asp If it is a consistent error, you might be able to hardcode it into the strForumUrl = line that is in config.asp. The value of strForumUrl is fixed for all other files and never changed.
Pierre Join the Snitz WebRing
|
 |
|
barky81
Junior Member
 
USA
166 Posts |
Posted - 07 May 2001 : 13:38:31
|
quote:
strForumURL is set in the main forum config of admin options
You give it the forum url and your website url these are then assigned to strForumURL and strHomeURL respectively.
Okay, but I did give it the values. It's just that the values it then uses are not the ones typed in on the admin config.
So as gor said, there is some calculating going on--the values aren't just "assigned".
But how/where is the calculation?
Thanks,
barky81
|
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 07 May 2001 : 14:41:31
|
oops, my mistake this time, I was referring to strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/")) in config.asp no calculation done on strForumUrl, just typed in in Admin Config System and used in register.asp to construct the mail: strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbCrLf & vbCrLf
(like Huw said)
...again I can't help you....this is getting really depressing 
Pierre Join the Snitz WebRing |
 |
|
barky81
Junior Member
 
USA
166 Posts |
Posted - 07 May 2001 : 22:36:53
|
Does that mean you cannot duplicate the issue?
Anyone? I truly don't understand how, if all that happens is that the "typed in" value is stuffed into the variable, this is happening....
There's no code to trim away the "www." or the ".com"? (Is it something to do with the periods?)
It's not just used in register, however, is it? (It's in the pop_pword.asp too)
quote:
oops, my mistake this time, I was referring to strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/")) in config.asp no calculation done on strForumUrl, just typed in in Admin Config System and used in register.asp to construct the mail: strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbCrLf & vbCrLf
(like Huw said)
...again I can't help you....this is getting really depressing 
Pierre Join the Snitz WebRing
|
 |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 08 May 2001 : 00:19:50
|
One thought, make sure you typed the complete URL for the Forum URL admin setup page, including the http://, not a relative path.
====== Doug G ====== |
 |
|
barky81
Junior Member
 
USA
166 Posts |
Posted - 08 May 2001 : 11:35:35
|
Okay, but I thought that was pretty clear from the thread...
To review:
1) I typed in the full forum url on the configuration page, including the "http://". 2) I check the admin_variables.asp page, and it shows the CORRECT strForumURL value. 3) I use the "forgot your password" functionality to generate an e-mail, and the e-mail provides a modified and incorrect value for strForumURL.
So can anyone else duplicate it? (Has anyone tried?) I tried to on this forum (Snitz) but the mail is broken, apparently...
Is there some type of trim function going on?
quote:
One thought, make sure you typed the complete URL for the Forum URL admin setup page, including the http://, not a relative path.
====== Doug G ======
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 08 May 2001 : 12:28:06
|
absolutely none, thhis is the line from register.asp
strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbCrLf & vbCrLf
no translation done on strForumURL at all.
|
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 08 May 2001 : 13:31:49
|
quote:
3) I use the "forgot your password" functionality to generate an e-mail, and the e-mail provides a modified and incorrect value for strForumURL.
And this codeline can be found in pop_pword.asp:
strMessage = "You have received this mail because you (or someone else) have asked to be reminded of your Password for " & strForumTitle & " at " & strForumURL & vbCrLf & vbCrLf
No trimming there either...
one final option would be to hardcode it in config.asp: Change:strForumURL = Application(strCookieURL & "strForumURL")
tostrForumURL = "http://www.website.com/forum/" if that doesn't help then.....
Pierre Join the Snitz WebRing |
 |
|
|
Topic  |
|