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

  • Replies 62
  • Просмотров 11,9k
  • Created
  • Последний ответ

Лучшие авторы в теме

Most Popular Posts

  • Застрелитесь ка вы все копирайтеры, развели тут псарню, 4 страницы говна налили, не пофиг кто и чего там автор, разбирайтесь в личке с такими вещами!

  • Ссылку на хук, пожалуйста. 

писал не ты а Teror4ik,точнее он изменил хук Парадиза

знаю его сейчас ник Narko здесь не седит

Ага, добавил идентичных настроек и выдавал за свое, пытаясь продать.

_ipbzona.ru/topic/2752-graficheskii-nik/?p=51418

Да и хуки разные. В одном уровни настраиваются, в другом жестко прописаны в файле.

И реализовано это было в 2012 году в виде инструкции.

Точно помню, что видел. Поискал и нашел.

_ip-board.ru/topic/4782-dinamicheskoe-otobrazhenie-reputatcii-v-soobscheni/

SanyaSamp, >css лучше поместить в отдельный файл

  • Author

Ага, добавил идентичных настроек и выдавал за свое, пытаясь продать.

_ipbzona.ru/topic/2752-graficheskii-nik/?p=51418

Да и хуки разные. В одном уровни настраиваются, в другом жестко прописаны в файле.

И реализовано это было в 2012 году в виде инструкции.

Точно помню, что видел. Поискал и нашел.

_ip-board.ru/topic/4782-dinamicheskoe-otobrazhenie-reputatcii-v-soobscheni/

SanyaSamp,

На счет css, на локалке почему то не импортируется css в хук
  • Author

SanyaSamp, php файлы... Думай, что несешь.

 

attachicon.gifсаньку.jpg

Ну. php файлы хука

Я не собираюсь ничего никому доказывать... Не верите - ваши проблемы. Я только начинаю писать хуки... Поэтому и пишу простенькие хуки

  • Author

SanyaSamp, ладно, Санек. Если уж наврал, то умей признаться. Бывай.

Омг... Я сказал, что php файл частично взял с другого хука, остальное писал все сам. Это элементарный хук. Все основывается на условии if, который в зависимости от репутации придает разные css свойства 

Я не знаю... Чего то у меня заминка...

Как выяснилось:

__community.invisionpower.com/resources/bugs.html/_/ip-board/userinfopane-not-giving-correct-data-with-template-hooks-r26698

Через мой любимые метод это не работает. Пришлось использовать замену, как указали в багтрекере...

Всё теперь выводится. Но пришла новая проблема: не могу придумать логику работы.

На сколько частей нужно разбить в цветовой дифференциации штанов полосок?

И как будет работать переход на "новый уровень"? То есть, шкала снова будет набираться или дальше продолжаться?

Я не знаю... Чего то у меня заминка...

Как выяснилось:

__community.invisionpower.com/resources/bugs.html/_/ip-board/userinfopane-not-giving-correct-data-with-template-hooks-r26698

Через мой любимые метод это не работает. Пришлось использовать замену, как указали в багтрекере...

Всё теперь выводится. Но пришла новая проблема: не могу придумать логику работы.

На сколько частей нужно разбить в цветовой дифференциации штанов полосок?

И как будет работать переход на "новый уровень"? То есть, шкала снова будет набираться или дальше продолжаться?

Шкала будет снова набираться, но уже с другой цветовой гаммой.

,вот весь код:

<php>
$limitRep = "10";
$limitRep2 = "100";
$limitRep3 = "1000";
$limitRep4 = "10000";
$limitRep5 = "100000";
$limitRep6 = "500000";
$limitRep7 = "1000000";
$limitRep8 = "5000000";
$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 = "9bg.jpg";
    $statusBg  = "#ccc";
    $width = (abs($userRep) > abs($limitRep9))? 100: number_format(abs($userRep/$delitel9));
}
else if( $userRep >= 0 AND $userRep <= $limitRep )
{
    $statusImg = "1bg.jpg";
    $statusBg  = "#ccc";
    $width = ($userRep > $limitRep)? 100: number_format($userRep/$delitel);
}
else if( $userRep >= $limitRep+1 AND $userRep <= $limitRep2)
{
    $statusImg = "2bg.jpg";
    $statusBg  = "#0628f7";
    $width = ($userRep > $limitRep2)? 100: number_format($userRep/$delitel2);
}
else if( $userRep >= $limitRep2+1 AND $userRep <= $limitRep3)
{
    $statusImg = "3bg.jpg";
    $statusBg  = "#e1d83f";
    $width = ($userRep > $limitRep3)? 100: number_format($userRep/$delitel3);
}
else if( $userRep >= $limitRep3+1 AND $userRep <= $limitRep4)
{
    $statusImg = "4bg.jpg";
    $statusBg  = "#a2e13f";
    $width = ($userRep > $limitRep4)? 100: number_format($userRep/$delitel4);
}
else if( $userRep >= $limitRep4+1 AND $userRep <= $limitRep5)
{
    $statusImg = "5bg.jpg";
    $statusBg  = "$color5";
    $width = ($userRep > $limitRep5)? 100: number_format($userRep/$delitel5);
}
else if( $userRep >= $limitRep5+1 AND $userRep <= $limitRep6)
{
    $statusImg = "6bg.jpg";
    $statusBg  = "$color6";
    $width = ($userRep > $limitRep6)? 100: number_format($userRep/$delitel6);
}
else if( $userRep >= $limitRep6+1 AND $userRep <= $limitRep7)
{
    $statusImg = "7bg.jpg";
    $statusBg  = "$color7";
    $width = ($userRep > $limitRep7)? 100: number_format($userRep/$delitel7);
}
else if( $userRep >= $limitRep7+1 AND $userRep <= $limitRep8)
{
    $statusImg = "8bg.jpg";
    $statusBg  = "$color8";
    $width = ($userRep > $limitRep8)? 100: number_format($userRep/$delitel8);
}
else{
    $statusImg = "9bg.jpg";
    $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;
}

.ipsUserPhoto_larg {
	max-height: 200px;
	max-width: 250px;
border-radius: 4px;
border: 1px dashed rgb(204, 204, 204);
padding: 1px;
 }

.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>
<!-- Rep Bar by FoLez -->
<if test="RepPositive:|:$author['pp_reputation_points'] >= 0">
<li style='margin-bottom: -5px;'>
<div align="center">
<div style="text-align:center;width:190px;;padding-bottom: 8px;">
<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: -24px;"><span style='color: #000;'>{parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</span></div>
</div>
</div>
</div>
</li>

<else />
<li style='margin-bottom: -5px;'>
<div align="center">
<div style="text-align:center;width:190px;;padding-bottom: 8px;">
<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;color: #fff;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: -24px;"><span style='color: black;'>{parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"}</span></div>
</div>
</div>
</div>
</li>
</if> 

 

 

Вытащил со своего сайта

  • 2 недели спустя...
  • 5 недель спустя...

Зачем так то сра**я ,человек по моей просьбе сделал хук(пусть он скопировал хоть частичку кода) но все же он выложил и я ему благодарен !



zhenyasim , а ты сам то хоть что нибудь попробуй сделать. !!!!!

 

От тебя только и слышно в сторону Санька одни оскорбления и та далее.

Если на то уж пошло, разбирайтесь в скайпе ! , нефиг оффтопить !

 

Прошу администрацию, почистить данную тему на форуме. Оставить только вопросыответы по хуку !

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 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.