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

XF 1.3 Start New Discussion button on sidebar

Discussion in 'Styling and Customization Questions' started by Markos, May 6, 2014.

  1. Markos

    Markos Well-Known Member

    I want to have a "Start New Discussion" button on sidebar like this forum.

    I post an image to be more clear:
    [​IMG]

    How i can do that? I hope that @TheBigK can help me.
     
    Last edited: May 6, 2014
  2. TheBigK

    TheBigK Well-Known Member

    It's a custom mod that puts it on the sidebar. I'm not very satisfied with the way it works though. Could be a lot better.
     
  3. Markos

    Markos Well-Known Member

    Why you are not satisfied? As i see, it work well on your board.

    Anyway, have you intention to release?
     
  4. TheBigK

    TheBigK Well-Known Member

    Well, it was supposed to be a lot better. Custom text on the button (easy to do), changing button title depending upon the post count of the user etc. Plus I'd have loved to see a better layout for the category and forums. I'll release it only if it achieves a state where I feel proud to release it.
     
    Markos likes this.
  5. Russ

    Russ Well-Known Member

    Could always add this to the bottom of forum_view

    Code:
    <xen:sidebar>
    <xen:if is="{$canPostThread}">
       <div class="section">
         <div class="secondaryContent">
          
           <label id="SignupButton"><a href="{xen:link 'forums/create-thread', $forum}" class="inner">{xen:phrase post_new_thread}</a></label>
          
         </div>
       </div>
    </xen:if>
    </xen:sidebar>
    
    Uses the signup button for styling, result:

    result.png

    Then maybe use the widget framework to control what else shows there.
     
    Last edited: May 6, 2014
    Markos likes this.
  6. TerryP

    TerryP Member

    Using the widget framework add-on, I've added options like that to my forums.

    In the first image that's the location where I used to have the "Post New Thread" options you see in the second image.
     

    Attached Files:

    • 1.png
      1.png
      File size:
      165.5 KB
      Views:
      28
    • 2.png
      2.png
      File size:
      118.1 KB
      Views:
      27
  7. Markos

    Markos Well-Known Member

    My moderator helped me to create these. Soon we will share the code. :)
     

Share This Page