scriptygoddess

17 Mar, 2003

Important Bug Fix for subscribe to comments

Posted by: Jennifer In: Announcements

If you're using the subscribe to comments script there's an important bug fix. Basically, it's been discovered that Safari browsers on Macs will crash when they attempt to submit a comment. The download has been updated. But if you have it already installed, it's a simple fix (see "more" text).

(FYI – If you're on Safari – this bug fix has been made to this site, so you should be able to comment here without crashing) :)

Please note that users on Safari (and I've noticed some other browsers as well) will have their comment submitted twice if they click their "back" button after submitting their comment. You will probably want to make a note somewhere on your form that users should refrain from hitting their back button. (Make sure you provide them with alternative links – ie. a link to the main home page of your site, or links to advance to the next post, etc.)

Here's the fix. In your files for this script will be one called "processing.tmpl". Open this in a text editor, and look for this:

<script language="javascript">
window.history.forward(1);
</script>

Copy the below and paste it in it's place:

<script language="javascript">
<!–
function Is() {
agent = navigator.userAgent.toLowerCase();
this.mac = (agent.indexOf("mac")!=-1);
this.safari = (this.mac && (agent.indexOf("safari")!=-1));
}
var is = new Is();
if (!is.safari) {
window.history.forward(1);
}
//–>
</script>

(This bug fix makes use of the browser sniffer I just posted about which is located here)

6 Responses to "Important Bug Fix for subscribe to comments"

1 | Jennifer

March 17th, 2003 at 12:47 pm

Avatar

Just a little side note: I was wondering if window.history… is part of the W3C DOM – but I can't figure out where it is (or if I DID already find it – I couldn't make heads or tails of it enough to understand it!). I had thought window.history is a pretty standard javascript call – but I've found NOTHING about the fact that Safari CRASHES if it sees window.history.forward(1); – which seems like a pretty big bug if you ask me. It's one thing if it just doesn't support it, but to CRASH if it sees it? Give me a break!!

2 | Mariann

March 17th, 2003 at 1:02 pm

Avatar

Bless you! I'm a Safari user whenever I'm at home on my Mac and I haven't been able to leave comments on blogs with the subscribe to comment feature. I'm hoping that many of them will see this and upgrade soon so I can go back to commenting again. I *heart* Safari!

3 | Meredith

March 18th, 2003 at 2:36 pm

Avatar

Eek, I hadn't known this was a problem! Mariann, why didn't you say something? I think I've got the fix implemented now. While looking for processing.tmpl I stumbled across the listing of who's subscribed to what entries – I had no idea so many people were subscribing!

4 | say

April 23rd, 2003 at 1:59 pm

Avatar

(Crap. Just deleted my entire comment)

Okay, so I installed the script, but am having issues… When I go to manage my subscriptions, it tells me I have none and gives me weird errors.

And then when I try to unsub, it gives me a slew of strange readouts: (http://groovy-mom.com/sub/addsubscriber.php)

However, I seem to be able to subscribe okay (???)

Any suggestions?

5 | say

April 23rd, 2003 at 2:23 pm

Avatar

Sigh…

Well. I think I got me little problem fixed. I'll share it here, just in case anyone else overlooks what I did.

I had to go to the subscriptions.inc in the commentsubscribe folder and CHMOD to 777.

Everything seems to be working fine, now. It's a great script. Love it. Thanks SG.

6 | Amanita.net

March 18th, 2003 at 7:07 pm

Avatar

Using Safari
If you have been unable to comment on my site because you're using Safari, please give it a try.

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements