1
Twilo
News Counter...
  • 2005/5/22 11:18

  • Twilo

  • Just popping in

  • Posts: 24

  • Since: 2003/4/24


I would like to increase news module counter every time when I click on the article.
What should I modify from the codes below?

if (empty($_GET['com_id']) && $storypage == 0) {
    
$article->updateCounter();
}

2
hervet
Re: News Counter...
  • 2005/5/22 11:51

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hello,

You don't need to modify anything, the counter is increased each time you read an article. The only exception is that the counter will not changed we you read the different pages of an article.

Bye,
Hervé

3
Twilo
Re: News Counter...
  • 2005/5/22 12:26

  • Twilo

  • Just popping in

  • Posts: 24

  • Since: 2003/4/24


Hello Hervet. Thanks for the reply but what I want is the same news module counter hack in this xoops.org. For example, when I click on an article, the counter increases one time. However, when I refresh the same page it increases one more time, but on my web site this does not work.

Thanks...

4
hervet
Re: News Counter...
  • 2005/5/22 13:08

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


so you are "lucky"
Are you using cache ?

5
Twilo
Re: News Counter...
  • 2005/5/22 13:52

  • Twilo

  • Just popping in

  • Posts: 24

  • Since: 2003/4/24


I guess so :) Yes I use cache.

Login

Who's Online

222 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits