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

Если есть желание немного разукрасить форум, то можно cделать так.

Открваем шаблон tagEntry в группе скина Other Global Templates 

и меняем имеющийся код





<a <if test="noClass:|:!$noClass">class='ipsTag'</if> href="{parse url="app=core&amp;module=search&amp;do=search&amp;search_tags={parse expression="IPSText::urlencode_furlSafe($tag)"}&amp;search_app=<if test="inSearch:|:isset($this->request['search_app']) AND $this->request['search_app']">{$this->request['search_app']}<else />{$app}</if><if test="hasSearchSection:|:$section">&amp;search_app_filters[<if test="inSearchSub:|:isset($this->request['search_app']) AND $this->request['search_app']">{$this->request['search_app']}<else />{$app}</if>][searchInKey]={$section}</if>" base="public" template="tags" seotitle="false"}" data-tooltip="{parse expression="sprintf( $this->lang->words['find_more_tags'], $tag )"}"><span>{$tag}</span></a>

на этот





<php>
$color = sprintf( '#%02X%02X%02X', mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255) );
</php>
<a <if test="noClass:|:!$noClass">class='ipsTag'</if> href="{parse url="app=core&amp;module=search&amp;do=search&amp;search_tags={parse expression="IPSText::urlencode_furlSafe($tag)"}&amp;search_app=<if test="inSearch:|:isset($this->request['search_app']) AND $this->request['search_app']">{$this->request['search_app']}<else />{$app}</if><if test="hasSearchSection:|:$section">&amp;search_app_filters[<if test="inSearchSub:|:isset($this->request['search_app']) AND $this->request['search_app']">{$this->request['search_app']}<else />{$app}</if>][searchInKey]={$section}</if>" base="public" template="tags" seotitle="false"}" data-tooltip="{parse expression="sprintf( $this->lang->words['find_more_tags'], $tag )"}"><span style="color:{$color}">{$tag}</span></a>

Цвет тегов будет менятся случайным образом. Если надо, что бы цвет тегов был более темном диапазоне, уменьшите числа 255, напр, до 150

 

Ну еще в

ipb_styles.css

там где 





/* TAG CLOUD */
.ipsTagWeight_1 { opacity: 1.0; }

и так далее

 

можно установить размер тегов, например. В принципе изменения в шаблон можно не вносиить, а прописать цвета непосредственно в CSS





/* TAG CLOUD */
.ipsTagWeight_1 { opacity: 1.0; font-size:17px; }
.ipsTagWeight_2 { opacity: 0.9; font-size:16px;}
.ipsTagWeight_3 { opacity: 0.8; font-size:15px;}
.ipsTagWeight_4 { opacity: 0.7; font-size:14px;}
.ipsTagWeight_5 { opacity: 0.6; font-size:14px;}
.ipsTagWeight_6 { opacity: 0.5; font-size:13px;}
.ipsTagWeight_7 { opacity: 0.4; font-size:12px;}
.ipsTagWeight_8 { opacity: 0.3; font-size:11px;}

post-9975-0-27689400-1375656407.jpg

post-9975-0-13226200-1375656413_thumb.jp

post-9975-0-08900200-1375656416_thumb.jp

Edited by kgb

  • Author


Прикольно, буду юзать!
только обращаю внимание, что у меня 3.4.5, но в принципе та все просто.  в шаблоне вся разница в пхп коде и 

<span style="color:{$color}">

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.