charafweb
Проверенные
- Сообщения
- 20
- Реакции
- 28
- Баллы
- 5,510
Hi everybody,
Here how to add a button to create a new thread from index page, please see screenshot:
1- Appearance > Styles > (YourStyle) > Templates
2- Search for Template: node_forum_level_2
3- Search for : <div class="nodeControls">
4- Add after:
Note: X, Y, Z... are the number of users categories with permission to create new thread.
5- Go to EXTRA.css
Add at the begining:
And that's it.
Thanks for reading.
Here how to add a button to create a new thread from index page, please see screenshot:
1- Appearance > Styles > (YourStyle) > Templates
2- Search for Template: node_forum_level_2
3- Search for : <div class="nodeControls">
4- Add after:
HTML:
<xen:if is="{xen:helper ismemberof, $visitor, X, Y, Z}">
<a href="{xen:link forums/create-thread, $forum}" class="postnTopic" title="{xen:phrase post_new_thread}"></a>
</xen:if>
Note: X, Y, Z... are the number of users categories with permission to create new thread.
5- Go to EXTRA.css
Add at the begining:
Код:
.node .postnTopic {
background: transparent url('@imagePath/xenforo/xenforo-ui-sprite.png') no-repeat -64px -16px;
padding: 2px;
opacity: 0;
float: left;
width: 13px;
height: 13px;
margin-right: 9px;
display: block;
white-space: nowrap;
}
.node .nodeInfo:hover .postnTopic[href], .Touch .node .postnTopic{
opacity: 1;
}
.node .tinyIcon{
display: inline-block !important;
}
And that's it.
Thanks for reading.