Log in

View Full Version : Post Count Represented By Graphics (3.5.4)


Lazarous
03-03-2006, 11:29 PM
Hi,

I would like to make the post count represented by graphics. For example, if a post is less then 50 show something, less then 100 show something else and so on.

I remember a Stars hack but am having trouble converting this.

Can anyone point me in the right direction on what needs editing or better still a hack tht may exist already for 3.5?

Many thanks.

Mizz
03-04-2006, 01:20 AM
as far as i know they're called ranks. I havent seen any on vbulletin forums, but I used them when I had phpbb forums. I assume they aren't transferrable to vbulletin forums from phpbb sites.

Andy
03-04-2006, 04:54 AM
Hi,

I would like to make the post count represented by graphics. For example, if a post is less then 50 show something, less then 100 show something else and so on.

I remember a Stars hack but am having trouble converting this.

Can anyone point me in the right direction on what needs editing or better still a hack tht may exist already for 3.5?

Many thanks.

The first thing to do is comment out this line in /includes/class_postbit.php so the variable $this->post['posts'] will be a real number


//$this->post['posts'] = vb_number_format($this->post['posts']);


Then in your postbit or postbit_legacy file find this


$vbphrase[posts]: $post[posts]


and surround it with a statement like this


<if condition="$post[posts] <= 999">


I have not provided exact instructions, but I think with this example you should be able to figure out how to substitute images for the post count.

Lazarous
03-04-2006, 05:24 PM
Many many thanks! Got it all working with your help here.