Buying Jquery-Javascript-PHP expert needed.

Discussion in 'Programming' started by goneinsane, Nov 13, 2011.

  1. #1
    Here's what happens right now:
    In a forum-type website, a user fills out a form and clicks submit. When the submit button is pressed, the information is saved in the database, posted on the forum and an email is sent with the posting message to the user.

    Here's what needs to happen:
    The user clicks submit and the information is saved to the database and posted on the forum as it always has. Then, once 5 minutes has past, the script needs to take the posting message from the database and sends off the email. The reason why the message needs to be taken from the database is because it can be edited for 5 minutes after the original message was posted.

    I need someone that can write a script that pulls the information from the database 5 minutes after the submit button has been clicked, and email it to the user.
    This is not going to be an easy task unless you are a complete expert in this area. If you don't have the experience, I can't take a chance on you.
    I will pay $20 by paypal upon completion.
     
    goneinsane, Nov 13, 2011 IP
  2. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    What forum script are you using?
     
    Einheijar, Nov 14, 2011 IP
  3. goneinsane

    goneinsane Well-Known Member

    Messages:
    303
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 1
    As Buyer:
    100% - 0
    #3
    It's a custom-made script. It's not quite a forum but it's something very similar.
     
    goneinsane, Nov 16, 2011 IP
  4. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Oh, can I have your site to take a look?
     
    Einheijar, Nov 17, 2011 IP
  5. hdewantara

    hdewantara Well-Known Member

    Messages:
    541
    Likes Received:
    47
    Best Answers:
    25
    Trophy Points:
    155
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Hi Goneinsane,
    I guess that couldn't be done via javascript/jquery, since a user might have logged out and leave your pages before 5 minutes.

    Also, wouldn't it be a better scheme that if someone has posted, his post will be saved to database with 3 additional fields:
    a) His email address.
    b) Time saved: this field will record the time the post is saved.
    c) Emailed: set to false. This field is just a status whether this post have been emailed/ not.
    So no email will be sent at the time the post is saved?

    A 5-minutes PHP cronjob then search the database for posts with "false" Emailed satus.
    It will only send email to a recipient email address only if the current time has passed 5 minutes from Time saved.
    After sending, it could set the Emailed status to "true".

    Let us talk further if this scheme has interested you...

    Hendra
     
    hdewantara, Nov 17, 2011 IP
  6. goneinsane

    goneinsane Well-Known Member

    Messages:
    303
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 1
    As Buyer:
    100% - 0
    #6
    That is exactly it Hendra. The database already saves the email address and time the reply is created. It's just a matter of saving the "false" to database and run the cronjob for posts with false and then set status to "true".
     
    goneinsane, Nov 18, 2011 IP