MyBB Community Forums

Full Version: plugin help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

so i've just recently installed mybb on my forum and i want something that i wasn't able to find anywhere yet and so i've decided maybe i can build it myself.

so what i want is under each user's name in a postbit to show a percentage. and this percentage will sort of be his activity on the forum.

and i want this percentage to be calculated like so:

let's call the user - USER X

so USER X has been registered for 30 days which is equal to 720 hours

and USER X has spend a total of 15 hours online on the forum

the final activity percentage will be:

720 / 15 = 48 which will be 48% activity

unfortunately i don't know anything about php as i only know html and css so if anyone might be able to help me with this it will be much appreciated.

Thanks!

P.S.: if this is not the right section a mod please move it as I wasn't sure where I should post this
Well, its pretty possible and easy I guess, but the basic calculation logic is wrong.
The logic should be:

(15 / 720 * 100) %
=2.08 % activity.
well whatever the logic behind it is can you show me a plugin that can do something like this? i want to have something that calculates the users' activity on the forum

if there is not how would i start on writing such a plugin? because you said it might be pretty easy

thanks for the reply
Personally I havenĀ“t seen such a plugin but check the mod database for yourself as well.

How to create a plugin have a look at this guide here

http://docs.mybb.com/Authoring_Plugins.html

But you would need some php and mysql knowledge to write a plugin though.
well i did look and i did find something

http://mods.mybb.com/view/hp-mp-exp-stats

however, it doesn't seem to work with the newest version of mybb..or at least i don;t know how to complete the last step in the installation:

Step One:

Upload all of the files to their proper places.

Step Two:

Go into your Admin CP -> Themes -> Modify -> Choose your theme -> Find the Additional CSS Box and add the following to the bottom

.rpg1 {
	border: 1px solid #000000;
	text-align: left;
}
.rpg2 {
	background-color: #C0C0C0;
}

any ideas?
It would need to be upgraded then. About the css code add it to the gobal.css stylesheet.
(2012-11-24, 06:25 PM)borbole Wrote: [ -> ]It would need to be upgraded then. About the css code add it to the gobal.css stylesheet.

unfortunately it doesn't seem to work anyway..any help with something that will get me this user activity percent?

here i found a screenshot of something that looks like it:

http://custom.simplemachines.org/mods/in...3933;image

you can see the activity bar on the left side
(2012-11-25, 04:20 AM)krz Wrote: [ -> ]
(2012-11-24, 06:25 PM)borbole Wrote: [ -> ]It would need to be upgraded then. About the css code add it to the gobal.css stylesheet.

unfortunately it doesn't seem to work anyway..any help with something that will get me this user activity percent?

here i found a screenshot of something that looks like it:

http://custom.simplemachines.org/mods/in...3933;image

you can see the activity bar on the left side

It doesn''t work because that plugin from what I saw was made for a very old version of Mybb. If you can''t upgrade it yourself put in a request at the request section and hopefully someone will upgrade it for you. You can also request a completely new plugin.
(2012-11-25, 11:31 AM)borbole Wrote: [ -> ]
(2012-11-25, 04:20 AM)krz Wrote: [ -> ]
(2012-11-24, 06:25 PM)borbole Wrote: [ -> ]It would need to be upgraded then. About the css code add it to the gobal.css stylesheet.

unfortunately it doesn't seem to work anyway..any help with something that will get me this user activity percent?

here i found a screenshot of something that looks like it:

http://custom.simplemachines.org/mods/in...3933;image

you can see the activity bar on the left side

It doesn''t work because that plugin from what I saw was made for a very old version of Mybb. If you can''t upgrade it yourself put in a request at the request section and hopefully someone will upgrade it for you. You can also request a completely new plugin.

thanks for your reply and i have created a new thread in the requests section Smile

EDIT: for anyone else maybe interested in this plugin or anything similar i have made a new thread here: http://community.mybb.com/thread-130041-...#pid942694