Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8215535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:49:19+00:00 2026-06-07T11:49:19+00:00

Is there a plugin that exists that does this? If not, could i theoretically

  • 0

Is there a plugin that exists that does this? If not, could i theoretically create a mysql database that tracks this kind of information?

For example, say I have a table post_views with the username as the primary key, and everytime a user comes, i check if there exists a value for the column with the post id in that table.

If it does, then do something… if not, then, create the column and assign a value of 1 or something.

Would something like this be feasible? Sorry, I am a mysql noob.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T11:49:24+00:00Added an answer on June 7, 2026 at 11:49 am

    Well, it’s feasable, yes.

    You could:

    1. Do like everyone does with WP: search for a plugin in their huge repository and install it. Chances are there’s something that works exactly as you need;
    2. For logged in users: create a relationship table, say users_posts

           id | user_id | post_id
      

      And at each post view insert into this table the user id and the post id (and if you want you could add other info, such as the date when the post was read). A query to this table will tell you all the pages opened by the user, or conversely you can check if a page was seen or not by that user. From what you said this is a more feasable table schema than what you had in mind;

    3. For non-logged users: without having an user id at your disposal you could use cookies: write in a cookie the user information (IP, UserAgent, whatever) and the post id; as long as the cookie isn’t cleared (or expires) you still would know what a user has seen or not. For added sweetness: as soon as a user logs in you can transform this cookie-based infos into the method in point 2).

      Well, on a second thought, cookies are not necessary, you can use a database here too, but the table will not store the user id but the other infos (you could use the same table with added columns, or a new one specifically for non-logged users. I’d go for the latter)

      Keep in mind, though, that IP, user Agents and such other infos aren’t reliable, and can lead to problems – the first can be shared by different users, the second can be easily spoofed. The best course of action would be to ignore this point 3) and always track only logged-in users, that way you won’t incur into problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As far as I remember there exists an Eclipse plugin that reveals ids of
Does anyone know if there exists a stable version of the Scala plugin for
does anyone know if there exists any offline software or plugin(dreamweaver, etc) to generate
I'm trying to create a jQuery Plugin using there name spacing system, so this
Is there a jquery plugin that when you hover over an icon etc. it
Is there a Maven plugin that allows you to check if there are newer
I wonder if there is a plugin that is able to save the current
Is there any plugin for VIM that I can use to index an C++
Is there a Visual Studio plugin that spellchecks strings and comments? Duplicate of Visual
Is there any plugin for jQuery that would take an argument for the max

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.