Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Подскажите куда надо вставить изображение в этот кон чтобы видна была репутация.Хочу сделать репутацию как на этом сайте __Pbhack.ru

Вот код:

 

 

 
      <php>
$limitRep = $this->settings['fcRepBar_limit'];
$limitRep2 = $this->settings['fcRepBar_limit2'];
$limitRep3 = $this->settings['fcRepBar_limit3'];
$limitRep4 = $this->settings['fcRepBar_limit4'];
$limitRep5 = $this->settings['fcRepBar_limit5'];
$limitRep6 = $this->settings['fcRepBar_limit6'];
$limitRep7 = $this->settings['fcRepBar_limit7'];
$limitRep8 = $this->settings['fcRepBar_limit8'];
$images1 = $this->settings['fcRepBar_limit9'];
$color1 = $this->settings['fcRepBar_limit10'];
$images2 = $this->settings['fcRepBar_limit11'];
$color2 = $this->settings['fcRepBar_limit12'];
$images3 = $this->settings['fcRepBar_limit13'];
$color3 = $this->settings['fcRepBar_limit14'];
$images4 = $this->settings['fcRepBar_limit15'];
$color4 = $this->settings['fcRepBar_limit16'];
$images5 = $this->settings['fcRepBar_limit17'];
$color5 = $this->settings['fcRepBar_limit18'];
$images6 = $this->settings['fcRepBar_limit19'];
$color6 = $this->settings['fcRepBar_limit20'];
$images7 = $this->settings['fcRepBar_limit21'];
$color7 = $this->settings['fcRepBar_limit22'];
$images8 = $this->settings['fcRepBar_limit23'];
$color8 = $this->settings['fcRepBar_limit24'];
$limitRep9 = $this->settings['fcRepBar_limit25'];
$images9 = $this->settings['fcRepBar_limit26'];
$color9 = $this->settings['fcRepBar_limit27'];
$userRep = intval( $author['pp_reputation_points'] );
$delitel = $limitRep /100;
$delitel2 = $limitRep2 /100;
$delitel3 = $limitRep3 /100;
$delitel4 = $limitRep4 /100;
$delitel5 = $limitRep5 /100;
$delitel6 = $limitRep6 /100;
$delitel7 = $limitRep7 /100;
$delitel8 = $limitRep8 /100;
$delitel9 = $limitRep9 /100;
 
$gPercent  =   $userRep / $limitRep8 *100;
$percent =   ($userRep > $limitRep8)? 100  : number_format($gPercent, 0);
if( $userRep < 0 AND $userRep >= $limitRep9 )
{
    $statusImg = "$images9";
    $statusBg  = "$color9";
    $width = (abs($userRep) > abs($limitRep9))? 100: number_format(abs($userRep/$delitel9));
}
else if( $userRep >= 0 AND $userRep <= $limitRep )
{
    $statusImg = "$images1";
    $statusBg  = "$color1";
    $width = ($userRep > $limitRep)? 100: number_format($userRep/$delitel);
}
else if( $userRep >= $limitRep+1 AND $userRep <= $limitRep2)
{
    $statusImg = "$images2";
    $statusBg  = "$color2";
    $width = ($userRep > $limitRep2)? 100: number_format($userRep/$delitel2);
}
else if( $userRep >= $limitRep2+1 AND $userRep <= $limitRep3)
{
    $statusImg = "$images3";
    $statusBg  = "$color3";
    $width = ($userRep > $limitRep3)? 100: number_format($userRep/$delitel3);
}
else if( $userRep >= $limitRep3+1 AND $userRep <= $limitRep4)
{
    $statusImg = "$images4";
    $statusBg  = "$color4";
    $width = ($userRep > $limitRep4)? 100: number_format($userRep/$delitel4);
}
else if( $userRep >= $limitRep4+1 AND $userRep <= $limitRep5)
{
    $statusImg = "$images5";
    $statusBg  = "$color5";
    $width = ($userRep > $limitRep5)? 100: number_format($userRep/$delitel5);
}
else if( $userRep >= $limitRep5+1 AND $userRep <= $limitRep6)
{
    $statusImg = "$images6";
    $statusBg  = "$color6";
    $width = ($userRep > $limitRep6)? 100: number_format($userRep/$delitel6);
}
else if( $userRep >= $limitRep6+1 AND $userRep <= $limitRep7)
{
    $statusImg = "$images7";
    $statusBg  = "$color7";
    $width = ($userRep > $limitRep7)? 100: number_format($userRep/$delitel7);
}
else if( $userRep >= $limitRep7+1 AND $userRep <= $limitRep8)
{
    $statusImg = "$images8";
    $statusBg  = "$color8";
    $width = ($userRep > $limitRep8)? 100: number_format($userRep/$delitel8);
}
else{
    $statusImg = "$images9";
    $statusBg  = "$color9";
}
</php>
<style type='text/css'>
.tCard{
  float:right;
  width:28%;
  vertical-align:middle;
  background: none !important;
  font-weight:bold;
  padding-top:5px;
  color:white;
  font-size: 11px;
  text-shadow:rgba(0, 0, 0, 0.4) 1px 1px 1px;
}
.tBorder_{$author['member_id']}{
  width:150px; 
  margin:0 auto; 
  background-color:{$statusBg}; 
  height:26px;
  margin-bottom: 10px;
  border-radius:3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  padding:1px;
  position: relative;
}
 
