Единый форум поддержки

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Единый форум поддержки » Форум для новичков » Вставка Иконки форума


Вставка Иконки форума

Сообщений 21 страница 24 из 24

21

Reysler написал(а):

liutongbao
Hello.
To replace all icons with your own, there is a code that needs to be placed in: Administration - Forms
Insert your values ​​in "HTML Header" instead of red color:

<style type="text/css">
.punbb div.icon {
float: left;
display: block;
border-style: none none none none;
height: 50px;
width: 50px;
}
.punbb td div.tclcon {
margin-left: 50px;
}
Div.icon {
background-image : url(URL of the topic icon without new messages);
background-repeat: no-repeat;
}
TR.inew Div.icon {
background-image : url(URL of the topic icon with new messages);
background-repeat: no-repeat;
}
TR.isticky Div.icon {
background-image : url(URL icons with Sticky Topics);
background-repeat: no-repeat;
}
TR.iclosed Div.icon {
background-image : url(URL icons with closed topics);
background-repeat: no-repeat;
}
</style>

50 and 50 - this is height and width of icons in pixels - see properties of your image.
You can upload icons in Administration - Files

Thank you very much. Dear friend.  I will try it first.
Then I will come back to report whether it is working or not.

+1

22

liutongbao написал(а):
Reysler написал(а):

liutongbao
您好。
要用你自己的图标替换所有图标,需要把一个代码放在: 管理 - 表单
在“HTML Header”中插入你的值,而不是红色

<style type=“text/css”>
.punbb div.icon {
float: left;
显示:块;
border-style: none none none none none;
高度:50像素;
宽度: 50px;
}
.punbb td div.tclcon {
margin-left: 50px;

Div.icon {
background-image : url(没有新消息的主题图标的 URL);
background-repeat:不重复;
}
TR.inew Div.icon {
background-image : url(包含新消息的主题图标的 URL);
background-repeat:不重复;
}
TR.isticky Div.icon {
background-image : url(带有粘性主题的 URL 图标);
background-repeat:不重复;
}
TR.iclosed Div.icon {
background-image : url(带有已关闭主题的 URL 图标);
background-repeat:不重复;
}
</style>

5050 - 这是图标的高度和宽度(以像素为单位) - 请参阅图像的属性。
您可以在“管理 - 文件”中上传图标

谢谢。亲爱的朋友。我会先试一试。
然后我会回来报告它是否有效。

Dear brother, those codes you quoted are a little bit oldish now. ^_^  The new codes are as follows: -
https://forum.mybb.ru/viewtopic.php?id= … 49#p612105
The above new codes are working properly.
Thank you again for your great help. You pushed me to success.

0

23

liutongbao
Not exactly :) The codes work, but I was in a hurry and did not study your screenshot, so I gave out codes for old design styles. In new design styles (Classic DarkBlue, Classic DarkCyan, Classic DarkGray, Classic DarkGreen, Classic DarkOrange, Classic DarkPurple, Classic DarkRed, Community Blue, Community Green, Overcast) the icons have a different structure, specifying the element above, because of this the code does not work. If something does not work for you or does not work as expected - do not be afraid to ask questions, we will always help.

+2

24

Reysler написал(а):

liutongbao
Not exactly :) The codes work, but I was in a hurry and did not study your screenshot, so I gave out codes for old design styles. In new design styles (Classic DarkBlue, Classic DarkCyan, Classic DarkGray, Classic DarkGreen, Classic DarkOrange, Classic DarkPurple, Classic DarkRed, Community Blue, Community Green, Overcast) the icons have a different structure, specifying the element above, because of this the code does not work. If something does not work for you or does not work as expected - do not be afraid to ask questions, we will always help.

Thank you very much, dear brother, for your professionalism and dedication.  I am feeling warmly. It is a  very nice community.  :jumping:

+2


Вы здесь » Единый форум поддержки » Форум для новичков » Вставка Иконки форума