Uutiset:

Join the Facebook Fan Page.

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.

Advertisement: