News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

BETA - Mini Frequency Bars (v1.1 updated)

Started by karlbenson, May 31, 2007, 08:02:58 PM

Previous topic - Next topic

karlbenson

Based on steve in houston's frequency bar mods (created and posted with his permission)
Steve's Homepage: http://www.stucknut.com/jimrome/

For SMF 1.1.2

BETA: Meaning hasnt been tested in a working environment.

Install... enjoy




Contains no admin settings as yet.

Uses Steves images.
Code entirely re-written from scratch

Mini Frequency Bars for
- Activity
- Referrals (supporting my referrals mod) [which is optional to install pre or post install this mod]
- Karma
- Longevity

http://www.adrevenuesharing.info/Frequency Bars.zip

This is now v1.1
Fixed all the reported bugs

Longevity = 1px for every 5 days registered (upto 50)
karma = percentage (now tells you the negative if negative > positive)
activity = 2px for every 1 average post per day (upto 50)

If the bars don't show, ctrl & F5 to force the browser to get a fresh copy of the css.

N3lson

Nice but there is at least 3 bugs i think

One - » In posts appears 50">px ( go to )
($fb['activity_size'] == 50) ? 'colspan="2" width="50px"></td>' : 'width="'. $fb['activity_size'] ,'px"></td><td class="fb_white" title="', $fb['activity_stat'] .' ', $txt['fb_activityalt'] .'" width="', $fb['activity_diff'] ,'px"></td>';

And replace the , by a .

Two -» In posts says posts by day but that shows the total post count

Three - » The Longevitity do not take any effect (at least on mine)
I´m Portuguese Yeah

karlbenson

I'll try to fix them all now, thx for testing.

N3lson

I´m Portuguese Yeah

Yağız...

I can't see the images in Mozilla Firefox 2.0.4 :S

N3lson

Quote from: ghg on June 01, 2007, 02:34:38 PM
I can't see the images in Mozilla Firefox 2.0.4 :S

Do you put the images in image folder of your theme ?
I´m Portuguese Yeah

Yağız...

Yes.I see in Internet Explorer 6,7 but I can't see in Mozilla Firefox 2.0.4

N3lson

Quote from: ghg on June 01, 2007, 03:24:37 PM
Yes.I see in Internet Explorer 6,7 but I can't see in Mozilla Firefox 2.0.4

empty you cache 

in my forum the smileys after the update to mozilla 2.04 don´t show... i emptied the cahe and 100%
I´m Portuguese Yeah

Yağız...

#8
Ok.I will try this.
Edit:
It works :).Thanks N3lson.

karlbenson

ctrl and f5 to force clearing of the cached css file (which i believe it the cause)

Stirred

Quote from: N3lson on June 01, 2007, 01:18:42 PM
Nice but there is at least 3 bugs i think

One - » In posts appears 50">px ( go to )
($fb['activity_size'] == 50) ? 'colspan="2" width="50px"></td>' : 'width="'. $fb['activity_size'] ,'px"></td><td class="fb_white" title="', $fb['activity_stat'] .' ', $txt['fb_activityalt'] .'" width="', $fb['activity_diff'] ,'px"></td>';

And replace the , by a .

Two -» In posts says posts by day but that shows the total post count

Three - » The Longevitity do not take any effect (at least on mine)

First thanks for doing this incredible mod!!

After that i must say that i had those errors too.

I'm here to help on tests whenever i can...

Continue with the work, we appreciate! ;)
- eighteen seconds before sunrise -

kerrang!

#11
Quote from: Stirred on June 01, 2007, 08:14:03 PM
Quote from: N3lson on June 01, 2007, 01:18:42 PM
Nice but there is at least 3 bugs i think

One - » In posts appears 50">px ( go to )
($fb['activity_size'] == 50) ? 'colspan="2" width="50px"></td>' : 'width="'. $fb['activity_size'] ,'px"></td><td class="fb_white" title="', $fb['activity_stat'] .' ', $txt['fb_activityalt'] .'" width="', $fb['activity_diff'] ,'px"></td>';

And replace the , by a .

Two -» In posts says posts by day but that shows the total post count

Three - » The Longevitity do not take any effect (at least on mine)

First thanks for doing this incredible mod!!

After that i must say that i had those errors too.

I'm here to help on tests whenever i can...

Continue with the work, we appreciate! ;)
Same here... I previously used the posting frequency bar and I similar problems. (with the post amount)

I'm also unable to get the referral bar to work (which mod would this be?) I have one already installed, could this also be a bug or because i'm using the wrong mod?

To many questions, but like the above if you need any more testing feel free to ask. It's an awesome mod which i'd love to be using! so thanks for taking the time to code it for us :)

~Kerrang!

P.s I'm blind as hell, sorry I just noticed which referral mod it works with.
I'm my own worst enemy! :P

Css Help <--Having difficulty matching the look of the code function with the style of "quote".. =)

L.G.S

Just installed the mod and the images did not appear in any browser. Yes I also tried hard refresh. All I get are the words and "50px>" in the user area.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


karlbenson

Sorry about that.

I've just uploaded version 1.1 will all these bugs fixed.

As above, it if doesnt show, ctrl & F5 to force the browser to get a fresh copy of the css.

nitins60

Is it possible to link to Thanks-O-matic mod, since many users are now using this mod instead of built in karma system. This s some thing really cool. 

SMdot™

can you help me figure out why I have text that says 50px">


I copied over the Modifications.english.php file to my current theme as well as copied over the bar images.

I've attached my MessageIndex.template.php file



MessageIndex.template.php (24.24 KB - downloaded 0 times.)



N3lson

I´m Portuguese Yeah

Tanks

#17
I manual installed this on 1.1 RC3 with TP.. only thing i cant get to work is the Longevity

