Feedback

Discuţii libere referitoare la forumul phpBB şi comunitatea phpBB Romania.
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
Scrie răspuns
Avatar utilizator
bogdan
AdministratorAdministrator
Mesaje: 10888
Membru din: 18-Oct-2002, 13:14:27
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Re: Feedback

Mesaj de bogdan »

Si ce te impiedica sa o oferi? :)
Avatar utilizator
Dragosvr92
ModeratorModerator
Mesaje: 2293
Membru din: 22-Noi-2010, 07:37:38
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Romania
Contact:

Re: Feedback

Mesaj de Dragosvr92 »

Meh.. poi nu-s sigur daca este sigura :-?

Ma gandeam sa inlocuiesti caracterele stricate cu cele corecte folosind comenzi SQL pentru fiecare caracter in-parte.

De aceste comenzi sunt suta la suta sigur ca vor face ce trebuie:

Cod: Selectaţi tot


UPDATE phpbb_posts SET post_text = replace(post_text, 'ă', 'ă');
UPDATE phpbb_posts SET post_text = replace(post_text, 'ş', 'ş');
UPDATE phpbb_posts SET post_text = replace(post_text, 'î', 'î');
UPDATE phpbb_posts SET post_text = replace(post_text, 'â', 'â');
UPDATE phpbb_posts SET post_text = replace(post_text, 'ţ', 'ţ');
UPDATE phpbb_posts SET post_text = replace(post_text, 'Î', 'Î');
UPDATE phpbb_posts SET post_text = replace(post_text, 'Ş', 'Ş');

De unele de aici sunt foarte nesigur....

Cod: Selectaţi tot

UPDATE phpbb_posts SET post_text = replace(post_text, 'Ä‚', 'Ă');
UPDATE phpbb_posts SET post_text = replace(post_text, 'Â', 'Â');
UPDATE phpbb_posts SET post_text = replace(post_text, 'ţ˜,', 'Ş');//notsure
UPDATE phpbb_posts SET post_text = replace(post_text, 'ş', 'ş');
UPDATE phpbb_posts SET post_text = replace(post_text, 'ţš', 'Ţ');
UPDATE phpbb_posts SET post_text = replace(post_text, 'ţ', 'ţ');
UPDATE phpbb_posts SET post_text = replace(post_text, 'Ţ', 'Ţ');
Uite o lista a caracterelor, stricate, si ne stricate.
Ä‚, ă, Â, â, Î, î, ţ˜, ş, Ş, ş, ţš, ţ›, Ţ, ţ
Ă, ă, Â, â, Î, î, Ș, ș, Ş, ş, Ț, ț, Ţ, ţ
Bune ca am postat o lista cu toate diacriticele aici:
http://www.phpbb.ro/viewtopic.php?f=27& ... 10#p135813

Am verificat site-ul de unde le am luat si am creat aceasi ordine.
Desi, pentru lista de comenzi sigure a trebuit sa caut prin postarile lui Paul, pentru a mi da seama ce diacritice s au stricat....

In fine.... i need sleep :lol:
"Calitatea răspunsurilor primite este direct proporţională cu calitatea întrebării."
ID Vechi >> TheKiller || Avatar on Memberlist 1.0.3
Avatar utilizator
bogdan
AdministratorAdministrator
Mesaje: 10888
Membru din: 18-Oct-2002, 13:14:27
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Re: Feedback

Mesaj de bogdan »

Multam. Am rulat prima secventa de cod. Ramane sa vedem ce mai ramane de reparat.
Avatar utilizator
Dragosvr92
ModeratorModerator
Mesaje: 2293
Membru din: 22-Noi-2010, 07:37:38
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Romania
Contact:

Re: Feedback

Mesaj de Dragosvr92 »

Cu placere.
Am observat ca mai trebuiau modificate si din alta parte.....

Am sa fac o lista de comenzi care va rezolva toate posibilele probleme in legatura cu diacriticele.
"Calitatea răspunsurilor primite este direct proporţională cu calitatea întrebării."
ID Vechi >> TheKiller || Avatar on Memberlist 1.0.3
Avatar utilizator
Dragosvr92
ModeratorModerator
Mesaje: 2293
Membru din: 22-Noi-2010, 07:37:38
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Romania
Contact:

Re: Feedback

Mesaj de Dragosvr92 »

Cod: Selectaţi tot

UPDATE phpbb_posts SET post_text = replace(post_text, 'È™', 'ş');
UPDATE phpbb_posts SET post_text = replace(post_text, 'È', 'ţ');

UPDATE phpbb_posts SET post_text = replace(post_text, 'ă', 'ă');
UPDATE phpbb_posts SET post_text = replace(post_text, 'ÅŸ', 'ş');
UPDATE phpbb_posts SET post_text = replace(post_text, 'î', 'î');
UPDATE phpbb_posts SET post_text = replace(post_text, 'â', 'â');
UPDATE phpbb_posts SET post_text = replace(post_text, 'Å£', 'ţ');
UPDATE phpbb_posts SET post_text = replace(post_text, 'ÃŽ', 'Î');
UPDATE phpbb_posts SET post_text = replace(post_text, 'Åž', 'Ş');

