[Bug in v1.3.1] graphical counters and admin area
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_sitestats
View previous topic :: View next topic  
Author Message
tricker
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 5

PostPosted: Fri Jul 30, 2004 1:46 pm    Post subject: [Bug in v1.3.1] graphical counters and admin area Reply with quote

hi .. first thnx for the gr8 work here

i am running an arabic forum so its right to left

the first problem is the counter

its reversed right to left when using the graphical counters

for example 4333 gives the digits 3334 in the graphical counter

how to solve this ?!


second problem in the admin area

when editing counters and submitting info it redirect me to the login screen

when i did a viewsource then edited the target of form and added ?sid={myid} it ran successfully

any solutions here too ?!
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Fri Jul 30, 2004 1:51 pm    Post subject: Re: graphical counters and admin area Reply with quote

Good question! Wink

We always forget non-arabic alphabets. I'm so sorry for that. Ignorance is no excuse, though sometimes happens... Shocked Embarassed

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
tricker
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 5

PostPosted: Fri Jul 30, 2004 9:28 pm    Post subject: Re: graphical counters and admin area Reply with quote

thnx for repling

oops sorry about that .. anyway i added the site Embarassed


so u r tellin me that the only solution is to replace the .gif with arabic alphabet .. its sounds to me that this don't help.

and about the second question, plz ?!
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Fri Jul 30, 2004 9:59 pm    Post subject: Re: graphical counters and admin area Reply with quote

tricker wrote:
oops sorry about that .. anyway i added the site Embarassed

Thank you. Smile

tricker wrote:
so u r tellin me that the only solution is to replace the .gif with arabic alphabet .. its sounds to me that this don't help.

Nope. I could fix that, so it builds the graphical digits array in reverse order. If that is what you need. Agree?

tricker wrote:
and about the second question, plz ?!

Strange... does that happen with SiteStats settings only?

Please, fill in the following form:
  • Info from AdmiCP->MX-Portal->PortalGeneral->Management:
    URL to the Mx Portal: Question
    URL to the PHPBB installation: Question

  • Info from mxroot/config.php file:
    Current value of $phpbb_root_path variable: Question

  • Info from AdminCP->phpBB->GeneralAdmin->Configuration:
    Script path: Question

  • Info from AdminCP->MX-Portal->System->phpInfo:
    OS: Windows or *nix
    Webserver: Apache, IIS, etc.
    Version of PHP: 4.x.x
    Version of MySQL: 3.x, 4.x, 5.x ?

  • Other Product Versions:
    MX-Portal: Question
    phpBB: Question

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
tricker
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 5

PostPosted: Sun Aug 01, 2004 11:43 am    Post subject: Re: graphical counters and admin area Reply with quote

Quote:
I could fix that, so it builds the graphical digits array in reverse order. If that is what you need. Agree?



yeah sure that will be gr8 Smile thnx


Info from AdmiCP->MX-Portal->PortalGeneral->Management:
URL to the Mx Portal: http://hanatees.net/mx/
URL to the PHPBB installation: http://hanatees.net/forum/


Info from mxroot/config.php file:
Current value of $phpbb_root_path variable: $mx_root_path . '../forum/';


Info from AdminCP->phpBB->GeneralAdmin->Configuration:
Script path: /forum/


Info from AdminCP->MX-Portal->System->phpInfo:
OS: FreeBSD
Webserver: Apache/1.3.28 (Unix)
Version of PHP: 4.3.6
Version of MySQL: 3.23.49


Other Product Versions:
MX-Portal: 2.7.3
phpBB: 2.0.8a



It happens with the counters manager only and not the other two links in the admin

thanks alot for the help Smile
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun Aug 01, 2004 8:19 pm    Post subject: Re: graphical counters and admin area Reply with quote

tricker wrote:
Quote:
I could fix that, so it builds the graphical digits array in reverse order. If that is what you need. Agree?


yeah sure that will be gr8 Smile thnx

ok, here we go... this one is easier than pie. Wink
Code:
#
# ---[ OPEN ]----------
#
modules/mx_sitestats/includes/common.php

#
# ---[ FIND ]----------
#
      $s = sprintf(('%0'.$size.'d'), $counter);

#
# ---[ AFTER, ADD ]----------
#
      $s = strrev($s);

#
# ---[ SAVE ]----------
#

That's all. Smile ...well, I hope.

I'll add this for next version as a new option for SiteStats Settings. Exclamation


tricker wrote:
It happens with the counters manager only and not the other two links in the admin

thanks alot for the help Smile

hmm... :eusa_think:

Got it too, I believe. This is a BUG in admin_counter.php Exclamation Exclamation Exclamation ...fix is:

Code:
#
# ---[ OPEN ]----------
#
modules/mx_sitestats/admin/admin_counter.php

#
# ---[ FIND ]----------
#
      '<form method="post" action="' . $my_script_name . '">' .


#
# ---[ REPLACE WITH ]----------
#
      '<form method="post" action="' . append_sid($my_script_name) . '">' .

#
# ---[ FIND ]----------
#
   $message = '<form method="post" action="' . $my_script_name . '">' .

#
# ---[ REPLACE WITH ]----------
#
   $message = '<form method="post" action="' . append_sid($my_script_name) . '">' .

#
# ---[ SAVE ]----------
#


Works?

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
tricker
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 5

PostPosted: Mon Aug 02, 2004 8:01 pm    Post subject: Re: [Bug in v1.3.1] graphical counters and admin area Reply with quote

Yeah all worked fine .. Very Happy


thnx alot
 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_sitestats All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum