Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Duplicate posts?

I'm not sure how your script is determining a duplicate post, but it keeps telling me I am trying to do so when I'm not. Usually, it's when I reply to my own message, but just a minute ago I was replying on the same thread as a previous post of mine.

Thanks for your time,
KDL
«1

Comments

  • ColdShineColdShine Posts: 597Member
    This is something I thought it could happen. If you scroll some posts below, you'l notice the check is done by using a variable which tracks the title of the last message posted.
    The problem is, if noone posts messages before your second reply, you'll get an error because the default title for the post if exactly the (hiearchically) previous one, so it fails the check.

    When I read that tracking system, I replied asking the WEBMASTER to use another method I've seen on another forum (namely, Westwood's one):
    instead of perforiming the check on the server, simply disable the Submit button when the user first clicks it (simply add the "disabled" attribute to the HTML element).
    _____________________________
    [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    http://www16.brinkster.com/rafonline[/size]

  • KDivad LeahcimKDivad Leahcim Posts: 3,948Member
    : This is something I thought it could happen. If you scroll some posts below, you'l notice the check is done by using a variable which tracks the title of the last message posted.
    : The problem is, if noone posts messages before your second reply, you'll get an error because the default title for the post if exactly the (hiearchically) previous one, so it fails the check.
    :
    : When I read that tracking system, I replied asking the WEBMASTER to use another method I've seen on another forum (namely, Westwood's one):
    : instead of perforiming the check on the server, simply disable the Submit button when the user first clicks it (simply add the "disabled" attribute to the HTML element).
    : _____________________________
    : [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    : http://www16.brinkster.com/rafonline[/size]
    :
    :

    Thank you! Now that I know what is going on, maybe I can work around it a bit better. If he wants to maintain the compare idea, I think he should compare the message and not the subject...
  • Eric TetzEric Tetz Posts: 2,141Member
    : The problem is, if noone posts messages before your second reply, you'll get an error because the default title for the post if exactly the (hiearchically) previous one, so it fails the check.

    That's lame. It happens to me often, because I'll pop in and reply to more than one part of a thread. My post is [italic]not a duplicate[/italic] and it's rejected. It's a bug, and should be fixed, or if it can't be made to work it the 'feature' should be removed. Better to risk spammers than to reject valid posts.

    Cheers,
    Eric
  • KDivad LeahcimKDivad Leahcim Posts: 3,948Member
    : : The problem is, if noone posts messages before your second reply, you'll get an error because the default title for the post if exactly the (hiearchically) previous one, so it fails the check.
    :
    : That's lame. It happens to me often, because I'll pop in and reply to more than one part of a thread. My post is [italic]not a duplicate[/italic] and it's rejected. It's a bug, and should be fixed, or if it can't be made to work it the 'feature' should be removed. Better to risk spammers than to reject valid posts.
    :
    : Cheers,
    : Eric
    :

    I agree, though it's not a bug but a feature that was miscoded. It's not to stop spammers though, it's for the idiots that doubleclick the submit button.
  • ColdShineColdShine Posts: 597Member
    Well, I took a look around (other sites), and I've seen the most widely adopted solution (even by M$) is to add a [b]disabled[/b] tag attribute upon the first onClick event. WEBMASTER please...
    _____________________________
    [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    http://www16.brinkster.com/rafonline[/size]

  • WEBMASTERWEBMASTER Posts: 549Member

    :
    I will fix that, anyone who has a ready made script for that are welcome to email it to me!


    [blue][italic][b]/WEBMASTER[/b][/italic][/blue]

  • ColdShineColdShine Posts: 597Member
    Script code? Yeah, sure:
    [code]
    [green][/green]
    [/code]
    _____________________________
    [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    http://www16.brinkster.com/rafonline[/size]

  • WEBMASTERWEBMASTER Posts: 549Member
    thanks!

    I will get that in place.


    [blue][italic][b]/WEBMASTER[/b][/italic][/blue]

  • WEBMASTERWEBMASTER Posts: 549Member
    Thanks for the code and that code is now implemented online.

    Also, I have removed the check for duplicate subjects. Lets see how this turns out.

    Also, what feature on this messageboard is missing? or what should I focus on to add to the board or site? I need your feedback! any ideas?




    [blue][italic][b]/WEBMASTER[/b][/italic][/blue]

  • ColdShineColdShine Posts: 597Member
    I'm really really happy you've used the code I've written right as I wrote it! I do feel more a part of the Programmers Heaven now!

    One more suggestion: you can use sheets for the input controls, to give them a consistent look (use the same fonts as the rest of the site). It may improve the "look & feel", and it's not difficult anyhow.
    _____________________________
    [size=1][b][grey]Cold[/grey][blue]Shine[/blue][/b]
    http://www16.brinkster.com/rafonline[/size]

«1
Sign In or Register to comment.