Periodic stats will not let me change months

Current Version: 1.0.2
Released: 04/25/2010

Periodic stats will not let me change months

Beitragvon zhumar » Mi 5. Jan 2011, 22:00

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

Re: Periodic stats will not let me change months

Beitragvon Marc » Mi 5. Jan 2011, 22:39

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
Benutzeravatar
Marc
Administrator
Administrator
 
Beiträge: 566
Bilder: 10
Registriert: Di 2. Sep 2008, 23:48
Wohnort: Munich

Re: Periodic stats will not let me change months

Beitragvon zhumar » Mi 5. Jan 2011, 22:53

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

Re: Periodic stats will not let me change months

Beitragvon Marc » Mi 5. Jan 2011, 23:11

You didn't set the permissions for me, so I can't view the statistics.
Bild
Benutzeravatar
Marc
Administrator
Administrator
 
Beiträge: 566
Bilder: 10
Registriert: Di 2. Sep 2008, 23:48
Wohnort: Munich

Re: Periodic stats will not let me change months

Beitragvon zhumar » Mi 5. Jan 2011, 23:29

Oops, I totally forgot about that. You should be able to view them now.
zhumar
Mitglied / Member
Mitglied / Member
 
Beiträge: 5
Registriert: Di 28. Dez 2010, 22:49

Re: Periodic stats will not let me change months

Beitragvon Marc » Do 6. Jan 2011, 14:21

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
Benutzeravatar
Marc
Administrator
Administrator
 
Beiträge: 566
Bilder: 10
Registriert: Di 2. Sep 2008, 23:48
Wohnort: Munich

Re: Periodic stats will not let me change months

Beitragvon zhumar » Do 6. Jan 2011, 21:40

Looks like the first replace worked! Thanks a lot!
zhumar
Mitglied / Member
Mitglied / Member
 
Beiträge: 5
Registriert: Di 28. Dez 2010, 22:49


Zurück zu English Support

Wer ist online?

Mitglieder in diesem Forum: CommonCrawl [Bot] und 2 Gäste

x