Risposte nei forum create
-
AutorePost
-
marleyPartecipante
lallart ho il tuo stesso problema, potresti dirmi quali plugin hai installato per risolvere?
Dunque, non c’è bisogno di nessun plug-in
Vai su
GESTIONE NETWORK -> SITI -> MODIFICA -> IMPOSTAZIONI -> scendi scendi scendi, fino a trovare PERMALINK STRUCTURE
modifica la struttura a tuo piacimento,
ti consiglio di NON eliminare la dicitura blog (altrimenti non trova l’articolo), ma di mettere qualche altra parola… io ad esempio ho usato :
/sw/%postname%/
Vai poi sul tuo sito,
IMPOSTAZIONI -> PERMALINK
sarà selezionata STRUTTURA PERSONALIZZATA con ancora la dicitura BLOG, non ti preoccupare, infatti se vedi il sito online sarà tutto come hai scelto te !
marleyPartecipanteSicuro di non aver installato un plugin per la gestione dei ruoli?
Nono cerco di ridurre al minimo i plug-in..
Comunque, quelli che installato sono:
Login With Ajax
Hide This Part
ALO EasyMail Newsletter
Contact Form 7
WP User Frontend
marleyPartecipante1° I temi di default non si modificano mai ma si deve usare un child theme
2° I file pdf si possono caricare senza bisogno di nulla
3° Per i file rar e zip la soluzione te l’ha data già wolly, prova ad inserire nel function.php del child theme questa funzione
function my_myme_types($mime_types){
$mime_types = array(
‘rar’ => ‘application/rar’,
‘zip’ => ‘application/zip’
);
return $mime_types;
}
add_filter(‘upload_mimes’, ‘my_myme_types’, 1, 1);
Innanzitutto grazie elmanisero,
allora, utilizzo il child, ma non mi è chiara una cosa…
questo codice se lo copio cosଠcom’è all’interno del mio file functions.php del tema child non succede nulla…. ho provato con e senza <?php
l’ho chiamato function e functionS.php ma nulla…..
un’ultima cosa… se sblocco l’upload di zip e rar, non vado comunque incontro all’upload di virus? o inserendo questa funzione fa un controllo prima?
marleyPartecipanteLa soluzione che hai scelto NON è sicura, permette di caricare qualsiasi cosa, anche virus.
Ah…. Ma penso che non posso ovviare a questo problema visto che l’utente (collaboratore) deve necessariamente caricare file zip negli articoli
Oppure c’è una soluzione?
marleyPartecipanteOk, ce l’ho fatta!
Vi rendo partecipi sulla soluzione, per caso qualcun altro abbia lo stesso problema.
Ho semplicemente inserito nel wp-config.php questa stringa:
define('ALLOW_UNFILTERED_UPLOADS', true);
Grazie comunque a wollymarleyPartecipanteGrazie! Velocissimo ! mi era sfuggito questo tipo di ricerca, infatti ora sono andato a vedere come ricerca “media library” e mi escono risultati simili
Ma comunque non riesco, forse perché non mi è chiaro dove posizionarlo;
Cioè, all’inizio dice di copiare il codice nel functions.php del tema, ok, (uso twentyten)ma mi da errore di sintassi… dove debbo posizionarlo? all’inizio, alla fine, in mezzo (ci ho provato, ma mi da errore)
Stessa cosa questo link:
http://sjoerdkoelewijn.nl/2012/10/disable-file-types-in-wordpress/
non mi dice dove inserire il codice… mi potresti aiutare?
Intanto ho trovato questo plugin “WP-Filebase” ma se riuscissi a risolverlo tramite codice e senza plug in
marleyPartecipanteCredo che basti avere
Server Linux
Database MySql
marleyPartecipanteGrazie Titti per la risposta, ma ho appunto cercato nel forum ed ho trovato la discussione che ho linkato…
Ho anche segnalato con quale template ho difficoltà …. Non so cosa ho mancato, se potresti darmi una mano te ne sarò grato.
Grazie di nuovo.
-
AutorePost