1 (edited by spycam 2005-04-03 06:15)

Topic: [ЗАПРОС] Мод РАНК (RANKS)

??? ????? ??? ?? Vbulletina, ????????? ???????? ??? ??????? ? ??????????? ?? ?????????? ??????. ????? ?? ??? ??? ???? ?????????? ??? PUNBB?


~~~~~~~~~~~~~~~~~~~~~~~~~~
Version 2.0.1 instructions
~~~~~~~~~~~~~~~~~~~~~~~~~~

open: showthread.php 

find:

   if ($post['receivepm'] and $enablepms==1) {


add the following code directly above that line.


// ###################################
// start of custom pips and stars hack 
// ###################################


if ($post[posts] > 1999)
     { $pips = "<img src=\"images/pip13.gif\" border=0>"; }
elseif ($post[posts] > 1499) 
    { $pips = "<img src=\"images/pip12.gif\" border=0>"; }
elseif ($post[posts] > 999) 
    { $pips = "<img src=\"images/pip11.gif\" border=0>"; }
elseif ($post[posts] > 749) 
    { $pips = "<img src=\"images/pip10.gif\" border=0>"; }
elseif ($post[posts] > 499)
    { $pips = "<img src=\"images/pip9.gif\" border=0>"; }
elseif ($post[posts] > 299) 
    { $pips = "<img src=\"images/pip8.gif\" border=0>"; }
elseif ($post[posts] > 199) 
    { $pips = "<img src=\"images/pip7.gif\" border=0>"; }
elseif ($post[posts] > 124) 
    { $pips = "<img src=\"images/pip6.gif\" border=0>"; }
elseif ($post[posts] > 74) 
    { $pips = "<img src=\"images/pip5.gif\" border=0>"; }
elseif ($post[posts] > 44) 
    { $pips = "<img src=\"images/pip4.gif\" border=0>"; }
elseif ($post[posts] > 19) 
    { $pips = "<img src=\"images/pip3.gif\" border=0>"; }
elseif ($post[posts] > 5) 
    { $pips = "<img src=\"images/pip2.gif\" border=0>"; }
elseif ($post[posts] > 0) 
    {$pips = "<img src=\"images/pip1.gif\" border=0>"; }
else
    {$pips = ""; }


if ($post[posts] > 5000)
     { $goldstars = "<img src=\"images/goldstar5.gif\" border=0><br>"; }
elseif ($post[posts] > 3500)
     { $goldstars = "<img src=\"images/goldstar4.gif\" border=0><br>"; }
elseif ($post[posts] > 3000)
     { $goldstars = "<img src=\"images/goldstar3.gif\" border=0><br>"; }
elseif ($post[posts] > 2500)
     { $goldstars = "<img src=\"images/goldstar2.gif\" border=0><br>"; }
elseif ($post[posts] > 2000)
     { $goldstars = "<img src=\"images/goldstar1.gif\" border=0><br>"; }
else
    {$goldstars = ""; }

// #################################
// end of custom pips and stars hack    
// #################################


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Common instructions for ALL v2 vbb software
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In the postbit template find the line that shows the USERTITLE - similar to this:

  <smallfont>$post[usertitle]</smallfont>

and then insert this line on a line before it:

  $goldstars$pips<br>


thats all.