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.

Делаем кнопки заместо текста функций

Часто на многих стилях можно увидеть такую картину при просмотре тем:

В этой статье, мы изменим этот простой вид функций на более красивый:

Заходим в:
Админцентр > Внешний вид > Ваш стиль > Управление шаблонами и CSS > Темы > post


Найти:

class='edit_post'


Заменить на:

class='ipsButton_secondary edit_post'



Найти:

class='delete_post'


Заменить на:

class='ipsButton_secondary delete_post'



Найти:

<a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=<if test="!$post['post']['queued']">unapprove<else />approve</if>&amp;selectedpids[{$post['post']['pid']}]={$post['post']['pid']}&amp;t={$topic['tid']}&amp;f={$forum['id']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['post_toggle_visible']}'><span id='toggletext_post_{$post['post']['pid']}'><if test="approveUnapprove:|:$post['post']['queued']==1">{$this->lang->words['post_approve']}<else />{$this->lang->words['post_unapprove']}</if></span></a>


Заменить на:

<a class='ipsButton_secondary' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=<if test="!$post['post']['queued']">unapprove<else />approve</if>&amp;selectedpids[{$post['post']['pid']}]={$post['post']['pid']}&amp;t={$topic['tid']}&amp;f={$forum['id']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['post_toggle_visible']}'><span id='toggletext_post_{$post['post']['pid']}'><if test="approveUnapprove:|:$post['post']['queued']==1">{$this->lang->words['post_approve']}<else />{$this->lang->words['post_unapprove']}</if></span></a>



Найти:

<a href='{parse url="app=blog&amp;blog_this=forums&amp;id1={$this->request['t']}&amp;id2={$post['post']['pid']}" base="public"}'>{$this->lang->words['blog_this']}</a>


Заменить на:

<a class='ipsButton_secondary' href='{parse url="app=blog&amp;blog_this=forums&amp;id1={$this->request['t']}&amp;id2={$post['post']['pid']}" base="public"}'>{$this->lang->words['blog_this']}</a>



Найти:

<a href='{parse url="app=core&amp;module=reports&amp;rcom=post&amp;tid={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;st={$this->request['st']}" base="public"}'>{$this->lang->words['report']}</a>


Заменить на:

<a class='ipsButton_secondary' href='{parse url="app=core&amp;module=reports&amp;rcom=post&amp;tid={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;st={$this->request['st']}" base="public"}'>{$this->lang->words['report']}</a>



Найти:

class='ipbmenu'


Заменить на:

class='ipsButton_secondary ipbmenu'

User Feedback

Recommended Comments

Комментариев пока нет

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
Добавить комментарий...

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.