Show Online user code not woks perfectly (1 post)

  1. mobi_ayubi
    Posted 4 years ago #

    Hello guys,

    I am making a classified website with classipress,


    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 ''

    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


Topic Closed

This topic has been closed to new replies.

About this Topic