How do u i add a traffic counter ?

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
wikiwebmaster
Rank 0
Rank 0
Posts: 1
Joined: July 6th, 2010, 1:26 am

How do u i add a traffic counter ?

Post by wikiwebmaster »

Hi Paul,

First off, thanks for the amazing skin.

I have two problems, with mediawiki in general. I am using GuMax skin.

Issue # 1:

I wish to add a small counter on every page, to see my website traffic status, i signed up with http://www.histats.com

I got a Javascript code, i don't know what to do with it. I want to add it in all pages, but i failed to add it to any CSS file or JS file, maybe i dont know how, but nothing i tried work.

Issue # 2:

I want to edit the template so that on each an every page "Inside specific Categories" not on the main pages, i want each page of those to have a small box with links to other websites that rotate randomly using a script.

For example, i plan to make link exchange with 500 websites, on my website, in one category i have 5000 pages.
When a user comes to each page, he should see a small box, with 5-6 text links rotating randomly from those 500 links.

How to include such a script into the Wiki and add it so that on each page, this box will appear ?

Thanks for the help

my email just in case u need some screen caps, celebnudewiki@gmail.com

I really appreciate your help on both issues

Thanks
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do u i add a traffic counter ?

Post by Paul »

1) Wiki has its own traffic counter which is already displayed... I'm not sure about that one....

2) You can do it by adding javascript into the gumax.php, or make a extension of it...........
User avatar
zeroy
Rank 1
Rank 1
Posts: 6
Joined: April 19th, 2011, 1:12 pm

Re: How do u i add a traffic counter ?

Post by zeroy »

Paul wrote:1) Wiki has its own traffic counter which is already displayed...
Sorry to revive an old thread but this was actually my question... I have a mediawiki (1.16.0) which does display the pages stats (visits) on any skin but when on GuMaxdd (v.1.4) it doesnt show :(

Congrats on the great skin!!!
User avatar
zeroy
Rank 1
Rank 1
Posts: 6
Joined: April 19th, 2011, 1:12 pm

Re: How do u i add a traffic counter ?

Post by zeroy »

Ok it wasnt too hard, just adde:

Code: Select all

'lastmod', 'viewcount',
to the Creditbox in GuMaxdd.php
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: How do u i add a traffic counter ?

Post by Paul »

I suppressed the message in order to keep the skin clean. It's still in GuMaxDD.php, you can edit it and enable it. but you need to find a place to display it.
Post Reply