Best Answer

Broken board when try to search topic - Best Answer

Broken board when try to search topic

by ivailo95 » Fri Apr 19, 2019 5:56 am

hi there
im trying to search but this broke my board
i find this

Code: Select all

{% if searchresults.S_ANSWERED %}
	{% if not $INCLUDED_JXTOOLSJS %}
	{% if not INCLUDED_JXTOOLSJS %}
		{% INCLUDEJS '@kinerity_bestanswer/jxtools.js' %}
		{% DEFINE $INCLUDED_JXTOOLSJS = true %}
		{% DEFINE INCLUDED_JXTOOLSJS = true %}
	{% endif %}
<div id="list_inner_hidden_container_1" jxdom-closest="dl.postprofile" jxdom-find="dd:nth-of-type(3)" jxdom-action="replace" >
<dd>{{ lang('TOPIC') }}{{ lang('COLON') }} <i class="icon fa-check fa-fw icon-green" aria-hidden="true"></i> <a href="{{ searchresults.U_VIEW_TOPIC }}">{{ searchresults.TOPIC_TITLE }}</a></dd>
but not work for me
this is my test board - http://test.kefcheto.eu i test it before instal on live board
when try to search i see this error

Code: Select all

This page does not work
Test.kefcheto.eu is currently unable to process this request.

HTTP ERROR 500
ivailo95
Registered User
Posts: 714
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: Broken board when try to search topic

by kinerity » Fri Apr 19, 2019 12:34 pm

Solution is here
Kailey Truscott - Community Team
User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2299
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Broken board when try to search topic

by tbackoff » Fri Apr 19, 2019 4:47 pm

ivailo95 wrote:hi there
i find this

Code: Select all

{% if searchresults.S_ANSWERED %}
	{% if not $INCLUDED_JXTOOLSJS %}
	{% if not INCLUDED_JXTOOLSJS %}
		{% INCLUDEJS '@kinerity_bestanswer/jxtools.js' %}
		{% DEFINE $INCLUDED_JXTOOLSJS = true %}
		{% DEFINE INCLUDED_JXTOOLSJS = true %}
	{% endif %}
<div id="list_inner_hidden_container_1" jxdom-closest="dl.postprofile" jxdom-find="dd:nth-of-type(3)" jxdom-action="replace" >
<dd>{{ lang('TOPIC') }}{{ lang('COLON') }} <i class="icon fa-check fa-fw icon-green" aria-hidden="true"></i> <a href="{{ searchresults.U_VIEW_TOPIC }}">{{ searchresults.TOPIC_TITLE }}</a></dd>
I think what kinerity meant was remove {% if not $INCLUDED_JXTOOLSJS %} and {% DEFINE $INCLUDED_JXTOOLSJS = true %}. You have both and only the second one for each line is correct. ;)
Flying is the second best thrill to cheerleaders; being caught is the first.
User avatar
tbackoff
Former Team Member
Posts: 7022
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff
Contact:

Re: Broken board when try to search topic

by ivailo95 » Sat Apr 20, 2019 6:43 am

i did it , but the same result

Code: Select all

{% if searchresults.S_ANSWERED %}
	{% if not INCLUDED_JXTOOLSJS %}
		{% INCLUDEJS '@kinerity_bestanswer/jxtools.js' %}
		{% DEFINE $INCLUDED_JXTOOLSJS = true %}
	{% endif %}
<div id="list_inner_hidden_container_1" jxdom-closest="dl.postprofile" jxdom-find="dd:nth-of-type(3)" jxdom-action="replace" >
<dd>{{ lang('TOPIC') }}{{ lang('COLON') }} <i class="icon fa-check fa-fw icon-green" aria-hidden="true"></i> <a href="{{ searchresults.U_VIEW_TOPIC }}">{{ searchresults.TOPIC_TITLE }}</a></dd>
ivailo95
Registered User
Posts: 714
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: Broken board when try to search topic

by kinerity » Sat Apr 20, 2019 10:11 am

{% DEFINE $INCLUDED_JXTOOLSJS = true %} should be {% DEFINE INCLUDED_JXTOOLSJS = true %}
Kailey Truscott - Community Team
User avatar
kinerity
Community Team Member
Community Team Member
Posts: 2299
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Broken board when try to search topic

by ivailo95 » Sat Apr 20, 2019 10:24 am

kinerity wrote:{% DEFINE $INCLUDED_JXTOOLSJS = true %} should be {% DEFINE INCLUDED_JXTOOLSJS = true %}
done,but doesn't work it

Code: Select all

{% if searchresults.S_ANSWERED %}
	{% if not INCLUDED_JXTOOLSJS %}
		{% INCLUDEJS '@kinerity_bestanswer/jxtools.js' %}
		{% DEFINE INCLUDED_JXTOOLSJS = true %}
	{% endif %}
<div id="list_inner_hidden_container_1" jxdom-closest="dl.postprofile" jxdom-find="dd:nth-of-type(3)" jxdom-action="replace" >
<dd>{{ lang('TOPIC') }}{{ lang('COLON') }} <i class="icon fa-check fa-fw icon-green" aria-hidden="true"></i> <a href="{{ searchresults.U_VIEW_TOPIC }}">{{ searchresults.TOPIC_TITLE }}</a></dd>
test board: http://test.kefcheto.eu/index.php
User: 123 password: 123456
ivailo95
Registered User
Posts: 714
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact:

Re: Broken board when try to search topic

by ivailo95 » Sun Apr 21, 2019 4:28 pm

Ah!
Thank you guy who gave me a right code for fix it :!:
ivailo95
Registered User
Posts: 714
Joined: Tue Sep 05, 2017 8:00 am
Location: Bulgaria
Name: Ivailo
Contact: