I want to create a "view" that can records how many times a users profile page has been viewed by other users using statistics.
Are you collecting the page views statistics at the moment? Do you have the Statistics module enabled?
OSTraining: Drupal video clases plus supportDrupal 7 Explained: The best-selling Drupal book
thanks stevejburge for replay, yes i have Statistics module enabled and i am collecting the page views statistics, but i want Records how many times a users profile page has been viewed by other users, and show it in view block.
It should track the visits to user profile pages also.
When you enable the Statistics module, you'll get a "Track page visits" tab appear on each user profile page.
You can then use Views to add the stats as a field.
Is there a way to stop Statistics from incrementing when the users visit's the page again, and also can i track page visits based on user role.
By default, I believe the answers are "no" and "no", I'm afraid. Both would require some custom code.
do you know where can i get the code
Drupal is a registered trademark of Dries Buytaert.