PDA

View Full Version : P-Groove Post Display Hack


ScruffyDeluxe
09-14-2003, 10:00 PM
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 (http://www.phuck-ign.com/forums/memberlist.php?s=&what=topposters&perpage=25) - Compare P-Grooves of my Post +++++s :p

Standalone demo and explaination of Tiers (http://www.phuck-ign.com/php-bin/pgroove.php) - 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!

Sho
09-15-2003, 01:34 PM
Good job. Like the idea.

Dean C
09-15-2003, 01:44 PM
Would be nice if it was templated :) Nice function btw ;)

ScruffyDeluxe
09-15-2003, 02:29 PM
Thanks guys :D I was thinking about making a template, but then we're out of the quick n' dirty league :p

assassingod
09-15-2003, 03:00 PM
Nice idea

mx3
09-16-2003, 01:05 AM
Hmm nice but my pips are good enough for me ^_^

wolfe
09-16-2003, 02:23 PM
Hmm nice but my pips are good enough for me ^_^
nice i have installed it on my vB3 board and all working great :D