Periodic stats will not let me change months

Current Version: 1.0.2
Released: 04/25/2010
Post Reply
zhumar
Mitglied / Member
Mitglied / Member
Posts: 5
Joined: Tue 28. Dec 2010, 21:49
phpbb.com: zhumar

Periodic stats will not let me change months

Post by zhumar »

I have the stats mod installed on my client's phpbb forum. When we go to the Periodic Statistics tab, it shows the daily stats for the current month. However, if I try to go to a different month and click Go, I get redirected to the Board Index instead of the stats for the previous month. It's very important that we get this fixed asap. I can give you site access if you need to see it for yourself. (everything is private)
User avatar
Marc
Administrator
Administrator
Posts: 620
Joined: Tue 2. Sep 2008, 22:48
phpbb.com: Marc
Location: Munich
Contact:

Re: Periodic stats will not let me change months

Post by Marc »

Do you maybe use a static URL, i.e. you are on the statistics page but you still see example.com/ in your browser?
If not, do you maybe include the forum using an iframe?
Image
zhumar
Mitglied / Member
Mitglied / Member
Posts: 5
Joined: Tue 28. Dec 2010, 21:49
phpbb.com: zhumar

Re: Periodic stats will not let me change months

Post by zhumar »

This is the URL to the Periodic Statistics page:
http://community.connectwise.com/index. ... .php&i=221

We actually use phpbb on a Joomla site and a component called JFusion makes it appear in the Joomla wrapper so the styling remains inside the template. You need to log in to view that link. You may use these credentials

user: stats
pass: wn99tYjrIG
User avatar
Marc
Administrator
Administrator
Posts: 620
Joined: Tue 2. Sep 2008, 22:48
phpbb.com: Marc
Location: Munich
Contact:

Re: Periodic stats will not let me change months

Post by Marc »

You didn't set the permissions for me, so I can't view the statistics.
Image
zhumar
Mitglied / Member
Mitglied / Member
Posts: 5
Joined: Tue 28. Dec 2010, 21:49
phpbb.com: zhumar

Re: Periodic stats will not let me change months

Post by zhumar »

Oops, I totally forgot about that. You should be able to view them now.
User avatar
Marc
Administrator
Administrator
Posts: 620
Joined: Tue 2. Sep 2008, 22:48
phpbb.com: Marc
Location: Munich
Contact:

Re: Periodic stats will not let me change months

Post by Marc »

Try if this helps:
Open includes/stats/stats_periodic.php
Find:

Code: Select all

		$template->assign_vars(array(
			'L_TITLE'	=> $user->lang['STATS_PERIODIC_' . strtoupper($mode)],			
			'S_FS_ACTION'		=> $this->u_action,
			'AS_ON'				=> sprintf($user->lang['AS_ON'], $user->format_date(time())),
		));
Replace with:

Code: Select all

		$template->assign_vars(array(
			'L_TITLE'	=> $user->lang['STATS_PERIODIC_' . strtoupper($mode)],			
			'S_STATS_ACTION'		=> $this->u_action,
			'AS_ON'				=> sprintf($user->lang['AS_ON'], $user->format_date(time())),
		));
If that doesn't help, please add this line after the mentioned code for debug purposes:

Code: Select all

echo $this->u_action;
Your font-size will increase and you will see an error message on the top of your board. Please post the exact error message.

Also, you might want to refresh your theme & template cache.
Image
zhumar
Mitglied / Member
Mitglied / Member
Posts: 5
Joined: Tue 28. Dec 2010, 21:49
phpbb.com: zhumar

Re: Periodic stats will not let me change months

Post by zhumar »

Looks like the first replace worked! Thanks a lot!
Post Reply