vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   User info in header (https://vborg.vbsupport.ru/showthread.php?t=58897)

kino 11-29-2003 08:01 PM

User info in header
 
I started making this rank system where depending on how many posts a user has, they have a certain rank image, and I wanted it to appear in the header of the board, but I don't know where to put it to make it work correctly. Any help here please? Thank you in advance

PHP Code:


        
if (($userinfo['usergroupid'] ==5) || ($userinfo['usergroupid'] ==6) || ($userinfo['usergroupid'] ==7)) {
        
$ranks"<img src=\"images/ranks/rank10.gif\">";
        }    
           else if (
$userinfo['posts']<=25) {
        
$ranks="<img src=\"images/ranks/rank0.gif\">";
        }
           else if (
$userinfo['posts']<=100) {
        
$ranks="<img src=\"images/ranks/rank1.gif\">";
        }
           else if (
$userinfo['posts']<=300) {
        
$ranks="<img src=\"images/ranks/rank2.gif\">";
        }
           else if (
$userinfo['posts']<=400) {
        
$ranks="<img src=\"images/ranks/rank3.gif\">";
        }
           else if (
$userinfo['posts']<=500) {
        
$ranks="<img src=\"images/ranks/rank4.gif\">";
        }
           else if (
$userinfo['posts']<=600) {
        
$ranks="<img src=\"images/ranks/rank5.gif\">";
        }
            else if (
$userinfo['posts']<=700) {
        
$ranks="<img src=\"images/ranks/rank6.gif\">";
        }
            else if (
$userinfo['posts']<=800) {
        
$ranks="<img src=\"images/ranks/rank7.gif\">";
        }
            else if (
$userinfo['posts']<=900) {
        
$ranks="<img src=\"images/ranks/rank8.gif\">";
        }
            else if (
$userinfo['posts']<=1000) {
        
$ranks="<img src=\"images/ranks/rank9.gif\">";
        }
            else if (
$userinfo['posts']<=1100) {
        
$ranks="<img src=\"images/ranks/rank9.gif\">";
        } 


assassingod 11-29-2003 08:02 PM

You can either use global.php or the phpinclude template. Both work fine either way


All times are GMT. The time now is 11:45 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.03584 seconds
  • Memory Usage 1,726KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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