| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 9007|Reply: 13
Collapse the left

[solved] Forum: very short name for threads

[Copy link]

 Cambodia

Post time: 2011-09-28 09:38
| Show all posts |Read mode

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2011-09-28 09:50
| Show all posts
You can enter maximum 2 characters

1) This is a bad translation, imho.
It must be something like "Characters left to enter: 2".
2) In my English Dzx the thread title length is  limited to 255 (it is quite enough, I think)
3) But Dzx original code limited the thread title to 30 character only!

So, we have solve the first and the third problems...

 Cambodia

 Author| Post time: 2011-09-29 15:15
| Show all posts
Now as something strange going on all.
When user enter the name of topic each letter is considered for three. So really instead of 80 characters the user has only 26.
Valeriy, fix this please.

 Russia

Post time: 2011-09-29 16:15
| Show all posts
When user enter the name of topic each letter is considered for three. So really instead of 80 characters the user has only 26.

It is because of the input length is counted as single bytes in ASCII encoding, but you really enter multibyte characters in UTF-8 encoding.

Will look...

 Cambodia

 Author| Post time: 2011-09-29 22:42
| Show all posts

 United States

Post time: 2011-09-30 05:35
| Show all posts
How do we change the title length? I'd like longer title length too.

I can't read Russian T___T so I don't understand the links provided...

 Russia

Post time: 2011-09-30 17:00
| Show all posts
I can't read Russian

Do not read

What about me, I will read any language page if it can help to solve a problem...

 Russia

Post time: 2011-09-30 19:35
| Show all posts
Let's try this patch:
http://code.google.com/p/discuzx-en/source/detail?r=77

Report results please!

 Cambodia

 Author| Post time: 2011-09-30 23:09
| Show all posts
Edited by Lake at 2011-9-30 23:10

Теперь заголовок поста вводится корректно: отсчет оставшихся символов ведется правильно и удается ввести название длиной до 80 символов. Но при попытке редактировать такой пост выскакивает сообщение об ошибке.

google-translate:
Now enter the post title correctly: countdown of remaining characters is correct and can enter the name of up to 80 characters. But when you try to edit this post gives me an error.



p.s. Люди на чайнаскрипт сталкивались с похожей проблемой.

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2011-10-01 09:58
| Show all posts
But when you try to edit this post gives me an error.

"Add new thread" action is handled by the post_newthread.php.
And seems to be fixed. So, the first half of the problem is solved.

But the "Edit thread" action is handled by other file - post_editthread.php.
So, I will try to modify this file with the same manner.
Going to do that...

You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-09-27 15:10 GMT+3 , Processed in 0.090043 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list