vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Post Count Represented By Graphics (3.5.4) (https://vborg.vbsupport.ru/showthread.php?t=109402)

Lazarous 03-03-2006 11:29 PM

Post Count Represented By Graphics (3.5.4)
 
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

Quote:

Originally Posted by Lazarous
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

Code:

//$this->post['posts'] = vb_number_format($this->post['posts']);
Then in your postbit or postbit_legacy file find this

Code:

$vbphrase[posts]: $post[posts]
and surround it with a statement like this

Code:

<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.


All times are GMT. The time now is 08:18 PM.

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.01161 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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