Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.8
Author Message
morpheus_75
Involved
Involved



Joined: Oct 07, 2003
Posts: 302

PostPosted: Tue Mar 09, 2004 3:39 pm Reply with quote

WHYYYYYYYYYYYYYYYYYYYYYYY?????????????? That happens exactly with me, but not with other users Shocked
 
View user's profile Send private message
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Tue Mar 09, 2004 3:39 pm Reply with quote

Verify with the person that tried to post if his review had single or double quotes in it " or '
 
View user's profile Send private message Visit poster's website
morpheus_75







PostPosted: Tue Mar 09, 2004 3:43 pm Reply with quote

chatserv wrote:
Verify with the person that tried to post if his review had single or double quotes in it " or '


He didn't use any single or double quote. He just used letters...
 
chatserv







PostPosted: Tue Mar 09, 2004 3:50 pm Reply with quote

So did the one i sent as Havoc show up?
 
morpheus_75







PostPosted: Tue Mar 09, 2004 3:53 pm Reply with quote

chatserv wrote:
So did the one i sent as Havoc show up?


Yes... exactly as Raven's and mine... but not those by many other users. Anyway I'd like to thank you very much for your kind efforts Wink
Is there anything else to try?
 
morpheus_75







PostPosted: Thu Mar 11, 2004 7:12 am Reply with quote

WOW I GOT IT! I'm sharing this with u so that if you have the same problem, you can solve it. Well... at least I've fugured out WHERE is the problem, but not HOW to solve it Razz

Ok. The problem is LANGUAGE! The language of my phpnuke site is ENGLISH. Of course the users have the possibility to switch their language into Italian and most of them do so. When these users try to post a review, the system seems not to accept it... unless the language is switched back into English!

Raven: do u guess how to solve this problem?
 
chatserv







PostPosted: Thu Mar 11, 2004 8:04 am Reply with quote

Try changing the Italian lang file to:
Code:
<?php


/**************************************************************************/
/* PHP-NUKE: Advanced Content Management System                           */
/* ============================================                           */
/*                                                                        */
/* This is the language module with all the system messages               */
/*                                                                        */
/* If you made a translation, please go to the site and send to me        */
/* the translated file. Please keep the original text order by modules,   */
/* and just one message per line, also double check your translation!     */
/*                                                                        */
/* You need to change the second quoted phrase, not the capital one!      */
/*                                                                        */
/* If you need to use double quotes (") remember to add a backslash (\),  */
/* so your entry will look like: This is \"double quoted\" text.          */
/* And, if you use HTML code, please double check it.                     */
/**************************************************************************/

define("_PREVIOUS","Pagina Precedente");
define("_NEXT","Prossima Pagina");
define("_YOURNAME","Tuo Nome");
define("_SORTASC","Ordinamento Ascendente");
define("_SORTDESC","Ordinamento Discendente");
define("_CANCEL","Cancella");
define("_YES","Si");
define("_NO","No");
define("_SCORE","Voto:");
define("_REPLYMAIN","Posta Commento");
define("_ALLOWEDHTML","Tags HTML Abilitati:");
define("_POSTANON","Posta Anonimamente");
define("_WRITEREVIEW","Scrivi Recensione");
define("_WRITEREVIEWFOR","Scrivi Recensione per");
define("_ENTERINFO","Inserisci le informazioni in accordo con le specifiche");
define("_PRODUCTTITLE","Titolo Prodotto");
define("_NAMEPRODUCT","Nome del Prodotto Recensito.");
define("_REVIEW","Recensione");
define("_CHECKREVIEW","La tua attuale recensione. Fai attenzione alla grammatica! Scrivi almeno un centinaio di parole, OK? Se sai come si fa puoi usare anche tags HTML.");
define("_FULLNAMEREQ","Tuo Nome Completo. Richiesto.");
define("_REMAIL","Tuo Email");
define("_REMAILREQ","Tuo indirizzo E-mail. Richiesto.");
define("_SELECTSCORE","Voto per Questo Prodotto");
define("_RELATEDLINK","Link Correlati");
define("_PRODUCTSITE","Sito Ufficiale del Prodotto. Attenzione deve cominciare con \"http://\"");
define("_LINKTITLE","Titolo Link");
define("_LINKTITLEREQ","Richiesto se hai inserito link correlati, altrimenti non richiesto.");
define("_RIMAGEFILE","Nome File Immagine");
define("_RIMAGEFILEREQ","Nome dell'immagine di copertina, deve trovarsi in images/reviews/. Non richiesto.");
define("_CHECKINFO","Assicurati che tutte le informazioni inserite siano corrette al 100% e usano grammatica corretta. Per esempio, non inserire il testo tutto in MAIUSCOLO, potrebbe essere rifiutato.");
define("_INVALIDTITLE","Titolo Non Valido... Non pusograve: essere vuoto");
define("_INVALIDSCORE","Voto Non Valido... Deve essere un nukmero da 1 a 10");
define("_INVALIDTEXT","Testo Recensione Non Valido... Non pusograve: essere vuoto");
define("_INVALIDHITS","Hits deve essere un numero positivo intero");
define("_CHECKNAME","Devi inserire sia il tuo nome sia il tuo indirizzo email");
define("_INVALIDEMAIL","Email Non Valida (es: you@hotmail.com)");
define("_INVALIDLINK","Devi inserire sia il titolo che il correlato link oppure lasciare vuoti ambedue");
define("_ADDED","Aggiunto:");
define("_REVIEWER","Recensore:");
define("_REVIEWID","Recensione ID");
define("_HITS","Hits");
define("_LOOKSRIGHT","Va bene cossigrave:?");
define("_RMODIFIED","modificato");
define("_RADDED","aggiunto");
define("_ADMINLOGGED","Correntemente logged come admin... questa recensione deve essere immediatamente");
define("_RTHANKS","Grazie per l'inserimento di questa Recensione");
define("_MODIFICATION","modifiche");
define("_ISAVAILABLE","Non disponibile nel database recensioni.");
define("_EDITORWILLLOOK","L'editore darsagrave: un'occhiata alla tua inserzione. Presto sarsagrave: disponibile, se accettata!");
define("_RBACK","Torna Indice Recensioni");
define("_RWELCOME","Benvenuto nella Sezione Recensioni");
define("_10MOSTPOP","10 pisugrave: popolari");
define("_10MOSTREC","10 pisugrave: recenti");
define("_THEREARE","Ci sono");
define("_REVIEWSINDB","Recensioni nel Database");
define("_REVIEWS","Recensioni");
define("_REVIEWSLETTER","Recensioni per lettera");
define("_NOREVIEWS","Non c'segrave: nessuna Recensione sotto la lettera");
define("_TOTALREVIEWS","Recensioni(e) Totali trovate.");
define("_RETURN2MAIN","Ritorna al Menu Principale");
define("_REVIEWCOMMENT","Commenti sulla Recensione:");
define("_YOURNICK","Tuo Nickname:");
define("_RCREATEACCOUNT","<a href=modules.php?name=Your_Account>Crea</a> nuovo account");
define("_YOURCOMMENT","Tuo Commento:");
define("_MYSCORE","Mio Voto:");
define("_REVIEWMOD","Modifica Recensioni");
define("_RDATE","Data:");
define("_RTITLE","Titolo:");
define("_RTEXT","Testo:");
define("_REVEMAIL","Email:");
define("_RLINK","Link:");
define("_RLINKTITLE","Titolo Link:");
define("_COVERIMAGE","Immagine:");
define("_PREMODS","Anteprima Modifiche");
define("_PAGE","Pagina");
define("_PAGEBREAK","Se desideri pagine multiple inserisci <b>&lt;!--pagebreak--&gt;</b> nei punti di taglio.");
define("_PREVIEW","Anteprima");
define("_LANGUAGE","Lingua");

?>


Last edited by chatserv on Thu Mar 11, 2004 9:20 am; edited 2 times in total 
morpheus_75







PostPosted: Thu Mar 11, 2004 8:39 am Reply with quote

Thank u for ur help, chat. Unfortunately the problem is still there. When the user post his review (in Italian mode), the message "Thanks for submitting bla bla" does not appear and the user returns to the reviews main page without getting any message back. Of course I cannot visualize the review in the "waiting content" block... Sad
 
chatserv







PostPosted: Thu Mar 11, 2004 8:51 am Reply with quote

I edited the language code again, get it once more & retry
 
morpheus_75







PostPosted: Thu Mar 11, 2004 9:04 am Reply with quote

chatserv wrote:
I edited the language code again, get it once more & retry


Doesn't work Sad
the same as before: in english the user gets the "thanks" message. In Italian he doesn't and the review is not submitted.
 
chatserv







PostPosted: Thu Mar 11, 2004 9:23 am Reply with quote

Made one more change, to be honest i can't see why it would not work, in the first code i posted i had removed several instances of ; that were present in a few lines, now i took out instances of &, nothing else looks like it would block the module from working.
 
morpheus_75







PostPosted: Thu Mar 11, 2004 10:28 am Reply with quote

Nothing doing! Sad
And you know what? The ONLY language which causes this problem is ITALIAN!! Which is my language... Sad
Maybe the problem does not stem from the language file... Confused
 
morpheus_75







PostPosted: Sun Mar 14, 2004 9:18 am Reply with quote

Quote:
Sorry again Raven. I think the only way to solve this problem is to prevent users to choose other languages but english. How can this be achieved? I know I can hide the languages block so to prevent new users to choose. But how to change the langiage for registered users?
Pls, can u help me?


Raven wrote:
Update nuke_users set user_lang='english';

That will update all your user records.


It is already set on english. How can I update it?
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Mar 14, 2004 10:28 am Reply with quote

No no no Smile! That is an sql query that you need to run in phpMyAdmin.
 
View user's profile Send private message
chatserv







PostPosted: Sun Mar 14, 2004 10:32 am Reply with quote

Another workaround, save a copy of lang-english.php as lang-italian.php
 
morpheus_75







PostPosted: Sun Mar 14, 2004 11:51 am Reply with quote

Raven wrote:
No no no Smile! That is an sql query that you need to run in phpMyAdmin.


Yes, I did understand Razz. I checked in phpmyadmin and saw the language is already set on english. I am wondering how to run this query... Embarassed

Btw... I'll also follow chat's advice and let you know if ti works Wink
 
morpheus_75







PostPosted: Sun Mar 14, 2004 11:57 am Reply with quote

morpheus_75 wrote:
Btw... I'll also follow chat's advice and let you know if ti works Wink


does not work... Sad

Ehm... Raven... would u mind telling me how to run that query? Embarassed
 
chatserv







PostPosted: Sun Mar 14, 2004 12:28 pm Reply with quote

Copy the following to a file, save it as fixlang.php then upload to the same place mainfile.php is located, last point your browser to it (i.e. http://www.whatisthematrix.it/fixlang.php )
Code:
<?php


include("mainfile.php");

$db->sql_query("UPDATE ".$prefix."_users SET user_lang='english'");

echo "PHP-Nuke Update finished!<br><br>"
    ."You should now delete this upgrade file from your server.<br><br>";
?>
 
chatserv







PostPosted: Sun Mar 14, 2004 12:31 pm Reply with quote

As a side comment if you changed the contents of the review module's italian lang file with that of the english lang file and users still can't submit reviews then your problem is not related to the language and it doesn't make much sense to me.
 
Raven







PostPosted: Sun Mar 14, 2004 12:53 pm Reply with quote

morpheus_75 wrote:
Raven wrote:
No no no Smile! That is an sql query that you need to run in phpMyAdmin.


Yes, I did understand Razz. I checked in phpmyadmin and saw the language is already set on english. I am wondering how to run this query... Embarassed

Btw... I'll also follow chat's advice and let you know if ti works Wink
You asked how to change ALL your users. Copy and paste that query in the SQL window in phpMyAdmin and it will change ALL user records.
 
morpheus_75







PostPosted: Sun Mar 14, 2004 1:11 pm Reply with quote

I tried both ways, but users still have italian... Confused
I'm sorry guys... I am a nuke donkey Sad
 
Raven







PostPosted: Sun Mar 14, 2004 1:45 pm Reply with quote

And you've verified that the language actually got changed in the user's table? And you've changed it in Preferences?
 
morpheus_75







PostPosted: Mon Mar 15, 2004 2:05 am Reply with quote

Raven wrote:
And you've verified that the language actually got changed in the user's table? And you've changed it in Preferences?


In phpmyadmin I get what follows:

user_lang varchar(255) No english

In Preferences I have "Select the Language for your Site" switched into English. Multilingual options are deactivated. That's it Wink
 
Raven







PostPosted: Mon Mar 15, 2004 5:36 am Reply with quote

"user_lang varchar(255) No english "

That is from the Structure screen. Press the "Go" button at the bottom of that screen so that you can look at all the USER records, not the structure. Under the user_lang colmn for ALL the records, are they ALL reading english?
 
chatserv







PostPosted: Mon Mar 15, 2004 10:39 am Reply with quote

On some versions of phpMyAdmin the button to view the actual data in the tables will read "browse"
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.8

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©