Ask Your Question
0

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

asked 2011-03-16 22:46:39 -0600

tfoote gravatar image

updated 2011-03-17 13:42:09 -0600

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.

edit retag flag offensive close merge delete

Comments

may anyone in your community be interested to contribute some coding effort for askbot?
Evgeny gravatar imageEvgeny ( 2011-03-16 23:10:50 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-03-16 23:02:51 -0600

Evgeny gravatar image

updated 2011-03-17 00:21:10 -0600

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.

edit flag offensive delete link more

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 gravatar imagetfoote ( 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 gravatar imageEvgeny ( 2011-03-17 13:59:50 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-03-16 22:46:39 -0600

Seen: 165 times

Last updated: Mar 17 '11