Scheduled Maintenance: 10-11-2025 Electricity company maintenance between 09:00 and 15:00.

3.1.x Extensions Database 3.1 / 3.2Page visits

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
User avatar

taledus
Users
Users
Posts: 83
Joined: 19 Jun 2016, 05:47
    Windows 7 Firefox

Re: Page visits

Post by taledus »

What would be the proper way to edit the placement of this mod?

In overall_footer_copyright_prepend.html there is the line:

Code: Select all

<p class="pagevisits"><span class="pagevisits"><strong>{PAGEVISITS}</strong> {L_PAGE_VISITS}</p>
Now I can take that and paste it under all my other footer code, and just turn the mod off and it still works...but what would be the proper method to just change the placement so it can still be turned on/off in the ACP?

User avatar

taledus
Users
Users
Posts: 83
Joined: 19 Jun 2016, 05:47
    Windows 7 Firefox

Re: Page visits

Post by taledus »

Did I mess something up, or is the mod actually missing a html tag?

https://validator.w3.org/nu/?doc=https% ... Findex.php

User avatar

admin1
Users
Users
Posts: 43
Joined: 06 Sep 2015, 04:26
    Windows 7 Firefox

Re: Page visits

Post by admin1 »

This is a top extension.Try to add a background color.Put in acp settings that will allow users to customize their own words like ''hit counter'', ''visitors'', etc. Keep it up guys !

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6469
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: Page visits

Post by dmzx »

taledus wrote: 25 Jun 2016, 02:00 What would be the proper way to edit the placement of this mod?

In overall_footer_copyright_prepend.html there is the line:

Code: Select all

<p class="pagevisits"><span class="pagevisits"><strong>{PAGEVISITS}</strong> {L_PAGE_VISITS}</p>
Now I can take that and paste it under all my other footer code, and just turn the mod off and it still works...but what would be the proper method to just change the placement so it can still be turned on/off in the ACP?
Proper way is to rename the Event.
You need to check if there is a Event on the location where you want to show it.
If not then you can relocate the code or the Event.(keep in mind that other extensions can use the same Event :wink: )

User avatar

taledus
Users
Users
Posts: 83
Joined: 19 Jun 2016, 05:47
    Windows 7 Firefox

Re: Page visits

Post by taledus »

Which one is the event ->{PAGEVISITS} or {L_PAGE_VISITS}?

Or is the file name the event?

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6469
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: Page visits

Post by dmzx »

taledus wrote: 26 Jun 2016, 14:45 Which one is the event ->{PAGEVISITS} or {L_PAGE_VISITS}?

Or is the file name the event?
The file name is the event.

User avatar

taledus
Users
Users
Posts: 83
Joined: 19 Jun 2016, 05:47
    Windows 7 Firefox

Re: Page visits

Post by taledus »

:thankyou:

I should have known by now...I feel like an idiot with this stuff :rolling:

User avatar

raykai
Users
Users
Posts: 12
Joined: 28 Jun 2016, 08:24
    Windows 10 Chrome

Re: Page visits

Post by raykai »

How can we reset the counter to 0 ?

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6469
Joined: 13 Jan 2014, 21:45
    Windows 10 Firefox

Re: Page visits

Post by dmzx »

Look in DB config table

Image

User avatar

Anuj Dhawan
Users
Users
Posts: 109
Joined: 31 Aug 2015, 10:32
    Windows 7 Chrome

Re: Page visits

Post by Anuj Dhawan »

Just a thought:
  1. Why not disable/delete data/enable the extension.
  2. Reinstall the extension altogether.

User avatar

tamarin
Users
Users
Posts: 72
Joined: 15 Mar 2015, 01:07
    Windows 10 Firefox

Re: Page visits

Post by tamarin »

Scanialady wrote: 21 Jun 2016, 16:19 I don't use mChat, but JV Footerchat and JV Chat. 2-7 calls one refresh of index page counted :whistl:

From yesterday in the evening to now: 9565 visits...

That is not correct, never :rolling:

May be we need restrictions - one person/guest/bot = one visit for x hours/minutes
I have the same problem: in 1 day over 7000 visits. :wall:

User avatar

BlueMarlin97
Users
Users
Posts: 1
Joined: 14 Jun 2017, 16:29
    Windows 7 Firefox

Re: Page visits

Post by BlueMarlin97 »

Is there an update planned?

works well, but counts "2" every refresh


Hartenheer
    Windows 10 Chrome

Re: Page visits

Post by Hartenheer »

Is this still being worked on?
I use it in 3.2, but with every page a visitor arrives.

Is it possible to reset it?
I removed it for a while to rebuild my forum, but it just starts again with the old number

Reset found :thumbup:

Post Reply Previous topicNext topic