Welcome to the Question2Answer Q&A. There's also a
demo
if you just want to try it out.
Login
Login
Register
All Activity
Questions
Hot!
Unanswered
Tags
Users
Ask a Question
About
Wiki
Welcome to the Q&A for
Question2Answer
.
If you have questions about the platform,
click here to ask
and please use English.
If you just want to try Q2A, please use the
demo
, which also grants admin access.
Apr 29:
Q2A 1.5.2
Related questions
How to change "Your question in one sentence" string
How to get rid of the space between title and question on question site ?
Theming question: How does one refer to the tall-table on login form in css ?
As with plugins to add its own field or in the form of a layer?
How can I get rid of what appears to be question number in the URL?
How to insert Adsense or other code in the body of the page before the question on every page?
How include image in top of the title ask?
How can I disable the question body form, so that only the question title is in use?
how to add" your answer dialouge box" into the question page
How to disable the answer to your question?
All categories
Q2A Core
(3,241)
Plugins
(350)
How to limit the size of the title? (field: Your question in one sentence)?
+2
votes
Some users type a big text in first field, "Your question in one sentence".
Then the title of the question page can get very big!
Is there any easy way to limit the amount of characters of the first field?
asked
May 31, 2010
in
Q2A Core
by
melias
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
+2
votes
There is not currently an option for this, but you can implement it by modifying the qa_question_validate(...) function in qa-app-post-create.php.
If you wanted a maximum of 200 characters, you would change this:
qa_length_validate($errors, 'title', $title, $options['min_len_q_title'], QA_DB_MAX_TITLE_LENGTH);
...to this...
qa_length_validate($errors, 'title', $title, $options['min_len_q_title'], 200);
An option regarding this is planned for the next major release.
answered
May 31, 2010
by
gidgreen
thank you again for very fast reply :)
Big title is too ugly and bad for SEO, this will be better.
Please
log in
or
register
to add a comment.