×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: 'Hits' counting disappeared

'Hits' counting disappeared 15 years 5 months ago #4116

  • Alard
  • Alard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
As I installed JoomComments, the HITS are no longer to be seen in an article.
How can I repair this issue...?
Does anyone know?

Alard

'Hits' counting disappeared 15 years 5 months ago #4117

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Are you using joomla 1.5.10?

'Hits' counting disappeared 15 years 5 months ago #4118

  • Alard
  • Alard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Yep, using 1.5.10
Here's a link to my site: tilburgvirtueel.gtenc.com/


Alard

'Hits' counting disappeared 15 years 5 months ago #4119

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Did you update from 1.5.9 or other version?

I had this problem here on compojoom.
forum.joomla.org/viewtopic.php?f=199&t=387857

'Hits' counting disappeared 15 years 5 months ago #4120

  • Alard
  • Alard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
I read your problem.
Yes, I updated from 1.5.9 I guess (not really sure)

But as far as I do rember the problem occured as I installed JoomlaComments.
Oops, not really sure about that anymore, cause I updated Joomla and installed JoomlaComments within several days.

Did the solve the problem over there, by the way...?

Alard

'Hits' counting disappeared 15 years 5 months ago #4121

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Yep, I solved it and also posted in the thread. Read the post and do what it suggest, then it will start working again :)

'Hits' counting disappeared 15 years 5 months ago #4122

  • Alard
  • Alard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
You mean to overwrite the whole of Joomla, except the installation-folder...?

Ok, I'm gonna try it...!

Pray for me...!

I will let you know...!

Alard

'Hits' counting disappeared 15 years 5 months ago #4123

  • Alard
  • Alard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
:S
Nope, it didn't work...
I overwrited all files, except the htaccess-file, the installation.php (root-)file ande the map 'Installation'....

But nevertheless, thanks for your help...!

Alard

'Hits' counting disappeared 15 years 5 months ago #4124

  • Alard
  • Alard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello Daniel...

The JoomlaComment Plugin (content) has an option te enable Use '{joscommentenable} tag'.
In my plugin it's still disabled.
Is that the/a problem?

What's the use of that option? (Í didn't understand the explanation)

Alard

*(Still using JoomlaComments, by the way; I think it's a great extension!)

'Hits' counting disappeared 15 years 5 months ago #4127

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Alard,
Sorry for the delay (I was on joomladay france today :))

I'm absolutly sure, that the problem you experience have nothing to do with joomlacomment. You can uninstall it or just disable the plugins and you will see that the hits will not start to count. Read the joomla thread about the problem and make the necessary changes as proposed in the thread - that helped me, it will help you too.

joscommentable - you can set the settings to disable comments, but if you use this tag in your article, the comment should appear.

'Hits' counting disappeared 15 years 5 months ago #4128

  • Alard
  • Alard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Hello Daniel,

I replaced the file component/com_content/views/arcile/view.html.php with the original file of Joomla 1.5.10
(I downloaded the package again from Joomla.org, to be sure)

But until now: no hit counts in my articles...

(Yesterday I replaced ALL files already, without the installation-directory; also without success)

This problem seems to be hard in my joomlasite, that's for sure.

Alard

'Hits' counting disappeared 15 years 5 months ago #4134

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I didn't override the files, but I did this:

Hello,

To fix this problem:

1. go to the folder /components/com_content/models/
2. open the file article.php
3. find an instruction
$this->_loadArticleParams();
(it should be in the line 147 or something like that)
4. add this fragment:
/*
* Record the hit on the article if necessary
*/
$limitstart = JRequest::getVar('limitstart', 0, '', 'int');
if (!$this->_article->parameters->get('intro_only') && ($limitstart == 0))
{
$this->hit();
}

This code was in the file article.php of the 1.5.9 version and is not included in 1.5.10.

Best regards,
Stan


Would you check your model?

'Hits' counting disappeared 15 years 5 months ago #4137

  • Alard
  • Alard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Like this...?

$this->_loadArticleParams();
/*
* Record the hit on the article if necessary
*/
$limitstart = JRequest::getVar('limitstart', 0, '', 'int');
if (!$this->_article->parameters->get('intro_only') && ($limitstart == 0))
{
$this->hit();
}

}
else


I do hope it will work...

Best regards,

Alard

'Hits' counting disappeared 15 years 5 months ago #4138

  • Alard
  • Alard's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
As I pasted it now, it ain't working...
:S

'Hits' counting disappeared 15 years 5 months ago #4141

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I have no idea - this have worked for me. Perhaps writing in the joomla thread will help you. Somebody can come with other proposition.
  • Page:
  • 1
Time to create page: 0.129 seconds