March 5, 201213 yr Моя версия IPB:3.2.3Как можно сделать чтоб в репутации были разные цвета например при 10 реп. цвет был зеленый при 20 голубой и тд:?
March 6, 201213 yr можно попробовать поставик хук что типа (TB) Show Reputation in User Info, я правда не пользуюсь и не знаю можно там настраивать цвета.
March 6, 201213 yr можно попробовать поставик хук что типа (TB) Show Reputation in User Info, я правда не пользуюсь и не знаю можно там настраивать цвета. Нет там такого. Как и нет ни одной настройки.Лично мне неизвестен ни один хук, где бы цвет бэкграунда "панельки" репутации менялся в зависимости от ее кол-ва.Используйте условия.
March 6, 201213 yr В просторах интернета пишут что можно вот так сделать<!--REPUTATION BEGIN--> <if test="RepPositive:|:$author['pp_reputation_points'] > 0"> <div class='rep-block rep-block_green' style='margin-top:4px;'> {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"} </div> </if> <if test="RepNegative:|:$author['pp_reputation_points'] < 0"> <div class='rep-block rep-block_red' style='margin-top:4px;'> {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"} </div> </if> <if test="RepZero:|:$author['pp_reputation_points'] == 0"> <div class='rep-block rep-block_null' style='margin-top:4px;'> {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"} </div> </if> <!--REPUTATION END--> т.е. надо просто добавить больше CSS и PHP кодов если много цветов репутаций
March 7, 201213 yr Author В просторах интернета пишут что можно вот так сделать<!--REPUTATION BEGIN--> <if test="RepPositive:|:$author['pp_reputation_points'] > 0"> <div class='rep-block rep-block_green' style='margin-top:4px;'> {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"} </div> </if> <if test="RepNegative:|:$author['pp_reputation_points'] < 0"> <div class='rep-block rep-block_red' style='margin-top:4px;'> {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"} </div> </if> <if test="RepZero:|:$author['pp_reputation_points'] == 0"> <div class='rep-block rep-block_null' style='margin-top:4px;'> {parse expression="$this->lang->formatNumber( intval( $author['pp_reputation_points'] ) )"} </div> </if> <!--REPUTATION END--> т.е. надо просто добавить больше CSS и PHP кодов если много цветов репутаций В какую часть сайта css вставить?
Моя версия IPB:3.2.3
Как можно сделать чтоб в репутации были разные цвета например при 10 реп. цвет был зеленый при 20 голубой и тд:?