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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
tfoote's avatar
161
tfoote
updated 14 years ago, asked 14 years ago

Comments

may anyone in your community be interested to contribute some coding effort for askbot?
Evgeny's avatar Evgeny (14 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago, answered 14 years ago
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 (14 years ago)
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 (14 years ago)
see more comments