[BETA] Animate Digits IP Tracking Counter 0.4.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

[BETA] Animate Digits IP Tracking Counter 0.4.0

Post by nedka »

MOD Title: Animate Digits IP Tracking Counter
MOD Description: This MOD adds a digits visit counter for your phpBB with following features:
  • Enable/Disable IP Tracking (with IP tracking, we have "IP Visit Counter", with no IP tracking, we have "Hits Visit Counter" :p).
  • Set number of digits for counter (from 1 to maximize).
  • Reset counter (started date time & hits value) from ACP.
  • Animate effect from counter images when reload (if you select display as images in counter display mode from ACP).
  • Custom display mode of counter: No display/Display as images/Display as text
  • Enable/Disable display counter statistics.
  • With some other settings in ACP...
MOD Version: 0.4.0

Screenshots:
Image
Image
Image
Image
Image
Image

MOD Download: http://vinabb.com/viewtopic.php?f=75&t=184
Mirror from SourceForge: http://downloads.sourceforge.net/phpbbv ... _0.4.0.zip
Last edited by nedka on Thu Jun 21, 2007 5:44 pm, edited 1 time in total.
VinaBB - Republic of phpBB
User avatar
Simuzer
Registered User
Posts: 35
Joined: Thu Dec 06, 2001 12:06 pm
Location: Türkiye
Contact:

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by Simuzer »

Hi nedka, thanks for mods.. i like it..

i am from phpbbturkiye :)

i think that "hits per xx" is good, but "hits for today" - "hits for yesterday" - "hits last for the week" and "hits for the last month" are better.

Will you develope that i want these ?
http://www.simuzer.com | Bir sen bir de ben..
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by nedka »

Ok! I will add these things in the next version of this MOD! :D
VinaBB - Republic of phpBB
saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium
Contact:

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by saaiberke »

Nice mod! Thank you!

Nic
User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by JunglistPerfection »

How can I place the counter and its statistics on the bottom of the forum under "Who Is Online"?
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by nedka »

Open: styles/prosilver/template/index_body.html
Find:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3>
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->
After, add:

Code: Select all

<!-- IF S_COUNTER -->
	<h3>{L_COUNTER}:<br />{COUNTER}</h3>
	<!-- IF S_COUNTER_STATS -->
		<p>{L_HITS_PER_USER}: <strong>{HITS_PER_USER}</strong> &bull; {L_HITS_PER_HOUR}: <strong>{HITS_PER_HOUR}</strong> &bull; {L_HITS_PER_DAY}: <strong>{HITS_PER_DAY}</strong> &bull; {L_HITS_PER_WEEK}: <strong>{HITS_PER_WEEK}</strong> &bull; {L_HITS_PER_MONTH}: <strong>{HITS_PER_MONTH}</strong> &bull; {L_HITS_PER_YEAR}: <strong>{HITS_PER_YEAR}</strong>
		<br />
	<!-- ELSE -->
		<p>
	<!-- ENDIF -->
	{COUNTER_STARTDATE} <strong>{IP_TRACKING_INFO}</strong></p>
<!-- ENDIF -->
Open: styles/subsilver2/template/index_body.html
Find:

Code: Select all

<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
Before, add:

Code: Select all

