vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   P-Groove Post Display Hack (https://vborg.vbsupport.ru/showthread.php?t=57112)

ScruffyDeluxe 09-14-2003 10:00 PM

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!

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

Quote:

Originally Posted by mx3
Hmm nice but my pips are good enough for me ^_^

nice i have installed it on my vB3 board and all working great :D


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
  • Page Generation 0.01122 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete