Home › Forum › Problemi Vari con WP › commenti popup
-
AutorePost
-
-
9 Aprile 2008 alle 0:28 #6284TedCPartecipante
Ciao a tutti.
Sto realizzando un template con i commenti pop (mi è stato chiesto cosà¬). Non avendolo mai fatto prima, ho sviluppato i commenti popup del tema classic. Fin quando si trattava di stili, niente di difficile.
Poi ho notato che nei commenti popup del tema classic manca la funzione login, cioè, se sono logato, il form per i commenti rimane invariato (con le tre aree input per nome, email e url), invece di sostituirlo con una frase “Sei loggato come NickName”, per es.
Nel codice mancava la funzione if ( $user_ID ). Ho provato ad aggiungerla con i cicli di if e sono riuscito a renderla visibile sul template, ma, quando vado a commentare da loggato (sto lavorando in locale, ovviamente) non funziona e mi genera una finestra bianca. Se non sono loggato, funziona bene.
Vi incollo qui il codice, perché delle volte con i cicli di if mi perdo. Magari mi sapete dire dov’è l’errore. Sono convinto che è una stronzata.
[N.d.M. Postare una tonnellata di codice senza che sia stato chiesto è sconsigliatissimo e rende il post illeggibile, bastava inserire la parte di codice incriminata. Usare pastebin.com per pubblicare intere pagine di codice e fornire il link]
-
9 Aprile 2008 alle 8:02 #52353TedCPartecipante
(Scusate per il codice, ho aperto questo thread ieri notte)
Ecco il link pastebin: http://pastebin.com/m41343ed7
-
9 Aprile 2008 alle 12:52 #52366TedCPartecipante
Ho notato che nella template “classic” compreso con WP 2.5 hanno aggiunto la funzione che mi serviva. Incredibile ma vero, anche qui mi dà lo stesso problema. Se sono loggato, non mi posta i commenti e genera solo una pagina bianca.
-
9 Aprile 2008 alle 13:27 #52367
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.