<!-- IF S_COUNTER -->
	<br clear="all" />

	<div align="center">
	<table class="tablebg" cellpadding="2" cellspacing="1">
		<th colspan="3" align="center">{L_COUNTER}<!-- IF S_COUNTER_TEXT-->: {COUNTER}<!-- ENDIF --></th>
		<!-- IF S_COUNTER_IMAGE -->
		<tr>
			<td class="row2" align="center" colspan="3"><strong>{COUNTER}</strong></td>
		</tr>
		<!-- ENDIF -->
		<!-- IF S_COUNTER_STATS -->
		<tr>
			<td class="row2" align="{S_CONTENT_FLOW_BEGIN}">{L_HITS_PER_USER}: <strong>{HITS_PER_USER}</strong></td>
			<td class="row2" align="{S_CONTENT_FLOW_BEGIN}">{L_HITS_PER_HOUR}: <strong>{HITS_PER_HOUR}</strong></td>
			<td class="row2" align="{S_CONTENT_FLOW_BEGIN}">{L_HITS_PER_DAY}: <strong>{HITS_PER_DAY}</strong></td>
		</tr>
		<tr>
			<td class="row2" align="{S_CONTENT_FLOW_BEGIN}">{L_HITS_PER_WEEK}: <strong>{HITS_PER_WEEK}</strong></td>
			<td class="row2" align="{S_CONTENT_FLOW_BEGIN}">{L_HITS_PER_MONTH}: <strong>{HITS_PER_MONTH}</strong></td>
			<td class="row2" align="{S_CONTENT_FLOW_BEGIN}">{L_HITS_PER_YEAR}: <strong>{HITS_PER_YEAR}</strong></td>
		</tr>
		<!-- ENDIF -->
		<tr>
			<td class="row2" align="center" colspan="3">{COUNTER_STARTDATE} <strong>{IP_TRACKING_INFO}</strong></td>
		</tr>
	</table>
	</div>
<!-- ENDIF -->
Or anywhere you like, any template files... :geek:
VinaBB - Republic of phpBB
User avatar
JunglistPerfection
Registered User
Posts: 611
Joined: Mon Apr 09, 2007 11:58 pm
Location: Chicago, IL

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by JunglistPerfection »

Thanks a lot.
User avatar
chadtm80
Registered User
Posts: 166
Joined: Mon Jan 06, 2003 8:05 pm
Contact:

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by chadtm80 »

when you install this does it go back to original board start date? or does it start from the day you install the mod? I want it to start from board origin date
http://www.bigmoeknow.com/forum/index.php

YOUR HOME FOR SPORTS INFOMATION & THE BEST COLLECTION OF 'CAPPERS ON THE NET
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by nedka »

Open: includes/acp/acp_main.php
Find:

Code: Select all

					case 'reset_counter':
						set_config('counter_startdate', time() - 1);
						set_config('counter_hits', 1, true);
						add_log('admin', 'LOG_RESET_COUNTER');
					break;
Replace:

Code: Select all

					case 'reset_counter':
						set_config('counter_startdate', $config['board_startdate']);
						set_config('counter_hits', 1, true);
						add_log('admin', 'LOG_RESET_COUNTER');
					break;
Replace
set_config('counter_startdate', time() - 1);
by
set_config('counter_startdate', $config['board_startdate']);
:D When you reset counter, it will get "the started date time" of your board. :geek:
VinaBB - Republic of phpBB
mdvaldosta
Registered User
Posts: 353
Joined: Sat Mar 26, 2005 12:26 am
Contact:

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by mdvaldosta »

This is great, exactly what I was looking for.
modbo
Registered User
Posts: 45
Joined: Wed Jan 12, 2005 10:26 am

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by modbo »

Will Bots counted too?
If so is the a solution to turn off?
RedTrinity
Registered User
Posts: 1327
Joined: Sat May 06, 2006 3:32 am

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by RedTrinity »

What an awesome MOD, thanks so much nedka :)
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by muggins »

nedka, this is great! I've been modding my board for more than a month, and your mod is the only thing I want to add to finish. (So far, anyway... :) )

I have a small question, though. I will start the counter at the board's start date, but I want to start the counter at a specific number of hits, which I have from Google Analytics statistics. How can I do this? By inserting a value directly into the database?

I am a bit nervous about experimenting without more information. :?
Muggins
User avatar
nedka
Registered User
Posts: 162
Joined: Tue Jun 28, 2005 8:55 am
Location: Ho Chi Minh City
Name: Khoa Nguyen

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by nedka »

Run this SQL:

Code: Select all

UPDATE phpbb_config SET config_value = '9999999' WHERE config_name = 'counter_hits';
:) (Change 9999999 with your hits)
VinaBB - Republic of phpBB
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [BETA] Animate Digits IP Tracking Counter 0.4.0

Post by muggins »

Yes, sir! Thank you, I knew it would be simple for you, hard for me. :D
Muggins
Locked

Return to “[3.0.x] MODs in Development”