First time here? Check out the FAQ!
0

how do I enable the similar question prompt when asking a question?

For clarity I'm talking about the dynamic window below the title and between the body which shows questions similar to the title.

It's running on askbot.org but I don't see an option to enable it in my settings.

Update:

I have tried adding this to MY_SKIN/templates/ask.html:

<script type='text/javascript'>
    var sortMethod = undefined;//need for live_search
    var minSearchWordLength = {{settings.MIN_SEARCH_WORD_LENGTH}};
</script>
<script type='text/javascript' src='{{"/js/live_search.js"|media}}'></script>

and I updated live_search.js from the default template.

tfoote's avatar
161
tfoote
updated 2011-03-17 13:42:09 -0600, asked 2011-03-16 22:46:39 -0600
edit flag offensive 0 remove flag close merge delete

Comments

may anyone in your community be interested to contribute some coding effort for askbot?
Evgeny's avatar Evgeny (2011-03-16 23:10:50 -0600) edit
add a comment see more comments

1 Answer

0

The change seems to have been lost in the merge process. There is a script called live_search.js that is missing on your ask page.

Also I notice that autocomplete="off" attibute is missing on input element with id="id_title" - that will kill the useless autocomplete dropdown.

Pretty soon you may notice some other javascript issues - please give a good test on upgrades. Unfortunately there are no test cases in the js yet.

Evgeny's avatar
13.2k
Evgeny
updated 2011-03-17 00:21:10 -0600, answered 2011-03-16 23:02:51 -0600
edit flag offensive 0 remove flag delete link

Comments

I have media/js/live_search.js in my skin directory. Do I need to update my skin to include the livesearch? And thanks for the tip on the autocomplete.
tfoote's avatar tfoote (2011-03-17 13:22:57 -0600) edit
yes, pls compare files askbot/skins/default/templates/ask.html but for real, I would do a full git diff and examine the patch piece by piece, then maybe fix some things. Did you have merge conflict on ask.html? I would expect you should have, if not - then it is not a good sign - as some things may get lost on merges that way.
Evgeny's avatar Evgeny (2011-03-17 13:59:50 -0600) edit
add a comment see more comments