.tText_{$author['member_id']}{
  position: absolute;
  z-index: 10;
  text-align:center;
  top:2px;
  left:1px;
  margin: 3px 0 0 15px; 
  width:85px; font-weight:bold;
  color:white;
  text-shadow:rgba(0, 0, 0, 0.4) 1px 1px 2px;
}
.progress-container_{$author['member_id']} {
  width: 70%; 
  height: 24px;
  padding: 1px;
  background: white;
  float:left;
  border-radius: 3px 3px 3px 3px;
}
.progress-container_{$author['member_id']} > div {
  background-color: white;
  background-image: url({$this->settings['img_url']}/repbar/{$statusImg});
  background-repeat: no-repeat;
  height: 24px;
  border-top-left-radius:3px;
  border-bottom-left-radius:3px;
  -moz-border-radius: 3px 0 0 3px;
  -webkit-border-radius: 3px 0 0 3px;
}
</style>
<!-- Hook by Paradiizee, Forumcore -->
<if test="RepPositive:|:$author['pp_reputation_points'] >= 0">
 
<div align="center">
<div style="text-align:center;width:200px;">
<div align="left" style="width:200px;background:url({$this->settings['img_url']}/repbar/rbg.jpg) #fff;border-bottom:1px solid #dfdfdf;margin:4px 0 0 0; border-radius: 3px 3px 3px 3px;">
<div style="height:23px;width: {$width}%;background:url({$this->settings['img_url']}/repbar/{$statusImg}); border-radius: 4px 0 0 4px; "></div>
</div>
 
<div style="position:relative;text-align:center;width:100%;text-align:center;">
<div style="width:170px;bottom:7px;left:13px;text-shadow:0 1px 0 #f0f0f0;font-size:12px;position: absolute;top: -20px;"><span style='color: black;'>{parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</span></div>
</div>
</div>
</div>
 
<else />
<div align="center">
<div style="text-align:center;width:200px;">
<div align="left" style="width:200px;background:url({$this->settings['img_url']}/repbar/rbg.jpg) #fff;border-bottom:1px solid #dfdfdf;margin:4px 0 0 0; border-radius: 0;">
<div style="height:23px;width: {$width}%;background:url({$this->settings['img_url']}/repbar/{$statusImg}); border-radius: 4px 0 0 4px;"></div>
</div>
 
<div style="position:relative;text-align:center;width:100%;text-align:center;">
<div style="width:170px;bottom:7px;left:13px;text-shadow:0 0px 0 #f0f0f0;font-size:11px;position: absolute;top: -20px;"><span style='color: black;'>{parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</span></div>
</div>
</div>
</div>
</if>
 
      <php>
$limitRep = $this->settings['fcRepBar_limit'];
$limitRep2 = $this->settings['fcRepBar_limit2'];
$limitRep3 = $this->settings['fcRepBar_limit3'];
$limitRep4 = $this->settings['fcRepBar_limit4'];
$limitRep5 = $this->settings['fcRepBar_limit5'];
$limitRep6 = $this->settings['fcRepBar_limit6'];
$limitRep7 = $this->settings['fcRepBar_limit7'];
$limitRep8 = $this->settings['fcRepBar_limit8'];
$images1 = $this->settings['fcRepBar_limit9'];
$color1 = $this->settings['fcRepBar_limit10'];
$images2 = $this->settings['fcRepBar_limit11'];
$color2 = $this->settings['fcRepBar_limit12'];
$images3 = $this->settings['fcRepBar_limit13'];
$color3 = $this->settings['fcRepBar_limit14'];
$images4 = $this->settings['fcRepBar_limit15'];
$color4 = $this->settings['fcRepBar_limit16'];
$images5 = $this->settings['fcRepBar_limit17'];
$color5 = $this->settings['fcRepBar_limit18'];
$images6 = $this->settings['fcRepBar_limit19'];
$color6 = $this->settings['fcRepBar_limit20'];
$images7 = $this->settings['fcRepBar_limit21'];
$color7 = $this->settings['fcRepBar_limit22'];
$images8 = $this->settings['fcRepBar_limit23'];
$color8 = $this->settings['fcRepBar_limit24'];
$limitRep9 = $this->settings['fcRepBar_limit25'];
$images9 = $this->settings['fcRepBar_limit26'];
$color9 = $this->settings['fcRepBar_limit27'];
$userRep = intval( $author['pp_reputation_points'] );
$delitel = $limitRep /100;
$delitel2 = $limitRep2 /100;
$delitel3 = $limitRep3 /100;
$delitel4 = $limitRep4 /100;
$delitel5 = $limitRep5 /100;
$delitel6 = $limitRep6 /100;
$delitel7 = $limitRep7 /100;
$delitel8 = $limitRep8 /100;
$delitel9 = $limitRep9 /100;
 
$gPercent  =   $userRep / $limitRep8 *100;
$percent =   ($userRep > $limitRep8)? 100  : number_format($gPercent, 0);
if( $userRep < 0 AND $userRep >= $limitRep9 )
{
    $statusImg = "$images9";
    $statusBg  = "$color9";
    $width = (abs($userRep) > abs($limitRep9))? 100: number_format(abs($userRep/$delitel9));
}
else if( $userRep >= 0 AND $userRep <= $limitRep )
{
    $statusImg = "$images1";
    $statusBg  = "$color1";
    $width = ($userRep > $limitRep)? 100: number_format($userRep/$delitel);
}
else if( $userRep >= $limitRep+1 AND $userRep <= $limitRep2)
{
    $statusImg = "$images2";
    $statusBg  = "$color2";
    $width = ($userRep > $limitRep2)? 100: number_format($userRep/$delitel2);
}
else if( $userRep >= $limitRep2+1 AND $userRep <= $limitRep3)
{
    $statusImg = "$images3";
    $statusBg  = "$color3";
    $width = ($userRep > $limitRep3)? 100: number_format($userRep/$delitel3);
}
else if( $userRep >= $limitRep3+1 AND $userRep <= $limitRep4)
{
    $statusImg = "$images4";
    $statusBg  = "$color4";
    $width = ($userRep > $limitRep4)? 100: number_format($userRep/$delitel4);
}
else if( $userRep >= $limitRep4+1 AND $userRep <= $limitRep5)
{
    $statusImg = "$images5";
    $statusBg  = "$color5";
    $width = ($userRep > $limitRep5)? 100: number_format($userRep/$delitel5);
}
else if( $userRep >= $limitRep5+1 AND $userRep <= $limitRep6)
{
    $statusImg = "$images6";
    $statusBg  = "$color6";
    $width = ($userRep > $limitRep6)? 100: number_format($userRep/$delitel6);
}
else if( $userRep >= $limitRep6+1 AND $userRep <= $limitRep7)
{
    $statusImg = "$images7";
    $statusBg  = "$color7";
    $width = ($userRep > $limitRep7)? 100: number_format($userRep/$delitel7);
}
else if( $userRep >= $limitRep7+1 AND $userRep <= $limitRep8)
{
    $statusImg = "$images8";
    $statusBg  = "$color8";
    $width = ($userRep > $limitRep8)? 100: number_format($userRep/$delitel8);
}
else{
    $statusImg = "$images9";
    $statusBg  = "$color9";
}
</php>
<style type='text/css'>
.tCard{
  float:right;
  width:28%;
  vertical-align:middle;
  background: none !important;
  font-weight:bold;
  padding-top:5px;
  color:white;
  font-size: 11px;
  text-shadow:rgba(0, 0, 0, 0.4) 1px 1px 1px;
}
.tBorder_{$author['member_id']}{
  width:150px; 
  margin:0 auto; 
  background-color:{$statusBg}; 
  height:26px;
  margin-bottom: 10px;
  border-radius:3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  padding:1px;
  position: relative;
}
 
.tText_{$author['member_id']}{
  position: absolute;
  z-index: 10;
  text-align:center;
  top:2px;
  left:1px;
  margin: 3px 0 0 15px; 
  width:85px; font-weight:bold;
  color:white;
  text-shadow:rgba(0, 0, 0, 0.4) 1px 1px 2px;
}
.progress-container_{$author['member_id']} {
  width: 70%; 
  height: 24px;
  padding: 1px;
  background: white;
  float:left;
  border-radius: 3px 3px 3px 3px;
}
.progress-container_{$author['member_id']} > div {
  background-color: white;
  background-image: url({$this->settings['img_url']}/repbar/{$statusImg});
  background-repeat: no-repeat;
  height: 24px;
  border-top-left-radius:3px;
  border-bottom-left-radius:3px;
  -moz-border-radius: 3px 0 0 3px;
  -webkit-border-radius: 3px 0 0 3px;
}
</style>
<!-- Hook by Paradiizee, Forumcore -->
<if test="RepPositive:|:$author['pp_reputation_points'] >= 0">
 
<div align="center">
<div style="text-align:center;width:200px;">
<div align="left" style="width:200px;background:url({$this->settings['img_url']}/repbar/rbg.jpg) #fff;border-bottom:1px solid #dfdfdf;margin:4px 0 0 0; border-radius: 3px 3px 3px 3px;">
<div style="height:23px;width: {$width}%;background:url({$this->settings['img_url']}/repbar/{$statusImg}); border-radius: 4px 0 0 4px; "></div>
</div>
 
<div style="position:relative;text-align:center;width:100%;text-align:center;">
<div style="width:170px;bottom:7px;left:13px;text-shadow:0 1px 0 #f0f0f0;font-size:12px;position: absolute;top: -20px;"><span style='color: black;'>{parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</span></div>
</div>
</div>
</div>
 
<else />
<div align="center">
<div style="text-align:center;width:200px;">
<div align="left" style="width:200px;background:url({$this->settings['img_url']}/repbar/rbg.jpg) #fff;border-bottom:1px solid #dfdfdf;margin:4px 0 0 0; border-radius: 0;">
<div style="height:23px;width: {$width}%;background:url({$this->settings['img_url']}/repbar/{$statusImg}); border-radius: 4px 0 0 4px;"></div>
</div>
 
<div style="position:relative;text-align:center;width:100%;text-align:center;">
<div style="width:170px;bottom:7px;left:13px;text-shadow:0 0px 0 #f0f0f0;font-size:11px;position: absolute;top: -20px;"><span style='color: black;'>{parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</span></div>
</div>
</div>
</div>
</if>
 

 

Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.