Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: Ventic - huhtikuu 02, 2011, 07:28:19 AP

Otsikko: Theme Edit
Kirjoitti: Ventic - huhtikuu 02, 2011, 07:28:19 AP
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
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 02, 2011, 11:39:25 AP
no one?
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 02, 2011, 11:40:21 AP
No one can see anything on that page. Your forum is closed to guest viewing.
Otsikko: Re: Theme Edit
Kirjoitti: Illori - huhtikuu 02, 2011, 11:43:37 AP
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.
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 02, 2011, 11:55:23 AP
I'm not sure what edit that file would be in. Would be easy to take it out though.
Otsikko: Re: Theme Edit
Kirjoitti: Illori - huhtikuu 02, 2011, 11:57:20 AP
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.
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 02, 2011, 12:21:03 IP
i attached my source/stats.php file
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 02, 2011, 12:21:57 IP
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
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 02, 2011, 12:45:11 IP
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. ???
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 02, 2011, 01:12:42 IP
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
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 02, 2011, 01:28:00 IP
Those edits I posted should remove the page views.
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 02, 2011, 01:32:18 IP
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
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 02, 2011, 05:30:39 IP
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
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 02, 2011, 05:41:39 IP
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. ???
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 02, 2011, 05:47:27 IP
i changed that at default theme

my custom theme doesnt have stats.template
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 02, 2011, 06:02:32 IP
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'];
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 03, 2011, 09:13:31 AP
still nothing
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 03, 2011, 10:29:00 AP
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. ???
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 03, 2011, 11:10:45 AP
yes i did

wanna upload them here so you can do it?
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 03, 2011, 11:39:07 AP
Can you upload your Stats.template.php please.
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 03, 2011, 12:06:54 IP
sure
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 03, 2011, 02:12:20 IP
Try this
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 03, 2011, 02:26:45 IP
i still can see the damn page views after most online
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 03, 2011, 02:30:01 IP
Ok, try this
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 03, 2011, 02:55:43 IP
still nothing jesus
Otsikko: Re: Theme Edit
Kirjoitti: Bigguy - huhtikuu 03, 2011, 03:01:14 IP
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. ???
Otsikko: Re: Theme Edit
Kirjoitti: mashby - huhtikuu 03, 2011, 03:34:51 IP
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?
Otsikko: Re: Theme Edit
Kirjoitti: Ventic - huhtikuu 03, 2011, 03:48:30 IP
lol it was checked
i de-check it and now it works finee

thanks a lot man
Otsikko: Re: Theme Edit
Kirjoitti: Sleezy - huhtikuu 03, 2011, 05:45:47 IP
Thank's, I wanted to do this to, but couldn't figure out how, but now I know how. :)
Otsikko: Re: Theme Edit
Kirjoitti: gigashiga - elokuu 26, 2011, 01:37:19 AP
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?
Otsikko: Re: Theme Edit
Kirjoitti: Illori - elokuu 26, 2011, 05:31:36 AP
gigashiga this thread belongs to someone else and is marked solved, please open a separate thread for your issues.