It shows around 5 pixels for all users.. no matter how long they been member.. can u help me fix this issue and i will be in my happy spot :)

Nice mod btw ;)

Also is there any way to change the activity to count for 1 post instead of 2 ?

Actually i rather if i could change it to 0.1 because 99% of my users has a posting average of 0.x post per day  :( can it be done without too much hasle ?  :)

SMdot™

Quote from: N3lson on June 04, 2007, 12:27:20 AM
Quote from: SMdot™ on June 04, 2007, 12:09:59 AM
can you help me figure out why I have text that says 50px">


Look 2nd post

what file do I edit? I checked my default MessageIndex.template.php file as well as the Post.template.php files.

N3lson

Quote from: SMdot™ on June 05, 2007, 02:46:51 PM
Quote from: N3lson on June 04, 2007, 12:27:20 AM
Quote from: SMdot™ on June 04, 2007, 12:09:59 AM
can you help me figure out why I have text that says 50px">


Look 2nd post

what file do I edit? I checked my default MessageIndex.template.php file as well as the Post.template.php files.

Display.template
I´m Portuguese Yeah

SMdot™

also do I replace all the comma's?

($fb['activity_size'] == 50) ? 'colspan="2" width="50px"></td>' : 'width="'. $fb['activity_size'] .'px"></td><td class="fb_white" title="', $fb['activity_stat'] .' ', $txt['fb_activityalt'] .'" width="', $fb['activity_diff'] .'px"></td>';

or just the first? or just the second?

karlbenson

You might be better uninstalling 1.0 and installing 1.1 which fixes those bugs plus some others.

SMdot™

thanks this works great ! but how do I get it to work for other themes??? I added the images to the parent dir of my current theme as well as modified the Display.template.php file and Modifications.english.php ... do I need to make modifications to the style.css file?

karlbenson

yes, just add them to the end of your custom theme style.css

Tanks

Karlbenson is there any chance of a reply to my question a few post up.. would help me alot if i can change the activity bar to show 2 pix per 0.1 average post per day.. please help me.. math isn't my strong side  :)

karlbenson

:(

I did reply.  (its not there)
Oh well

and oops,
I just checked and found another error (i've set the days registered)
find
// LONGEVITY
$regdays = 50;

Remove the
$regdays = 50;

And

for to increase the longevity change
$temp = round($regdays/5); (the /5 part to 2 etc)

Tanks

Ok cool but it is the activity i really want to change.. make it show 2 pxl for 0.1 average post.. right now it shows 2 pixel for 1.0 average post per day.. and my members dont post many post a day so 99% of them only have 0.x average posts per day.. can you help me with this ?

kaptkhaos

What would I need to change to give a little space between the bars and the users avatar?

TIA

Bob

Tanks

I managed to fix my problem with the activity.. you now get a full green bar if you have an average of 10 or 10+ posts per day.. great stuff :)

Btw the link for this mod is dead in the first post !

N3lson

#29
Quote from: Tanks on June 06, 2007, 11:21:33 AM
I managed to fix my problem with the activity.. you now get a full green bar if you have an average of 10 or 10+ posts per day.. great stuff :)

Btw the link for this mod is dead in the first post !

:(

anyone have the 1.1 ?
I´m Portuguese Yeah

nitins60


N3lson

I´m Portuguese Yeah

nitins60


Error:
http://www.www.com/forum/index.php?topic=1.0
2: Divison by zero
File: /home/xxxx/forum/Themes/default/Display.template.php (eval?)
Line: 333

on new test board, fresh install

karlbenson

i have to be honest, i'm still no where near happy with this mod.

i might redo it again.

Apologies for the download link. I've upgraded my server and smf. unfortunately my dns has messed up. So until it gets resolves, the links are down.  Thanks for hosting it nitins60

sup_iran

HI
you fix all the errors? now its safe to install (1.1RC3) ?

regards.

trenchteam

Will this install with 1.1.3 or do I have to make modications in the XML files first?


NYPDSwat

Can someone help me I can't get this to install its driving me crazy  &gt;:(
Quote
Install Actions
Installations actions for "Frequency Bars":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 

NYPDSwat

Hello Any Ideas On getting this to install  Please :)

karlbenson

download the mod file to to your pc.
open package-info.xml inside the mod

change
<install for="1.1 RC2">
to just
<install>

and same for uninstall
Then save/update the archive, then try upload and applying the mod.

At some point soon I hope to 'redo' this mod and submit to the customize site.

Vinspire

Nice looking mod ... Would love to have it as part of my forum but I wonder when will it be added under mods & packages?

NYPDSwat

Awsome Thanx karlbenson  its installed now sweet :)

NYPDSwat

Does this only work in the default theme & if not how to get it to work in a different theme?

MinasC

is this still beta ? no stable mod out yet ? interested for smf 1.1.3

karlbenson

This is another of my mods which is in need of being re-written.
I'm not sure it fully works, although it has been installed on 1.1.4.

I just havent had the time with all my other mods and new mods I want to create.

No idea if and when I'll get to re-write this mod.
Rewrite is needed because most of the code is inefficient and needs moving from template to source files.

MinasC

pitty for the time , cause you know there is no such mod working in latest smf versions !
thnx for the quick answer !

Eliana Tamerin

Hey Karl, another great mod of yours. Is there any way to not display the Referral bar if your Referral mod isn't installed? And can you do the same thing to detect whether Karma is enabled or not, and be able to display/hide it based on that?

Also, is it possible to modify the base on which activity is calculated? I'm not sure if the function is coded, but I'd like to calculate activity based on posts per week instead of per day. Is that possible?
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

karlbenson

Its not very easy to modify at the moment.

I had an idea/plan to make it easy to customize in a re-write.  But I haven't got the time to do it.

Vinspire


Advertisement: