Post Frequency Bar

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

Previous topic - Next topic

steve in houston

Link to Mod
Rate this Mod

Versions:
For SMF 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.1 RC3

Description:
This mod will add a frequency bar to each posts to show member activity.
For instance, if your most active member posts 20 times a day, set the
threshold to 20 then their bar will be maxed out.  A member that averages
5 posts per day will have a bar 1/4 of the bar colored in.  When a user
hovers over the bar, it will show total posts and daily average.  I've
seen this on other boards and thought it would be a good feature here.


Options:
In the Admin->Edit Features and Options there will be 3 new options at the
bottom of the Basic Forum Features section.
* Enable frequency bar on posts - Toggle on or off   
* Posting frequency bar threshold - Set number to scale the bar    
* Posting frequency bar color - Choose from 8 colors
  (black, blue, green, grey, orange, purple, red, yellow)


Troubleshoot:
* If you are using a theme other than default, download the
frequency_images.zip file and upload them to your theme's image directory.
* Make sure you have a registered date set for the admin user.


Screenshots:
1. Frequency bar on a post (grey)
2. Frequency bar options in Edit Features and Options
3. Green bar with tool-tip (hover) text


smstevens

I received a "Execute Modification ./Sources/Display.php" error when trying to apply the mod.

Looks like a great mod but I will not attempt to load it unless this problem can be fixed.

Cheers,
Sean

steve in houston

do you have other mods installed that effected the display.php file?

smstevens

yes, are there manual adjustments I can make to allow your mod to work?

steve in houston

yes.  what version are you using?

you can download the zip file and read the install xml file.
you will only need to manually fix display.php, but there are only
4 pages that get affected anyways.

ArkServer

It failed at the mod setting for me but i installed it manually, awesome mod!

steve in houston

Quote from: ArkServer on October 26, 2006, 06:08:17 PM
It failed at the mod setting for me but i installed it manually, awesome mod!

cool!
thanks

smstevens

I am using SMF 1.1 RC3

I will look at the files.

Cheers,
Sean

Vinspire

Look like an awesome mod. Might try it out later :)

qtime

Any changes to get for RC 1.1 2 ??

steve in houston

Quote from: qtime on October 27, 2006, 02:14:44 AM
Any changes to get for RC 1.1 2 ??

ive always used the 1.0.x versions.
i downloaded a fresh install of RC3 and modified my code because
i knew people would ask for it. 

you can probably get by with a manual install for your version.
if it works, ill add it to the list of avaiable versions.

ArkServer

Hm.. not sure if this is an error with the mod or an error with my forums but when I post the bar doesnt display anything but it does work for other people.


(example)
My post:
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/topic,3983.msg19403/topicseen.html#new

other people:
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/topic,3288.msg19401.html#new

steve in houston

Quote from: ArkServer on October 27, 2006, 10:39:00 AM
Hm.. not sure if this is an error with the mod or an error with my forums but when I post the bar doesnt display anything but it does work for other people.


(example)
My post:
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/topic,3983.msg19403/topicseen.html#new

other people:
http://atlantis.montecarlohosting.net/~arksvr/forum/index.php/topic,3288.msg19401.html#new


it shows you only post .006 posts per day.  check your registered date under Profile->Account Settings

ArkServer

Date registered: 2005-11-11
Posts: 2709

I don't think .006 is right?
Well, atleast i know it's not because of your cool mod ;D

steve in houston

Quote from: ArkServer on October 27, 2006, 11:14:25 AM
Date registered: 2005-11-11
Posts: 2709

I don't think .006 is right?
Well, atleast i know it's not because of your cool mod ;D

it could be.  look on your profile and see what it says your posts per day is.

ArkServer

Quote from: steve in houston on October 27, 2006, 11:23:02 AM
Quote from: ArkServer on October 27, 2006, 11:14:25 AM
Date registered: 2005-11-11
Posts: 2709

I don't think .006 is right?
Well, atleast i know it's not because of your cool mod ;D

it could be.  look on your profile and see what it says your posts per day is.

Sorry i forgot to mention that.
Posts:     2,709 (7.740 per day)


steve in houston

 :-\
but all the other members post bar work ok?
i was thinking it was something with the calculations but all members
use the same equation.


try changing your registered date to see if it effects it

ArkServer

When i change 2005 to 2006 it does show some progress (2/7th full bar)
I think somehow it miscalculates my posting stats.

steve in houston

i believe it is because RC3 shows posts over 1000 with a comma.
my version 1.0.8 doesnt do that.
ill add a line to strip it.

steve in houston

ark, i just uploaded the fix.

if you just want to edit it manually, its 1 little thing

in file Display.template.php
Find:
$posts_per_day = number_format($message['member']['posts'] / $days_registered, 3);

and Replace with:
$posts_per_day = comma_format($message['member']['posts'] / $days_registered, 3);


* This applies to RC3 only

Advertisement: