• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Post New Thread Button For Forum List Next To RSS Button

DRE

Well-known member
#1
Hi. I'd like to put a Post new thread button for forum list next to rss button. This was a template/css modification I had in vbulletin and miss it a lot in xenforo. How could I implement this? Example:
 

Attachments

DRE

Well-known member
#2
Okay I figured it out.

www.the8thlegion.com/forum/

How do I get the button to show to the left of the RSS button instead of pushing it down?

Search for nodeControls. It will be in template node_forum_level_2
Code:
<div class="nodeControls">
<a href="{xen:link forums/create-thread, $forum}" class="postnTopic">
            <a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
        </div>
Add the second line underneath nodeControls.


Code:
Extra.CSS
 
/* Add Post Topic icon to Node list */
.postnTopic {
background: transparent url('http://www.the8thlegion.com/images/topicb.png');
padding: 2px;
opacity: 0.5;
float: left;
width: 50px;
height: 16px;
margin-right: 9px;
}
 
    .postnTopic:hover {
    opacity: 1;
    }
 

DRE

Well-known member
#3
For the purposes of my example I let the create thread button be viewable.

If you don't want your create thread button viewable to guests try adding a conditional.

Code:
<div class="nodeControls">
<xen:if is="{$visitor.user_id}">
<a href="{xen:link forums/create-thread, $forum}" class="postnTopic"></xen:if>
            <a href="{xen:link forums/index.rss, $forum}" class="tinyIcon feedIcon" title="{xen:phrase rss}">{xen:phrase rss}</a>
        </div>