UPDATE phpbb_topics SET topic_title = replace(topic_title, 'ă', 'ă');
UPDATE phpbb_topics SET topic_title = replace(topic_title, 'ÅŸ', 'ş');
UPDATE phpbb_topics SET topic_title = replace(topic_title, 'î', 'î');
UPDATE phpbb_topics SET topic_title = replace(topic_title, 'â', 'â');
UPDATE phpbb_topics SET topic_title = replace(topic_title, 'Å£', 'ţ');
UPDATE phpbb_topics SET topic_title = replace(topic_title, 'ÃŽ', 'Î');
UPDATE phpbb_topics SET topic_title = replace(topic_title, 'Åž', 'Ş');

UPDATE phpbb_topics SET topic_last_post_subject = replace(topic_last_post_subject, 'ă', 'ă');
UPDATE phpbb_topics SET topic_last_post_subject = replace(topic_last_post_subject, 'ÅŸ', 'ş');
UPDATE phpbb_topics SET topic_last_post_subject = replace(topic_last_post_subject, 'î', 'î');
UPDATE phpbb_topics SET topic_last_post_subject = replace(topic_last_post_subject, 'â', 'â');
UPDATE phpbb_topics SET topic_last_post_subject = replace(topic_last_post_subject, 'Å£', 'ţ');
UPDATE phpbb_topics SET topic_last_post_subject = replace(topic_last_post_subject, 'ÃŽ', 'Î');
UPDATE phpbb_topics SET topic_last_post_subject = replace(topic_last_post_subject, 'Åž', 'Ş');
Foloseste si comenzile de mai sus.. Le am scris din ziua in cre am raspuns si au ramas pe desktop.
Am si comenzile pentru alte diacritice, dar unele nu functioneaza prea grozav.

Cred ca trebuia aleasa o ordine pentru ca toate comenzile sa mearga corect.
De exemplu, daca folosim comanda asta:

Cod: Selectaţi tot

UPDATE phpbb_posts SET post_text = replace(post_text, 'È', 'ţ');
Aceasta nu va mai merge:

Cod: Selectaţi tot

UPDATE phpbb_posts SET post_text = replace(post_text, 'È™', 'ş');
Deci, cea de la sfarsit ar fi trebuit sa fie prima.

Acum nu mai are rost sa gasesc ordinea corecta pentru ca folosind primele comenzi date de mine au scimbat majoritatea diacriticelor.

Daca ai avea vechea baza de date, am putea sa o lom de la inceput.
"Calitatea răspunsurilor primite este direct proporţională cu calitatea întrebării."
ID Vechi >> TheKiller || Avatar on Memberlist 1.0.3
Avatar utilizator
bogdan
AdministratorAdministrator
Mesaje: 10888
Membru din: 18-Oct-2002, 13:14:27
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Re: Feedback

Mesaj de bogdan »

Cred ca nu mai e cazul. Ai mai gasit alte caractere care nu apar bine?
Avatar utilizator
Dragosvr92
ModeratorModerator
Mesaje: 2293
Membru din: 22-Noi-2010, 07:37:38
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Romania
Contact:

Re: Feedback

Mesaj de Dragosvr92 »

hm.. Ce nu ar mai fi cazul?
Ai folosit lista de comenzi de mai sus ?
Vad ca titlurile de aici sunt inca gresite: http://www.phpbb.ro/viewtopic.php?f=44&t=19048
Organizaţia "Schimbă Lumea"!
"Calitatea răspunsurilor primite este direct proporţională cu calitatea întrebării."
ID Vechi >> TheKiller || Avatar on Memberlist 1.0.3
Avatar utilizator
Dragosvr92
ModeratorModerator
Mesaje: 2293
Membru din: 22-Noi-2010, 07:37:38
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Romania
Contact:

Re: Feedback

Mesaj de Dragosvr92 »

Bump.. Can you please fix the titles :D
Comenzile de mai sus sunt in regula pentru acele diacritice din ele. Restul vor ramane cum sunt.

PS: Vad ca iar ai stricat fisierele temei ! -__-"
Sterge asta pentru inceput, din footer:

Cod: Selectaţi tot

            </div></div></div></div></div>
        </div>
"Calitatea răspunsurilor primite este direct proporţională cu calitatea întrebării."
ID Vechi >> TheKiller || Avatar on Memberlist 1.0.3
Avatar utilizator
bogdan
AdministratorAdministrator
Mesaje: 10888
Membru din: 18-Oct-2002, 13:14:27
Versiune: 3.0.11
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Bucuresti
Contact:

Re: Feedback

Mesaj de bogdan »

1. Am rulat.

2. Am corectat.

3. Multam!
Avatar utilizator
Dragosvr92
ModeratorModerator
Mesaje: 2293
Membru din: 22-Noi-2010, 07:37:38
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu
Localitate: Romania
Contact:

Re: Feedback

Mesaj de Dragosvr92 »

1. Yey ! Asta ar trebui sa rezolve majoritatea diacriticelor enervante. :)
2. Ok, te superi daca intreb cum au ajuns toate acele coduri in tema?
3. You are welcome =)
"Calitatea răspunsurilor primite este direct proporţională cu calitatea întrebării."
ID Vechi >> TheKiller || Avatar on Memberlist 1.0.3
Scrie răspuns

Înapoi la “Despre phpBB”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 3 vizitatori