Post Frequency Bar

Started by steve in houston, October 26, 2006, 03:58:47 PM

Previous topic - Next topic

TrueSatan

Quote from: MinasC on July 19, 2007, 04:57:43 PM
Quote from: TrueSatan on June 25, 2007, 10:54:51 AM
Update for SMF 1.1.3

got an error in Sources/Display.php , any ideas why ?

thnx !
That would rather depend on the error. If it was a fail when installing all it means is that another mod has already edited the file and you thus need to do a manual installation of this mod.

MinasC

Quote from: TrueSatan on July 19, 2007, 09:09:11 PM
Quote from: MinasC on July 19, 2007, 04:57:43 PM
Quote from: TrueSatan on June 25, 2007, 10:54:51 AM
Update for SMF 1.1.3

got an error in Sources/Display.php , any ideas why ?

thnx !
That would rather depend on the error. If it was a fail when installing all it means is that another mod has already edited the file and you thus need to do a manual installation of this mod.

you were right , it was the mod showing the edit reason that had altered the display.php ! i installed it manually and worked perfect , thnx a lot !

TrueSatan


MinasC

i just noticed that it shows some crazy things ! for me it shows 0,004 posts per day while i have the most posts of all , and at the same time it shows 0,840 posts per day for member with 1/4 the posts i have and the same time of being registered in the forum ! it also doesn't show any bars except from the first one whether it is me we are talking about or other members !

TrueSatan

It looks likely that the mod is not at fault as it was working properly for you and the mod itself hasn't changed...I would suspect the post count records in your database. You might try using the Member Posts Recount mod and running all the other database maintenance options in the ACP.

If the problem occurred post an upgrade to a newer SMF version you should also manually check that all the edits the mod seeks to make are still in place and haven't been overwritten by the upgrade...in fact check that in any case as another mod might have changed them.

MinasC

i will do the 2nd part , i am not touching my database again (once i did and i messed it up) !
thnx a lot !

TrueSatan

You should be fine if you use the controls in the forum...in ACP>Maintenance>Forum Maintenance...they are all very sanitised to remove any real possibility of their causing problems...it's not like using phpmyadmin to do it. Backup first just to be sure.

MinasC

ok i did it but nothing changed !

TrueSatan

I'd say that you have a database error that is providing incorrect information to the mod and thus the mod itself is providing incorrect information...and hence my earlier course of action for you to undertake. Unfortunately without getting ones hands dirty in the database it would be a difficult one to fix...sorry, but unless you want to delve into database editing you'll have to live without the mod and you did say you weren't keen on database work already.

MinasC

i am willing to do it , but i would need spesific directions (go there , click that , change this to that , etc) ! if you have the time to do it ok (i couldn't possibly ask for something like that) , but on my own i wouldn't know where to begin !

thnx a lot !

TrueSatan

The first thing you had best do is to make sure you have backup copies of both your database and your files. Go to phpmyadmin...should be available in your hosting...in that select your SMF database check (as in select) all the tables and then check (as in check command) the lot, analyze the lot, repair the lot and optimise the lot.

This mod doesn't add any new items to the database...it makes different use of what was already there...so there's nothing it will have done to change a working database into a non-working one.

In your ACP try changing the trigger level for the mod...the Frequency Bar Threshold shown in Features and Options...unlikely but it could be a missetting there.

If you've used the Member Post Recount mod to do its job then those are all the reasonably simple tasks that might resolve this issue...other than those it would be a fairly/very extensive task to sort this one out.

MinasC

i already tried changing the trigger level for the mod and didn't work ! i will check my database as you said and get back to you .

thnx !

steve in houston

i still plan to package up the new and improved version.
im going to download 1.1.4 soon.

to view the new version on a live site, check it out here:
http://www.stucknut.com/sports/index.php/topic,20747.0.html

ksawery


MinasC


nwalker

I have the same problem, with the strange postcounts. Can it be linked to regional settings? it seems the problem comes from dateRegistered which seems to output a 10 digit unix timestamp.
But, in some countries, you write the date as day/month/year, instead of month/day/year. I'm far from an expert in php, but can this fact be the trigger of this problem?

TrueSatan

Thanks...I think that may well be possible but will need to investigate further when I have time.

nwalker

should be easy to check;p
$days_registered = (int) ((time() - $message['dateRegistered']) / (3600 * 24));
let's run this line "manualy"

I grab my timestamp from my usr table:
# cat members.txt |grep nwalker|cut -d ',' -f3
1144029046
so it leads me to 04 / 02 / 06 @ 9:50pm
and now we are 1199382404  (01/03/2008 @ 12:46pm)
this lead us to 55353358 seconds, so 640 days, with month/day/year format.
I wrote 2349 posts, so 3.67 posts/day
Now I switch to the french way:
04/02/06 @ 9:50pm becomes 02/04 /06 @ 9:50pm =>1139107800
01/03/08 @ 12:46pm becomes 03/01/08 @ 12:46pm =>1204393560
it leads me to 65285760 seconds, so 755 days, 3.11 posts per day, and the mod gives me 0.004.
so no, it's not the problem:s
lets continue the maths so...
$posts_per_day = comma_format($message['member']['posts'] / $days_registered, 3);
will give 2349/640=3.67
maths still good here.
next one, so:
$rate = $posts_per_day * (100/$modSettings['frequency_bar_max']); with frequency_bar_max=4
3.67*(100/4)=91.75
maths are still good, but my forum gives me 0.004.
strange  :-\

nwalker

#158
SOLVED!!
In some countries, we write numbers like that:
1.234,00
and you, you write this number like that: 1,234.00

just change this parameter in your SMF conf, and the mod will work fine;p
edit: I guess it's something which can be dealt by the comma_format function, but I don't know how;p (for a non PHP writer this doc is a bit short)


pacowar

Hi! Is possible to run Post Frequency Bar on SMF 1.1.4?? Someone can put the url??

Thanks!

Advertisement: