Risposte nei forum create
-
AutorePost
-
torejxPartecipante
Se si tratta di quadrato attorno immagino sia il bordo, quindi prova con border:none.
torejxPartecipanteDopo un’eventuale regola che invece assegna i margini alle immagini. Mettilo alla fine e vai sul sicuro.
ps: la regola da te postata toglie i bordi, per i margini devi usare img{margin:0} [ma l’effetto sarà penoso..]
torejxPartecipanteDipende dal tema. Se usa i menu, basta andare sulla relativa schermata (non ricordo, forse è sotto Aspetto) e spostare il tastino Home alla fine.
torejxPartecipanteFai un’analisi con Page Speed e vedi dove puoi lavorare per migliorare la velocità di caricamento.
Potrebbe dipendere da qualche script particolarmente lento.
torejxPartecipanteNel tuo css cerca la classe .entry ed inserisci, tra le altre regole
height: 300px;
dove ovviamente a 300 sostituisci il valore che preferisci… Occhio però a come gestisci il contenuto all’interno del riquadro, per fare in modo che non sfori.
Per quanto riguarda la seconda richiesta non ho ben capito cosa vuoi fare.. Vuoi che il logo sia “cliccabile”?
Fai una prova: nel tuo header.php, dopo <div id=”top”> inserisci
[a href=”http://www.unbuconellalcool.com” style=”width: 100%; height: 100%; display:block”][/a]
(sostituisci le parentesi quadre con < e >)
Se funziona poi modifichiamo in modo da inserire lo stile nel css.
torejxPartecipanteLIMIT 1 dice “fai l’update solo sulla prima riga dell’insieme restituito”.
WHERE post_id=x dice “fai l’update solo sul record con post_id uguale a x”.
In breve, se l’UPDATE ritorna un insieme di record cosଠordinato: A, B, C, con LIMIT 1 l’operazione sarà eseguita solo su A. Se l’insieme è B, A, C, ad essere aggiornato sarà invece B.
Se tu ci metti UPDATE …. ORDER BY post_title LIMIT 1, per trovare il record aggiornato ti basterà ordinare la tabella sul campo post_title e prendere il primo record
edit: non sono sicuro, ma mi pare di ricordare che in assenza di una clausola ORDER BY i record vengano ordinati in base alla chiave primaria.
torejxPartecipanteSe volessi utilizzare l’UPDATE solo 1 un record.. come posso fare ?
UPDATE wp_posts SET post_content=REPLACE(post_content,’fotoalbum.ALICE.it’,’fotoalbum.VIRGILIO.it’) where post_id=x
dove x è l’id di un post qualsiasi (assicurati che sia un post il cui campo post_content contenga fotoalbum.ALICE.it).
ps: ho usato post_id ma non sono sicuro che il campo si chiami cosà¬.. Non ho sottomano phpmyadmin per controllare, magari dacci un’occhiata tu.
edit: sà¬, mi pare sia corretta anche quella che hai scritto tu, ma dopo devi localizzare qual è il record modificato.. Magari aggiungi, prima di limit, una clausola ORDER BY nomeCampo in modo da poter reperire il record modificato più facilmente.
torejxPartecipanteLe documentazioni usano esempi in cui racchiudono le stringhe tra apici singoli.. anch’io ho sempre usato apici singoli e non ho mai avuto problemi. Mi sembra strano che il problema sia quello, ma finché funziona……
Comunque, tanto per capire il problema, l’esempio che hai postato è giusto? Cioè la funzione replace tronca una parte del contenuto? (mi pare di capire che invece di VIRGILIO.it/v… scriva VIRGILIO.i…)
torejxPartecipanteSe la modifica riguarda solo una tabella, allora puoi esportarla da sola e lavorarci.
Non ho mai usato la funzione replace di mysql, ma mi pare sia corretta la tua query, solo che non capisco perchè ti tronca la stringa. Magari potresti postarci un record di wp_post (o eventualmente solo il campo post_content).
Ho provato comunque adesso a lanciare questa query per capire se posso individuare le occorrenze di “fotoalbum.alice.it”
SELECT post_content
FROM wp_posts
WHERE post_content LIKE %fotoalbum.alice.it%
LIMIT 0 , 30
%fotoalbum.alice.it% va tra apici.
Tieni anche conto delle maiuscole, perchè se la tua collation è case sensitive alice.it è diverso da ALICE.it
torejxPartecipanteQuando hai fatto Importa, hai importato un file di testo, con estensione .sql, probabilmente. E’ in quel file che devi cercare la riga 1064.
Un’altra cosa che ho dimenticato e che mi hai fatto venire in mente tu, è che la collation (il set di caratteri) deve essere lo stesso sia per il db esportato che per quello di destinazione.
Per importare il db come query è sufficiente andare sulla tab SQL di phpmyadmin ed incollare l’intero contenuto del file .sql.
Per quanto riguarda la modifica, io uso il trova/sostituisci di notepad++ quando devo cambiare tutti gli URL (per il passaggio da locale a remoto); nel tuo caso, dovendo sostituire solo alcuni indirizzi, non è meglio farlo a mano da phpmyadmin (se i record sono pochi) o con uno script ad hoc?
-
AutorePost