WordPress.org

Ready to get started?Download WordPress

Forums

Show Online user code not woks perfectly (1 post)

  1. mobi_ayubi
    Member
    Posted 2 years ago #

    Hello guys,

    I am making a classified website with classipress,

    http://www.mohibsalahuddin.com/client/ads/test-ad/

    for showing author is online or offline on ad page, i wirte the following code, but it doesnot work if two users registered at a time..if registered user want to see another registered user status it shows offline always.. I write the code below

    First I create the table in MYSQL
    CREATE TABLEwordpress_users_online` (
    user_id int(11) default NULL,
    full_name varchar(64) NOT NULL default '',
    session_id varchar(128) NOT NULL default '',
    ip_address varchar(15) NOT NULL default '',
    time_entry varchar(14) NOT NULL default '',
    time_last_click varchar(14) NOT NULL default '',
    last_page_url varchar(255) NOT NULL default ''
    ) ENGINE=MyISAM;`

    THEN I WRITE THE FILE wordpress_users_online.php with following code

    in the below link you can see my code which i write for
    wordpress_users_online.php

    http://ideone.com/zbvF9

Topic Closed

This topic has been closed to new replies.

About this Topic