• This area is dedicated to the support of our xF1 add-ons. For xF2, please use the dedicated area: HERE.
  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Bug Call-to-Action Button disappears with CTA Featured Threads add-on

Freelancer

Member
Joined
Nov 17, 2015
Messages
204
Title says it all. There seems to be a conflict with the templates (or template mods). When CTA FT is installed, the button for the "post new thread" disappears from forum index.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,219
Does CTA include a button in the top control bar ?
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,219
I don't know, does all template modifications relative to my add-on are active ?
 

Freelancer

Member
Joined
Nov 17, 2015
Messages
204
I found the conflict...

Both are searching for the <h1>Title</h1> tag.

XFA
Bildschirmfoto 2016-07-09 um 15.44.27.jpg

CTA Featured Threads
Bildschirmfoto 2016-07-09 um 15.43.54.jpg

Can you adjust your code or does Brogan need to adjust his code?
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,219
Guess I could adjust but without the add-on it's complicated to debug
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,219
Could I have a view to that cta_* template content ?
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,219
Okay, the problem is that cta is replacing the whole top of the template which is a bit strong :)

One solution is to change the template modification.

In find put:
Code:
<xen:hook name="forum_list_nodes">
In replace put:
Code:
<xen:if is="{$xfa_ntoi_canPostThreads}">
<xen:topctrl><a href="{xen:link 'misc/xfa-create-thread'}" class="callToAction OverlayTrigger"><span>{xen:phrase post_new_thread}</span></a></xen:topctrl>
</xen:if>

$0
 

Freelancer

Member
Joined
Nov 17, 2015
Messages
204
BINGO! That worked! :) Button is back again. Maybe you can include it in the next update.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,219
Well the problem is that it's very specific so no I won't be.
 

Freelancer

Member
Joined
Nov 17, 2015
Messages
204
Many are using CTA Featured Threads add-on. Only a matter of time when the next report will come. Except if no one is using your add-on beside me. ;)
 

popr

New Member
Joined
Jun 15, 2016
Messages
5
I have the same problem. Where do I find the <xen:hook name="forum_list_nodes"> code to replace? I can't find it in any template or anywhere in your plugin code.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,219
It's not a template it's a template modification related to the add-on.
 

MtoR

Freaky Coder
Staff member
Joined
Nov 14, 2015
Messages
5,219
In the template modifications, the one related to this add-on.

Clément
 

popr

New Member
Joined
Jun 15, 2016
Messages
5
When I go to edit the template modification, it won't let me. At the top of the screen it says
"This modification can only be enabled or disabled."
 

popr

New Member
Joined
Jun 15, 2016
Messages
5
The only way to edit it is to use debug mode. Works now, but I wish it worked on the CTA featured threads homepage. Another cool feature would be if it was still visible for guests, but when they click it, it takes them to the registration page.