1. 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

Discussion in 'Styling and Customization Questions' started by DRE, Oct 31, 2011.

  1. DRE

    DRE Well-Known Member

    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:
     

    Attached Files:

  2. DRE

    DRE Well-Known Member

    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;
        }
     
    Reedswood likes this.
  3. DRE

    DRE Well-Known Member

    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>
    
     

Share This Page