Using Click Counter II
![]() |
The Using Click Counter II is a procedure for updating your TNG Mods that allows you, the mod developer to track the downloads of your mods from the TNG Wiki on your web site Click Counter II install. Major advantage is to allow your mods to survive your web site by keeping your mods themselves on the TNG Wiki. |
|
![]() |
Language: |
[[::Using Click Counter II|English]] |
Language: |
[[::Using Click Counter II|English]] |
Overview
Thanks to Bart 'Roebie' Degryse for providing the procedure on how you can use his Click Counter II to count your TNG Mod downloads.
This method offers the following advantages:
- you get the click counts for the number of downloads for your mod without moving your mods to your own server
- you can also get click counts for a group of mods
- if your site server domainyourdomain.com ever disappears, your mod doesn't get lost for the community as it remains available on the TNG Wiki server.
We will be recording TNG Wiki download activity back on the developer's website, and then serving the actual file from the TNG Wiki. Here's how we need to set it up (see the following sections for details):
- On the TNG Wiki, upload your file and create a link to it as you always have.
- Use your browser to find the TNG Wiki URL link to the file (details below).
- In your website's Click Counter II admin screen enter the TNG Wiki URL address to the file you just uploaded, and note the id number assigned.
- Back on the TNG Wiki page, replace the normal link you just created, with the link back to your website's click.php and use the correct id number in the query (argument) string.
- Optionally add an additional link back to your Click Counter II stats routine to display your file's download stats in a new window.
To summarize:
It is recommended that you upload your TNG Mods to the TNG Wiki and use Bart's Click Counter II to count your mod downloads.
- Note that if you insist on hosting your own mods, then please upload a copy of your mod zip file to the TNG Wiki and update the mod article to show what its file name is as a comment below the TNGmod template to allow your mods to continue to be available, if your site should ever disappear.
It is important to download the file from the TNG Wiki because if the developer's site becomes unavailable, the TNGWiki link can be modified to point back to the local file on its own server. In other words, the file itself will not be lost. Of course the download_stats link will need to be removed because they will no longer be available.
Install Click Count
You need to install Bart's Click Counter II as documented in Click Counter II Installation on your own web site.
- Note that in the settings.php
- the $settings['webroot'] should be the same as your server's html_public or www folder.
- If you are not sure what that is, it will be the same as your TNG Root Path minus the directory name where you installed TNG and the trailing slash.
- the $settings['click_url'] should be something like http://www.mysite.com/ccount/click.php
The following are the steps to take to use the Click Counter II to track your TNG Mod downloads:
Create or Update Your TNG Mod page
- have a working Click Counter II installation on your web site
- set up a wiki mod page with the name of the zip file for download in the TNGmod:download_link location (This is the normal way of doing things)
- save the page so that the link is shown in red
- click the link to get the upload page
- upload your mod zip file
- return to your wiki mod page and Reload the page
- get the zip file upload location
- in Firefox and SeaMonkey, right click the link to the zip file and choose Copy link location
- in Chrome and Chromium, right click the link and choose Copy link address
- in Safari, right click the link and choose Copy link
- in other browsers. a similar capability is provided to copy link addresses
Create tracking links
- go to the Click Counter II admin panel on your own web site
- for example, http://www.yourdomain.com/ccount
Update download link and stats
- Now go back to your wiki mod page and into edit mode.
| download_link = for {{Tv90}}[[Media:admin_users_menu_mod_v9.0.0.0.zip|admin_users_menu_mod_v9.0.0.0.zip?]]<hr />for {{Tv80}} [[Media:admin_user_mod_v8.1.0.zip|admin_user_mod_v8.1.0.zip?|700px]]
should be replaced by something like this
| download_link = for {{Tv90}}[http://ccount.degryse-moeys.net/click.php?id=57 admin_users_menu_mod_v9.0.0.0.zip?]<hr />for {{Tv80} [[Media:admin_user_mod_v8.1.0.zip|admin_user_mod_v8.1.0.zip?]]
| download_stats = [http://ccount.degryse-moeys.net/index.php?action=stats&id=57 See download statistics]
- Save the page.
- Note that you will have to complete a captcha since you're saving a link to a place outside the TNG Wiki)
Alternate Language files
If you were using a piped display for alternate language file names, such as French language file, in order to allow for recovery of the file name if your site ever disappears, you should save the real file name as a comment below the closing brackets for the TNGmod template as shown on the right. |