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 - discussion list

Discussion in 'Styling and Customization Questions' started by Neil E., Aug 27, 2012.

  1. Neil E.

    Neil E. Active Member

    I really like the upper post new thread button location at the end of the top breadcrumb. I want the lower button done the same way, but the code is quite different so I don't know how to achieve this. Any suggestions on how to get the lower post new thread button at the end of the bottom breadcrumb?

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> EXTRA.css

    Add this code:

    .breadBoxBottom .topCtrl
    	margin-left: 5px;
    .forum_view .pageNavLinkGroup .callToAction
    	display: none;
    Admin CP -> Appearance -> Templates -> PAGE_CONTAINER

    Add the red code:

    			<xen:hook name="page_container_breadcrumb_bottom">
    			<div class="breadBoxBottom">
    				<xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
    				<xen:include template="breadcrumb" />
  3. Neil E.

    Neil E. Active Member

    I'm totally blown away by how many views this topic has generated.

    Once again, Jake is right on the money, however it didn't go well for me.
    1) Page_Container edit via TMS - no problem.
    2) .breadBoxBottom .topCtrl {margin-left: 5px;} via EXTRA - total failure, would not apply
    - I had a 5px gap on the top button and no gap on the bottom button
    - Added some space via style properties (call to action button container) and got added space on both buttons (as expected)
    - tried EXTRA to add a minus margin to the top button - no luck
    - had a look at the breadcrumb template and noticed both breadboxes were styled together
    - broke the styling up in EXTRA using the identical format - OK this works

    from the original template
    new in EXTRA
    Once this was done EXTRA would handle .breadBoxBottom .topCtrl just fine.
    When I separated the breadbox code I also added a small padding change.

    One more oddity:
    .forum_view .pageNavLinkGroup .callToAction {display: none;} only works if it is located AFTER .breadBoxBottom .topCtrl in EXTRA (does nothing if located before). I don't know how I can be so good at creating these funky conditions when doing simple code changes.

    Thank you Jake for all your help, it is much appreciated.
  4. RoldanLT

    RoldanLT Well-Known Member

    Not working on Flexile.
  5. tommydamic68

    tommydamic68 Well-Known Member

    I would like to se the button in a more "noticeable" area. It could be had to find with people who are not forum savvy. Would love to know how to move its here:

    Screen Shot 2014-02-16 at 4.57.57 AM.png

    But the top bread crumb would have to be resized like below after the move I guess?

    Screen Shot 2014-02-16 at 4.58.37 AM.png
    zastavra likes this.
  6. LiLChris

    LiLChris Member

    Thanks I was looking for this like crazy, had it pre-1.3 and forgot how I did it.
    I added it to the top/bottom breadcrumb.
  7. Rob

    Rob Well-Known Member

Share This Page