Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Internet Explorer Error w/ Commenting
Yuuri
Posted on 28 Aug 2009, 23:34:12

Access: Member
Total Posts: 13
Joined: 2009-07-03

A visitor of my website told me that she could not post comments. She told me it didn't work in IE but that it did work in Firefox. When I try posting a comment a pop-up comes up saying "Please enter a name."

Can please help me Chris?
#801
Chris
Posted on 29 Aug 2009, 00:01:45

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Figured out that IE7 isn't separating the the login form and the comment form properly, both forms have the same name for the username field. This shouldn't cause a problem as they're both within separate form elements but IE7 seems to think it is. I'm creating a fix for it now.
#802
Chris
Posted on 29 Aug 2009, 00:24:35

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Alright to fix this edit the index.php file, on line 205~ you'll see this

Code:
var username = escape(document.getElementById('name').value);

change that to

Code:
var username = escape(document.commentsform.name.value);

Save and upload and this should correct the problem.

Quite annoyed at this bug as it's a bug specifically within IE7 not the actual script. Either way should work now and hopefully will help anyone else having this problem.
#803
Yuuri
Posted on 29 Aug 2009, 02:45:16

Access: Member
Total Posts: 13
Joined: 2009-07-03

Thanks Chris! IE is so troublesome.
#804
Network-13.com © 2013