Periodic stats will not let me change months

Current Version: 1.0.2
Released: 04/25/2010
zhumar
Mitglied / Member
Mitglied / Member
Beiträge: 5
Registriert: Di 28. Dez 2010, 22:49
phpbb.com: zhumar

Periodic stats will not let me change months

Beitrag von 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)
Benutzeravatar
Marc
Administrator
Administrator
Beiträge: 619
Registriert: Di 2. Sep 2008, 23:48
phpbb.com: Marc
Wohnort: Munich

Re: Periodic stats will not let me change months

Beitrag von 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?
Bild
zhumar
Mitglied / Member
Mitglied / Member
Beiträge: 5
Registriert: Di 28. Dez 2010, 22:49
phpbb.com: zhumar

Re: Periodic stats will not let me change months

Beitrag von 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
Benutzeravatar
Marc
Administrator
Administrator
Beiträge: 619
Registriert: Di 2. Sep 2008, 23:48
phpbb.com: Marc
Wohnort: Munich

Re: Periodic stats will not let me change months

Beitrag von Marc »

You didn't set the permissions for me, so I can't view the statistics.
Bild
zhumar
Mitglied / Member
Mitglied / Member
Beiträge: 5
Registriert: Di 28. Dez 2010, 22:49
phpbb.com: zhumar

Re: Periodic stats will not let me change months

Beitrag von zhumar »

Oops, I totally forgot about that. You should be able to view them now.
Benutzeravatar
Marc
Administrator
Administrator
Beiträge: 619
Registriert: Di 2. Sep 2008, 23:48
phpbb.com: Marc
Wohnort: Munich

Re: Periodic stats will not let me change months

Beitrag von Marc »

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

Code: Alles auswählen

		$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: Alles auswählen

		$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: Alles auswählen

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.
Bild
zhumar
Mitglied / Member
Mitglied / Member
Beiträge: 5
Registriert: Di 28. Dez 2010, 22:49
phpbb.com: zhumar

Re: Periodic stats will not let me change months

Beitrag von zhumar »

Looks like the first replace worked! Thanks a lot!