![]() |
P-Groove Post Display Hack
This is a quick n' dirty hack to generate a small 'power meter' similar to those found in some fighting videogames. The meter is made up of 4 coloured 'tiers' which reference to multiples of a user's post count.
No images are needed for this. I like the idea of some of the stars and pips hacks out there - I even tried one - but I soon found that some people didn't get any stars or pips because their postcounts were beyond the scope of the hack. This is generated using HTML tables and nothing more. However, you may notice a small speed decrease in your forums if a lot of grooves are to be parsed. Online Demos The P-Groove running on my forums' Memberlist - Compare P-Grooves of my Post +++++s :p Standalone demo and explaination of Tiers - See how the P-Groove is built from random postcounts WIP/Other info The hack code contains two arrays which you may want to tweak. The first, $pgtiers, contains the post multiples each tier should work on. The first tier value is set to nought '0' as it is null. The first value should also be null in the second array, $pgcolours, which contains the colours for the tiers in #hex. $pgsize can double the size of the P-Groove if set to 2. The P-Groove will only generate grooves up to 65,535 posts, which I believe is the vBulletin maximum. Many users on my forum have complained that people with more posts have smaller grooves, but I just tell them it's the colour that counts. After all, having a groove 852 segments long would be table-breaking O_o When I learn how, you can expect version 2 of this hack to allow colour and size configuration from the AdminCP... If people want it, that is. I see it as an 'install and forget' hack. Install Check attachment. Please click install if you like this hack, and I will try to answer any questions about it here. Enjoy! |
Good job. Like the idea.
|
Would be nice if it was templated :) Nice function btw ;)
|
Thanks guys :D I was thinking about making a template, but then we're out of the quick n' dirty league :p
|
Nice idea
|
Hmm nice but my pips are good enough for me ^_^
|
Quote:
|
All times are GMT. The time now is 12:34 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|