Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Davio NIS Referer Mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

chumbawumba
Junior Member

United Kingdom
304 Posts

Posted - 15 February 2004 :  12:17:59  Show Profile
There is a problem with this mod. It only happens during registration.

  • With email validation OFF, register as a new user.
  • fill in all compulsory fields, then click submit
  • wait for confirmation message, and the meta-refresh. (dont click anything manually)

  • now log in with your new username and password.

if you experience the same behaviour as me, then, after logging in successfully, you will be viewing the registration page again, except this time with errors!

There Was A Problem With Your Details

You must choose a UserName
Your UserName must be at least 3 characters long
..etc


Looking at the referer mod code, I think the Session("LastPage") is incorrectly holding "register.asp" instead of "default.asp". probably the value isn't updated due to the meta-refresh after registering.

clicking any other link before logging on, and everything works as normal

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 15 February 2004 :  18:49:29  Show Profile  Send ruirib a Yahoo! Message
Add the lines in red at line 80, inc_header.asp:


strReferer = Session("LastPage")

If (InStr(strReferer,"register.asp")<>0) Then 
   strReferer = "default.asp"
End If 


I think this fixes the issue and it does not add new undesired behavior. If you care to test it as well (I did and didn't find any problems) it would be appreciated.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 15 February 2004 18:50:13
Go to Top of Page

chumbawumba
Junior Member

United Kingdom
304 Posts

Posted - 15 February 2004 :  20:00:52  Show Profile
Thanks ruirib. That seems to have solved it. I'll test some more tomorrow.
Go to Top of Page

chumbawumba
Junior Member

United Kingdom
304 Posts

Posted - 16 February 2004 :  06:11:30  Show Profile
I can find only one scenario where the MOD still causes a problem. But the steps to recreate it are unlikely to crop up in the real world - so it is not worth bothering about:

*from the forum default page click on 'profile'
*type in password and display the update form. (dont change or submit)
*click on 'profile' again
*type in password and display the update form. This time do submit it.
*wait for confirmation message and redirect.

You get redirected back to the pop_profile.asp page, except this time with an "invalid username or password" error.

I think you'll agree, clicking twice on the profile link is highly unlikely. I am very happy with this mod, and will leave it as it is.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 February 2004 :  07:11:44  Show Profile  Send ruirib a Yahoo! Message
I guess it does not deserve the bother to fix that, indeed.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 16 February 2004 :  13:39:00  Show Profile
The mod has been updated with the changes.

Support Snitz Forums
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 February 2004 :  14:09:23  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by Davio

The mod has been updated with the changes.


Well done . I thought about MSNing it to ya, but you had a large busy icon on .


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 16 February 2004 :  14:28:44  Show Profile
quote:
Originally posted by ruirib
Well done . I thought about MSNing it to ya, but you had a large busy icon on .

Was busy playing a game.

I was keeping track of the topic, since it has my name in the title. I can't miss it.

Support Snitz Forums
Go to Top of Page

chumbawumba
Junior Member

United Kingdom
304 Posts

Posted - 17 February 2004 :  13:54:33  Show Profile
@Davio, I thought you were the author, but now I see from the orignal thread that it was made by "The Snitz Team" It's a great mod and everybody should install it.
I noticed most people who post a link to their new forum in the "Show off your Forums" area, haven't installed it.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 17 February 2004 :  15:02:30  Show Profile
It's easy to make that mistake. You can call it my mod or Rui's mod or Richard's mod. We are all on the same Snitz Team.

Users only need to install it if thier users have NIS installed.

Support Snitz Forums
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07