Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Theme Edit

Aloittaja Ventic, huhtikuu 02, 2011, 07:28:19 AP

« edellinen - seuraava »

Ventic

How i can disable the page views from my forum stats?

http://www.gaming-paradise.net/forum/index.php?action=stats

look down what i mean Page Views

Ventic


Bigguy

No one can see anything on that page. Your forum is closed to guest viewing.

Illori

it was visible to guests yesterday, it is the normal stats page although i am not really sure why or what the edit would be. and i am pretty sure it is an edit of the theme, more an edit of the core smf code.

Bigguy

I'm not sure what edit that file would be in. Would be easy to take it out though.

Illori

i think it is in Sources/stats.php but i did not see exactly where the edit would be and I dont have a test install of 1.1.13 to play with it.

Ventic

i attached my source/stats.php file

Ventic

#7
Lainaus käyttäjältä: Bigguy - huhtikuu 02, 2011, 11:40:21 AP
No one can see anything on that page. Your forum is closed to guest viewing.
i am taking a backup..it will be up in some minutes

sorry for double post

Forum is Up Again

Bigguy

In Stats.template.php file you can remove this:

if (!empty($modSettings['hitStats']))
echo '
</tr><tr>
<td nowrap="nowrap">', $txt['num_hits'], ':</td>
<td align="right">', $context['num_hits'], '</td>';


For total page views and this:

if (!empty($modSettings['hitStats']))
echo '
</tr><tr>
<td nowrap="nowrap">', $txt['average_hits'], ':</td>
<td align="right">', $context['average_hits'], '</td>';


For average page views. Does that help. ???

Ventic

i want to remve page views and everything is related to this at  forum stats

check : http://www.gaming-paradise.net/forum/index.php?action=stats

Bigguy

Those edits I posted should remove the page views.

Ventic

Lainaus käyttäjältä: Bigguy - huhtikuu 02, 2011, 01:28:00 IP
Those edits I posted should remove the page views.
cause i have to go now i will test it after

Ventic

http://www.gaming-paradise.net/forum/index.php?action=stats


at Forum History (using forum time offset) after Most Online i still can see page views
after  these changes i did

Bigguy

There's no reason that should not have worked as far as I know. Unless there is a stats.template.php in your custom theme folder which I double. What does the default theme look like. ???

Ventic

i changed that at default theme

my custom theme doesnt have stats.template

Bigguy

From the file you posted (Stats.php) Remove these two lines and see what happens:

$context['average_hits'] = round($row['hits'] / $total_days_up, 2);

$context['num_hits'] = $row['hits'];

Ventic


Bigguy

Well, if both edits I posted are out of both files and it's still not going away then I don't know what to tell you. Did you take both edits out at the same time from both files. ???

Ventic

yes i did

wanna upload them here so you can do it?

Bigguy

Can you upload your Stats.template.php please.

Ventic


Bigguy


Ventic

i still can see the damn page views after most online

Bigguy


Ventic


Bigguy

Well, that's just nuts. I made a mistake in that one as well and it didn't even effect anything. Here is another one but I don't think it will be any different. Are you using the edited Stats.php as well. ???

mashby

Just out of pure curiosity...can you go to Admin > Features and Settings and let us know if "Track daily page views (must have stats enabled)" is checked or not?
Always be a little kinder than necessary.
- James M. Barrie

Ventic

lol it was checked
i de-check it and now it works finee

thanks a lot man

Sleezy

Thank's, I wanted to do this to, but couldn't figure out how, but now I know how. :)
SMFNew Advocate for SMFNew (Dagger)

gigashiga

coming after a long time..
I hope I can post here or do I need to create anew topic?

can we disable stats viewing from public only admin can view stats is it possible?

Illori

gigashiga this thread belongs to someone else and is marked solved, please open a separate thread for your issues.

Advertisement: