I’ve purchased the code and now noticed if someone post something with Hebrew or Arabic title, the post doesn’t open, it gets error “Thread not found”
can you help please
- YAnswered
it doesnt send also messeges in arabic or hebrew title, and also i can’t create category in arabic i understood this code supports multi language but it has lots of problem, can you help please?
- MSAnswered
Hello,
Please edit the
topicmethod ofapp/controllers/Forums.phpand the following like around 218 before$topic = $this->forums_model->getTopicBySlug($slug);$slug = urldecode($slug);If this don’t resolve the issue, then we can modify the slug method to generate random slug and not to use arabic chars.
I didn’t get you second message. Please take screenshot so that I know what page are you talking about.
Thank you
- YAnswered
thats awesome! works great!
- MSAnswered
I am glad to now. Thank you for updating
- YAnswered
Hello again, in the same topic, how can i make category slug in Arabic or Hebrew? it lets me enter slug only in english thanks
- MSAnswered
Hello,
Yes, only sEnglish is support for slug that’s the reason for error for admins.
To disable the validation, you will need to edit the
add&editmethods ofapp/controllers/Categories.phpand remove thealpha_dashrule for the slug.The line will look like this
$this->form_validation->set_rules('slug', lang('slug'), 'trim|required|is_unique[categories.slug]');Thank you
- YAnswered
i did as you instructed and unfortunaltely it still doesn’t work, i still get this message when i try to add category: Slug can only consist of alphabetical, numbers, underscores and dashes
- MSAnswered
Hello,
That might be due to js validation, you can edit
themes/default/views/categories/add.phpandedit.phpand remove the regex validation fromdata-fv-regexp="true" data-fv-regexp-regexp="^[a-zA-Z0-9\_-]+$" data-fv-regexp-message="' . lang('slug_regex') . '"slug form input.Thank you
- YAnswered
hello, thank you! now it lets me create a category with slug in other langauge, But when i try to click on the category i get error 404, it says: We can’t seem to find the page your’re looking for.
- MSAnswered
Hello,
It would be due to same reason as of topics.
You can edit the
indexmethod of theapp/controllers/Forums.phpand add$category_slug = urldecode($category_slug);Thank you
- Login to Reply