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.
Jan 18:
1.5 release
Related questions
Can users "follow" tags or categories so they get emailed for those certain topics?
How are "Related questions" chosen for a question that has no tags?
special chars are not accepted in tags
Only single word tags are available ?
Bulk upload 'quotes' are getting replaced by 'slash and quote'
Tags should be <link rel="tag">
How to show recent tags in sidebar ?
Is there any way to search the list of tags?
I dont want to see tags on mainpage ?
how to restrict new tags creation and force the users to use pre-defined tags for raising the question
All categories
Q2A Core
(2,732)
Plugins
(173)
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?
import
tags
asked
Aug 31, 2010
in
Q2A Core
by
Christopher
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
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 :)
Please
log in
or
register
to add a comment.