Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
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.

Jan 18: 1.5 release

Which Tags are allowed? Where are they processed?

+1 vote
I use this method to import questions:
http://www.question2answer.org/qa/1222/what-is-the-best-way-for-me-to-upload-lot-of-questions-to-the-db#1223

But one problem i have: Is there a function i can use for the tags to preprocess them?

Because atm tags like "HELLO" or "hello?" or "hello!" are added to the database and displayed on the page corectly, but when i click on the urls i get 404.. :/

Another question: Why are not all possible tags allowed?
asked Aug 31, 2010 in Q2A Core by Christopher

1 Answer

0 votes
 
Best answer
Tags are based on Q2A's definition of a word, which includes the removal of punctuation and conversion to lower case.

Try using this to set the tags column in the database:

$tagstring=qa_tags_to_tagstring(array_unique(qa_string_to_words($intags)));

...where $intags is your original set of tags (separated by any word separator).
answered Sep 1, 2010 by gidgreen
I noticed that apostrophes are converted to spaces (well, dashes) in the final URL. I would suggest that instead you just remove them (I've done this in my Q2A).
So you'd have:
    heres-where-im-doing-something
Rather than:
    here-s-where-i-m-doing-something
thx, works :)