Ajax based new posts

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by vinkin, Sep 28, 2009.

  1. vinkin

    vinkin New Member

    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Admin, any updates ?
     
  2. Christopher

    Christopher Retired

    Messages:
    14,659
    Likes Received:
    8
    Trophy Points:
    0
  3. vinkin

    vinkin New Member

    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Thanks Admin,
    will check and update.
    Edit:
    Thank you Admin, its working fine. You can have a look at here
    http://www.indiachatforum.net/spy.php

    Will update later if there are any bugs or issues.
     
    Last edited: Nov 29, 2009
  4. vinkin

    vinkin New Member

    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    The plugin is working very fine... thought it updates some time wrong timings but once refreshed its fine.
     
  5. matthew88

    matthew88 New Member

    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    0
    I worked with AJAX a bit before, what i would recommend you wouldnt like since ur not so great with javascript, but its awsome to pick up on after awhile.

    Anyways the code you would have to write would be javascript to check for new post without refreshing ur page. To do this you tell the javascript to check a PHP page called, php_check_database.php if ur not checking the database for information but instead a FILE, well your going to be sorta screwed unless you addon the javascript HEADER request limit for information.

    On ur current page the information you want must be set up DIV or some other BLOCK element. Blah Blah Blah, yes im boring you with all this crap. But anyways you grab a bit of code from the reading source. Afterwards you compare that information to the current information or last post made on you webpage. If the information is different it means a new post was made and it should fetch that information from the database.

    If you using a database for information retrieve fetching a TIME-STAMP is the best least possible bandwidth consuming information fetch you can do. Lmao now that im done i hope you have some understanding of the back and forth requird information required between server and client. Client is the javascript request and server is the PHP asking for updated information/Time-stamp. Once the returned information is different than on the current page it sets another code to fetch the new information and add it onto the current DIV/BLOCK element.
    Edit:
    1 Thing i forgot, you have to set your HEADERS to not cache the page, if not AJAX might not load correctly.
     
    Last edited: Jan 1, 2010
  6. vinkin

    vinkin New Member

    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Thanks for the good illustration of the working mechanism, but I have a question why did you explain it ? as I think admin knows it well and me too. So i would really appreciate it if you have a better code than the admin has provided.

    But still never the less good description.
     
  7. vinkin

    vinkin New Member

    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Any updated news ?
     
  8. vinkin

    vinkin New Member

    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    @ Admin,

    Any updates regarding forum spy ?
     
  9. Christopher

    Christopher Retired

    Messages:
    14,659
    Likes Received:
    8
    Trophy Points:
    0
    Sorry. I've been extremely busy with a ton of projects. I'll try to release the update sometime in February.
     
  10. vinkin

    vinkin New Member

    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Its ok no problem. Just was curious thats it.
     
  11. hernandez9039

    hernandez9039 New Member

    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Thanx man.. Its awsome..You deserve a Statue ..LOL...cHEERS
    ___________________________________________
    Boob Job
    Hair Straightener
     
  12. vinkin

    vinkin New Member

    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Yes Admin deserves it.
     
  13. vinkin

    vinkin New Member

    Messages:
    54
    Likes Received:
    0
    Trophy Points:
    0
    Admin, now again a problem :(
    The plugin you gave is compatible for 1.4 but now as we upgraded to 1.6 its not installing :(

    Any suggestions ?
     

Share This Page