Profile View Count Component

Allon Prooit Posted in Component Development 2 weeks ago

Hello, needing a component that will show the profile view count. Like MySpace had it. Maybe just a place under the profile name? Should be easy enough but may require a new MySql line somewhere in there. The OSSN_DATA file may need some small addition perhaps? Not sure. Maybe you can help? Please let me know!

us George Yamauchi-Wied Replied 3 days ago

I posted a reply to this yesterday that for some reason was removed for "spam" (with my account altogether removed). Nonetheless, I posted something very similar to Tara - this is easy enough to do but does require a small amount of coding. The easiest way would be to add a column to the ossn_users table to store the current profile view count. Then just pull the data and increment it. I'm guessing that you're probably going to want to add this as part of an enhanced profile (probably using the Bio component anyway), so the easiest way to do this would just be to modify the Bio component. Instead of modifying fields like that does, simply increment the column and write it back to the database table.

Alternatively, you could use a service like to get a view counter that doesn't require any coding, but I don't think that would work the way you want. It would instead show the total number of times someone has viewed a profile containing that image. Basically, to do what you want, you'd have to create a new "counter" for every ossn user account.

in Tara patel Replied 3 days ago

Adding a profile view count component to your website may require adding a new column in the MySQL database to store the count, and updating the OSSN_DATA file to display the count on the user's profile page. This can be achieved with some coding knowledge and familiarity with your website's framework. It is not a difficult task, but it requires some technical expertise.