News:

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

Main Menu

[Tip] Activity Level in posts

Started by Marcus Forsberg, November 08, 2008, 05:21:47 PM

Previous topic - Next topic

Jaa(c)

#20
If you are interested how does it count the bar length:
It takes the user with top posts, than it counts the percentage of single user posts.
Then its set that the useres with 90% - 100% has 90% of the width (of the profile column), users with 0 posts have 10%..  Other user are between :)

Burke ♞ Knight

I really think this as a mod on the Mod Site will be a BIG hit. :)

TheDisturbedOne

If it were to be a MOD I think it should have more features.
Nascar has a lot of MODs that he's already doing

Deprecated

If anybody has designs on this as a mod you should contact Nascar first, okay? :) He has dibs. :)

_Anthony_

#24
Quote from: Jade on November 10, 2008, 11:00:28 AM
I mean, if it increases per post, can I increase that? To like 100 or 500 or 1000 posts?  I'd only want the bar 125px long :)
Hint: / DIVISOR
;)
If you still need more help ask me.


         // The Activity bar... Small.... Simple... And made by Nascar :)
         echo '                                  <b>Activity Levels</b><br />
                        Based first 100 posts (1 post)<br /><img src="'.$settings['images_url'].'/poll_left.gif"><img src="'.$settings['images_url'].'/poll_middle.gif" height="12px" width="', ($message['member']['posts'] < 100) ? $message['member']['posts'] : 100, '" title="', $txt[26], ': ', $message['member']['posts'], '"><img src="'.$settings['images_url'].'/poll_right.gif"><br />';

if($message['member']['posts'] > 100) {
echo '100-1000 posts (10 posts)<br /><img src="'.$settings['images_url'].'/poll_left.gif"><img src="'.$settings['images_url'].'/poll_middle.gif" height="12px" width="', (($message['member']['posts'] - 100) / 9 < 1000) ? ($message['member']['posts'] - 100) / 9 : 100, '" title="', $txt[26], ': ', $message['member']['posts'], '"><img src="'.$settings['images_url'].'/poll_right.gif"><br />';
}
if($message['member']['posts'] > 1000) {
echo '1000+ posts (100 posts)<br /><img src="'.$settings['images_url'].'/poll_left.gif"><img src="'.$settings['images_url'].'/poll_middle.gif" height="12px" width="', (($message['member']['posts'] - 1000) / 90 < 1000) ? ($message['member']['posts'] - 1000) / 90 : 100, '" title="', $txt[26], ': ', $message['member']['posts'], '"><img src="'.$settings['images_url'].'/poll_right.gif"><br />';
}

What I use for my forums :P


HR

What is txt26? Nothjing showing up for me

I can explain this as simply as possible.. If I do it & implement I guarantee it.
If I do it and you implement it its a crap shoot.

JBlaze

Jason Clemons
Former Team Member 2009 - 2012

Informatics

maybe is should try this tips. thanx.


You can catch me @ Forum Informatika a.k.a Indonesian Informatics Online Community @ http://if.web.id




Mods:
1. LinkTree v.1.1.0 [Topic  || Download]
2. Header Rotator v.1.1.0 for 1.1.x | v.2.1 for 2.0 [Topic || Download]

chrishicks

subscribing for future reference...

chrisb

are we going to look at doing any new changes to the tip and improve on this mod for the site

Joe N

Hey nas

If your using a custom theme, do you just add it to there
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Marcus Forsberg

@chrisb
It was a long time ago I made this. I might rebuild it and submit it as a mod some time, but not soon.

@Joe N
Yes, if you are using a custom theme, make the same edits.

Marcus Forsberg


Joe N

Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Marcus Forsberg


hmalik007


[Core]


Marcus Forsberg


Joe N

Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Advertisement: