View previous topic :: View next topic |
Author |
Message |
Alextp
Joined: 06 Feb 2005 Posts: 4957
|
(Separately) Posted: Sun Dec 06, 2009 22:45 Post subject: скрыть колонку phpbb2 |
|
|
Есть ли способ скрыть колонку таблицы "Просмотров"?
Решение для FF:
1- ставить http://usercss.ru/how-to-install/#firefox
2- прописать стиль в настройках:
Code: |
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("forum.wincmd.ru") {
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TH.thTop:nth-child(4),
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TD.row2:nth-child(5)
{display:none !important;}
/* ...и в новых сообщениях */
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>TABLE.forumline>TBODY>TR>TH.thTop:nth-child(6),
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>TABLE.forumline>TBODY>TR>TD.row1:nth-child(6)
{display:none !important;}
}
|
Last edited by Alextp on Sat Dec 19, 2009 01:32; edited 4 times in total |
|
Back to top |
|
|
Tol!k
Joined: 01 Apr 2008 Posts: 1727 Location: Арзамас
|
(Separately) Posted: Mon Dec 07, 2009 00:20 Post subject: |
|
|
userCSS:
Code: | @charset "utf-8";
/* колонка "Просмотров" */
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TH.thTop:nth-child(4),
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TD.row2:nth-child(5)
{display:none !important;} |
Last edited by Tol!k on Mon Dec 07, 2009 20:00; edited 1 time in total |
|
Back to top |
|
|
Alextp
Joined: 06 Feb 2005 Posts: 4957
|
|
Back to top |
|
|
Tol!k
Joined: 01 Apr 2008 Posts: 1727 Location: Арзамас
|
|
Back to top |
|
|
Alextp
Joined: 06 Feb 2005 Posts: 4957
|
(Separately) Posted: Mon Dec 07, 2009 18:49 Post subject: |
|
|
надо разбираться с этим аддоном FF, там надо что-то вводить. Или на форуме userstyles.org просить сделать стиль.. :\ _________________ UniViewer - CudaText - LogViewer
|
|
Back to top |
|
|
Tol!k
Joined: 01 Apr 2008 Posts: 1727 Location: Арзамас
|
(Separately) Posted: Mon Dec 07, 2009 20:03 Post subject: |
|
|
Исправил стиль. Теперь работает и в FF (скриншот с настройками во втором посте)
Code: | @namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("forum.wincmd.ru") {
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TH.thTop:nth-child(4),
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TD.row2:nth-child(5)
{display:none !important;}
} |
В 'тегах' можно написать 'forum.wincmd.ru' |
|
Back to top |
|
|
Alextp
Joined: 06 Feb 2005 Posts: 4957
|
(Separately) Posted: Tue Dec 08, 2009 02:48 Post subject: |
|
|
Работает. Плс, для страницы "новые сообщения" можно сделать то же?,
там та же колонка (Просмотры), но с другим номером. _________________ UniViewer - CudaText - LogViewer
|
|
Back to top |
|
|
Tol!k
Joined: 01 Apr 2008 Posts: 1727 Location: Арзамас
|
(Separately) Posted: Tue Dec 08, 2009 03:15 Post subject: |
|
|
Code: | @charset "utf-8";
/* колонка "Просмотров" */
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TH.thTop:nth-child(4),
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TD.row2:nth-child(5)
{display:none !important;}
/* ...и в новых сообщениях */
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>TABLE.forumline>TBODY>TR>TH.thTop:nth-child(6),
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>TABLE.forumline>TBODY>TR>TD.row1:nth-child(6)
{display:none !important;} |
|
|
Back to top |
|
|
Alextp
Joined: 06 Feb 2005 Posts: 4957
|
|
Back to top |
|
|
Tol!k
Joined: 01 Apr 2008 Posts: 1727 Location: Арзамас
|
(Separately) Posted: Tue Dec 08, 2009 18:24 Post subject: |
|
|
Вот так —
Code: | @-moz-document domain("forum.wincmd.ru"), domain("другой.forum.ru") {
<правило>
<правило>
} |
А можно оставить голые правила —
Code: | BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TH.thTop:nth-child(4),
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>FORM>TABLE.forumline>TBODY>TR>TD.row2:nth-child(5)
{display:none !important;}
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>TABLE.forumline>TBODY>TR>TH.thTop:nth-child(6),
BODY>TABLE[width="100%"]>TBODY>TR>TD.bodyline>TABLE.forumline>TBODY>TR>TD.row1:nth-child(6)
{display:none !important;} |
они станут глобальными — т.е. будут действовать на любой подходящей странице
Но учти, что внешне очень похожие форумы могут иметь весьма различную структуру страниц. И правила скорее всего не будут вырезАть то, что хотел. А могут даже вЫрезать что-то нужное |
|
Back to top |
|
|
Alextp
Joined: 06 Feb 2005 Posts: 4957
|
|
Back to top |
|
|
|