Skip to:

Last users to view profile

  • jamesyeah



    I am looking in to making a widget to display the last few users who viewed your profile, is there a existing table in the buddypress/wpmu database I could leverage for this?


Viewing 2 replies - 1 through 2 (of 2 total)

  • Jeff Sayre


    Data on who viewed a given user’s profile is not stored in the database. To accomplish this task, you would have to write your own plugin and add at least one new table to the DB.

    However, depending on how the plugin was coded, on even a moderately active site, this/these new table(s) could grow to a very large size. For instance, if a given site was not set up to disallow viewing of users’ profiles unless the viewer was logged in, all sorts of useless visitor hits would be encountered–unknown actual people viewing a profile, search engine bots visiting a profile for purposes of indexing, etcetera.

    Of course, the solution would be to code the plugin to ignore those type of hits and only log actual logged in member views. But then the number of true views would be greatly undercounted.



    Hi Jeff,

    Thanks for that, I suspected I might have to create a new table. I will download the skeleton module and have a play around and see what I can come up with.

    I think I will focus on making it only log registered users, as I think there are other more simple ways of simply calculating page impressions, I think I’d also have to work out a way to clear entries more than a month old to prevent it becoming unmanagable, I will have to look in to this further!


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Last users to view profile’ is closed to new replies.
Skip to toolbar