Advertisement:

Author Topic: What about a simple hit counter in each listing?  (Read 3019 times)

shawn

  • Newbie
  • *
  • Posts: 49
What about a simple hit counter in each listing?
« on: November 20, 2012, 04:36:38 am »
I had a request for it today and thought it should be easy enough, its nice to let member know people are looking at there items.

localsales

  • Full Member
  • ***
  • Posts: 130
Re: What about a simple hit counter in each listing?
« Reply #1 on: November 20, 2012, 09:17:44 am »
add this <?php echo osc_item_views();?> in item.php . it show how many visitors visit this item.

shawn

  • Newbie
  • *
  • Posts: 49
Re: What about a simple hit counter in each listing?
« Reply #2 on: November 20, 2012, 08:07:25 pm »
Thank you

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: What about a simple hit counter in each listing?
« Reply #3 on: November 20, 2012, 09:05:38 pm »
hello localsales how to show is like a button?

Freduf

  • Sr. Member
  • ****
  • Posts: 268
Re: What about a simple hit counter in each listing?
« Reply #4 on: November 20, 2012, 10:37:15 pm »
This code gives the number of views, you can:

Code: [Select]

<strong><?php _e('This ad has been viewed''modern') ; ?>:&nbsp;</strong><?php echo osc_item_views(); ?>&nbsp;<?php _e('times''modern') ; ?>


shawn

  • Newbie
  • *
  • Posts: 49
Re: What about a simple hit counter in each listing?
« Reply #5 on: November 21, 2012, 12:11:50 am »
Thank you as well Freduf

stiffe

  • Full Member
  • ***
  • Posts: 128
Re: What about a simple hit counter in each listing?
« Reply #6 on: June 23, 2013, 08:22:20 pm »
Is the numbers reliable?


Because in some, not all,  of the listings, the counter says it has been visited 0 times.... 
Even if I and the publisher has visited it.
That can't be right?

dustysilicon

  • Newbie
  • *
  • Posts: 1
Re: What about a simple hit counter in each listing?
« Reply #7 on: July 19, 2013, 09:55:49 pm »
This code gives the number of views, you can:

Code: [Select]

<strong><?php _e('This ad has been viewed''modern') ; ?>:&nbsp;</strong><?php echo osc_item_views(); ?>&nbsp;<?php _e('times''modern') ; ?>


Works perfect for my purposes.  THANKS!

cus

  • Full Member
  • ***
  • Posts: 139
Re: What about a simple hit counter in each listing?
« Reply #8 on: July 19, 2013, 11:19:04 pm »
stiffe - I think you need to be logged out of Admin to see the accruate hit counts.   Try that.

stiffe

  • Full Member
  • ***
  • Posts: 128
Re: What about a simple hit counter in each listing?
« Reply #9 on: July 20, 2013, 12:40:46 am »
Aah, ok.
It might be so.
Thank  you.