Fixed Duplicate create thread buttons

DOA

Member
Hi, this template modification with the update just released 2.5.2.b is creating two 'post new thread' buttons across our entire forum.

Capture.PNG

Code:
$0

<xen:if is="{$newDiscussionButton}">
      {xen:raw $newDiscussionButton}
</xen:if>

<xen:if is="{$canEditForum}">
      <a href="{xen:helper groupRoute, 'forums/edit', $forum}" class="callToAction"><span>{xen:phrase Teams_edit_forum}</span></a>
</xen:if>

<xen:if is="{$canDeleteForum}">
      <a href="{xen:helper groupRoute, 'forums/delete', $forum}" class="callToAction OverlayTrigger"><span>{xen:phrase Teams_delete_forum}</span></a>
</xen:if>
 
Template: Team_list.css
Code:
#Team_AddNewTeamButton {
position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    <xen:if is="!{$newDiscussionButton}">visibility: hidden;</xen:if>
}
Replace with this if you dont want to use "Template Modification" tool.
 
Template: Team_list.css
Code:
#Team_AddNewTeamButton {
position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    <xen:if is="!{$newDiscussionButton}">visibility: hidden;</xen:if>
}
Replace with this if you dont want to use "Template Modification" tool.
BerkanWhat is that?
 
This is code is in the Team_list.css template.
I added this "<xen:if is="!{$newDiscussionButton}">visibility: hidden;</xen:if>" for don't use the template modification tool.
I hate it . :D

(this code is for remove the duplicated add button, but seems to be fixed in the new update :( )
 
I dont think it is work. The variable in css template is very limited :(
 
Back
Top