Home › Forum › Problemi Vari con WP › Nextgen gallery – permalink – home (problema)
-
AutorePost
-
-
21 Gennaio 2012 alle 16:38 #20435periploPartecipante
Buongiorno a tutti, è la prima volta che inoltro una richiesta,
ma ho provato a vedere se nel forum c’era qualcosa di simile e in effetti c’è,
ma niente per quanto riguarda il mio problema nello specifico, che vado ad esporre qui di seguito:
Il sito è di fotografia, per cui tutto ruota attorno alla NextGEN Gallery che trovo ottimo.
Nella Home page si visualizza immediatamente una gallery cosଠcome per diverse altre pagine.
Il sito è configurato in modo statico Pagina iniziale: “home” e Pagina articoli: “blog”-
Nel momento in cui vado a settare in “Impostazioni permalink”
qualsiasi tipo diverso da “Predefinito” es: “/%postname%/”
mi succede che cliccando nella pagina home sulla gallery: [Show picture list]
invece di linkare alla pagina delle miniature della gallery
mi porta direttamente alla pagina del blog…
restituendomi come link pagina: http://mionome.it/?show=gallery
invece di come dovrebbe essere: http://mionome.it/blog/
Il che è gia di per se molto starno.
Questo non succede per nessuna delle altre pagine che non sono la home.
Cioè nelle altre pagine dove le gallery hanno la stessa configurazione tutto funziona correttamente.
La richiesta è: come fare per visualizzare correttamente la pagina [Show picture list] senza andare a finire nel blog?
Indicazione tema usato: Twenty Ten 1.2
Non riesco a uscirne…
La versione di WP è la 3.2.1. e quella di NextGEN Gallery 1.9.1
Ma ho provato anche a creare un nuovo sito test senza nessun plugin che potrebbe interferire
con le versioni WP 3.3.1 e NextGEN Gallery 1.9.2
ma il risultato non cambia…
C’è qualcuno ha lo stesso problema o per caso lo ha già risolto
o che mi sappia dare un’indicazione su cosa poter fare?
-
21 Gennaio 2012 alle 21:22 #92267TittiModeratore
Un link al sito
-
22 Gennaio 2012 alle 0:27 #92277periploPartecipante
-
22 Gennaio 2012 alle 1:17 #92279Dudy_wpPartecipante
Ciao periplo,
Purtroppo è un problema delle nuove versioni del plugin. Per risolvere elimina il plugin da ftp, vai qui http://wordpress.org/extend/plugins/nextgen-gallery/download/ scarica la versione 1.7.3 (nella parte centrale della pagina sotto “Other versions) la decomprimi sul pc e la carichi via ftp al posto di quella che avevi. Poi entri nell’amministrazione di wordpress, vai nelle opzioni del plugin (gallery–>option) e ti chiederà di fare un aggiornamento del database, faglielo fare e poi tutto funzionerà perfettamente
-
22 Gennaio 2012 alle 1:37 #92281periploPartecipante
Grazie per la simultanea risposta.
Provo subito in test.
-
22 Gennaio 2012 alle 1:44 #92282Dudy_wpPartecipante
vedrai che funziona, ho provato
-
22 Gennaio 2012 alle 3:08 #92283periploPartecipante
Ho seguito alla lettera le tue indicazioni ma,
purtroppo non ho avuto nessun esito positivo.
Ho provato svuotando più volte la cache sia con Safari che con firefox e con chrome.
Ma continua a darmi lo stesso errore.
-
22 Gennaio 2012 alle 9:04 #92285TittiModeratore
Uso la versione 1.9.2 e non ha niente che non va. Passare a una versione cosଠvecchia poi non ha senso, quindi a mio parere ciò che hai fatto è inutile. Torna alla versione aggiornata perché il problema non è quello.
Dopo, prova a fare cosଠcome prima cosa: vai in Gallery–>Options–>General Options e spunta la casella “activate permalinks”, salva, poi in Impostazioni–>Permalink rigenera la struttura scelta cliccando semplicemente su salva le modifiche.
Pulisci la cache e guarda se è cambiato qualcosa.
-
22 Gennaio 2012 alle 10:23 #92288periploPartecipante
Ok !
Ho eseguito alla lettera amche la procedura di Titti.
Qualche cosa è successo (per lo meno adesso non linka più al blog). Forse siamo sulla strada buona…
Ma il link ora ristagna su se stesso e riporta sempre alla pagina “slideshow” (immagini).
-
22 Gennaio 2012 alle 10:55 #92293Dudy_wpPartecipante
In effetti avevo dimenticato questo passaggio, nelle mie prove dopo aver installato l’ultima versione, aver impostato i permalink come “/%postname%/” ed aver spuntato la casellina “activate permalinks” delle opzioni della gallery non funzionava lo stesso (anche se aveva cambiato il link come a te) quindi sono passato alla vecchia versione ed ha ripreso a funzionare.
-
22 Gennaio 2012 alle 10:55 #92294
-
22 Gennaio 2012 alle 10:56 #92295periploPartecipante
Credo di capire che c’è qualcosa che non va nei link, soffermando il mouse sul link,
Nel caso del sito in linea mi riporta ad un link non più esistente: (/test//wordpress/)
e mi visualizza questo indirizzo:
http://claudioravasi.it/test//wordpress/?page_id=323/nggallery/images
Mentre al limite dovrebbe essere:
http://claudioravasi.it/wordpress/?page_id=323/nggallery/images
Come nel caso di:
http://claudioravasi.it/editoria-pubblicita/architettura/nggallery/images
Ma non è neanche questo il problema perché nel sito di test dove non ci sono altri plugin (nessuno oltre a ngg-gallery)
il link è corretto eppure persiste lo stesso errore di ristagno.
Io credo che il problema reale piuttosto risieda nella parte “/?page_id=323/”
e qui non so che fare…
-
22 Gennaio 2012 alle 11:08 #92297Dudy_wpPartecipante
il link giusto sarebbe http://claudioravasi.it/editoria-pubblicita/architettura/nggallery/page-323/images/images/ comunque sul mio sito di test, ho appena provato ad aggiornare all’ultima versione ed ora anche a me da i link sbagliati in quel modo, ora provo a tornare alla vecchia versione…
-
22 Gennaio 2012 alle 11:14 #92299periploPartecipante
Come spiego all’inizio:
Il sito è configurato in modo statico Pagina iniziale: “home” e Pagina articoli: “blog”
Questo in “impostazioni lettura” con spuntata la casella “Una pagina statica (selezionata qui sotto)”.
Poi ho dato alla pagina Home Ordinamento “0”
e alla pagina Blog Ordinamento “6”
In “Impostazioni scrittura” Categoria predefinita articoli: “Blog” Formato articolo predefinito: “Standard” Categoria predefinita link: “Blogroll”
Nella home oltre a qualche righa di testo:
[nggallery id=1]
E non so cos’altro dirti…
Se vuoi chiedermi nello specifico…
Dimenticavo:
Opzioni generali
Percorso galleria “wp-content/gallery/” Questo é il percorso predefinito per tutte le gallerie
-
22 Gennaio 2012 alle 11:17 #92300Dudy_wpPartecipante
Ho impostato il mio blog di prova allo stesso modo, ed infatti ho avuto lo stesso problema, ora tornando alla versione 1.7.3 ho nuovamente risolto: i link si sono risistemati quindi non so se non c’entri nulla, ma a me funziona
-
22 Gennaio 2012 alle 11:25 #92302periploPartecipante
Ho impostato il mio blog di prova allo stesso modo, ed infatti ho avuto lo stesso problema, ora tornando alla versione 1.7.3 ho nuovamente risolto: i link si sono risistemati quindi non so se non c’entri nulla, ma a me funziona
Non entro nel merito, e non desidero che si scateni una lotta tra TITANI però ho provato come mi avevi detto ma, non ho ottenuto risultati …
-
22 Gennaio 2012 alle 11:28 #92304Dudy_wpPartecipante
Forse dipende dal fatto che non avevi attivato (nella nuova versione) l’opzione “activate permalink” prima di passare alla vecchia, come invece avevo fatto io, potresti provare ora che l’hai attivata e vedere se ottieni i miei stessi risultati. Comunque nessuna “guerra tra titani” stavo solo esponendo i fatti (cioè che cosଠa me ha funzionato) poi se c’entri o no qualcosa credo che sinceramente non interessi a nessuno se serve a risolvere il problema
-
22 Gennaio 2012 alle 11:35 #92307periploPartecipante
Provo ad aspettare la risposta di Titti che starà facendo delle valutazioni in funzione delle mie risposte
dopo di che proverò di nuovo la tua soluzione con con i permalink attivati…
-
22 Gennaio 2012 alle 11:38 #92309TittiModeratore
Titti, che non è titana e di certo non va in guerra, sta cucinando per quattro persone, e l’unica cosa che ha fatto in tempo a valutare è che il percorso dovrebbe includere /gallery/, cartella creata dal plugin nella stessa directory dei plugin e dei temi , come appunto dicono le opzioni generali.
-
22 Gennaio 2012 alle 11:40 #92310Dudy_wpPartecipante
Se può servire nel cercare di capire qualcosa, i link corretti (in home) a me sono cosଠ/nggallery/page-155/slideshow mentre a periplo sembrano essere /nggallery/page-323/images/images/
-
22 Gennaio 2012 alle 11:43 #92312periploPartecipante
Scusa Titti forse ti riferivi a questa voce:
Disattiva link alla pagina della galleria (qui è attivo il segno di spunta )L’album non sarà collegato alla sotto-pagina di una galleria. La galleria verrà mostrata nella stessa pagina.
-
22 Gennaio 2012 alle 11:58 #92315periploPartecipante
“TITANI” Era scritto in bold ma era evidentemente un modo sarcastico per dire che Io non sono cosଠesperto e mi affidavo alla vostra conoscenza sicuramente superiore.
Ad ogni modo ho provato nuovamente a installare sul sito di test la versione indicatami da “Dudy_wp” ed effettivamente con i permalink attivati adesso funziona.
E mi restituisce un link come quello di “Dudy_wp”
Mi assento anch’io per problemi di nutrizione…
-
22 Gennaio 2012 alle 11:58 #92316TittiModeratore
Sଠesatto, ma ho provato a disattivare/attivare quella funzione (su una pagina con galleria imp. come landing page), ma non cambia nulla
-
22 Gennaio 2012 alle 12:16 #92317periploPartecipante
àˆ chiaro a questo punto che ci deve essere una qualche incopatibilità tra le due ultime versioni di WP e ngg-ggallery…
Speriamo che uno dei due risolva a breve.
Non so come fare, in questi casi bisogna darne notizia di questo piccolo “bug” agli “Autori” ?
Vi ringrazio entrambi e vi auguro una buona Domenica e senza intoppi…
-
22 Gennaio 2012 alle 12:29 #92318TittiModeratore
Non c’è incompatibilità tra l’ultima versione di WP e l’ultima di Nextgen, io come altri la usiamo e funziona perfettamente.
Semmai è possibile che ci sia un bug rispetto alla questione di impostare la galleria su una landing page e far aprire le immagini nella stessa pagina, ma quello che mi sembra strano è che nessuno, dalla vers. posteriore alla 1.7.3 a quella odierna, tra i moltissimi utilizzatori di Nextgen (anche se bisogna restringere il campo a quelli che come te hanno inserito la galleria in una home page statica), non abbia riscontrato questo problema.
-
22 Gennaio 2012 alle 12:59 #92319Dudy_wpPartecipante
In realtà guardando in giro ho notato che il problema è ben noto, qualcuno addirittura ha trovato una soluzione e l’ha mandata agli autori insieme alla descrizione del bug. Credo che risolveranno la cosa con la prossima versione quindi, nel frattempo a meno che non si voglia mettere mano al codice del plugin, la soluzione più semplice per i meno esperti è attivare l’opzione dei permalink e tornare alla 1.7.3 (ovviamente nel caso si fosse impostato il tutto come ha fatto periplo)
-
22 Gennaio 2012 alle 13:29 #92323San PietroburgoPartecipante
..Purtroppo è un problema delle nuove versioni del plugin. Per risolvere elimina il plugin….scarica la versione 1.7.3
Premesso che NextGen Gallery non ha problemi di nessun tipo e funziona benissimo, e su questo aspetto sono disposto a qulsiasi prova sul campo.
Suggerire di ritornare ad una versione datata comporta il rischio di avere diversi buchi di sicurezza:
La 1.8.4 risolve un Bugfix, fixed security vulnerability.
La 1.9.1 ne risolve due di Bugfix, security hardness for untrusted filenames/meta data e inoltre, fixed security vulnerability.
I problemi con i permalink erano stati risolti con la versione 1.8.0:
Bugfix : Permalink didn’t work in combination with album & imagebrowser.
Basterebbe leggere qui prima di fare alla cieca:
http://wordpress.org/extend/plugins/nextgen-gallery/changelog/
Allora non vedo motivo di sostituire l’ultima versione stabile con una datata e che aveva alcuni bugs, oltre che di sicurezza anche nella funzionalità .
Consigliare di fare un downgrade di WordPress o di un plugin non serve a niente. I problemi che si riscontrano andrebbero risolti in altri modi, e senza prendere “alla lettera” suggerimenti come in questo caso.
@ periplo
Vedo che il tuo sito utilizza un plugin che blocca il click con il tasto destro del mouse e le prove le stai facendo con questa funzione attivata. La prima cosa che invece andrebbe fatta è proprio quella di disattivare tutti i plugins, specie quelli che interagiscono sulle immagini.
-
22 Gennaio 2012 alle 13:49 #92324periploPartecipante
Vedo che il tuo sito utilizza un plugin che blocca il click con il tasto destro del mouse e le prove le stai facendo con questa funzione attivata. La prima cosa che invece andrebbe fatta è proprio quella di disattivare tutti i plugins, specie quelli che interagiscono sulle immagini.
Vero questo accade nellla versione attualmente in linea,
ma come avevo detto in un precedente post:
“Ma non è neanche questo il problema perché nel sito di test dove non ci sono altri plugin (NESSUNO oltre a ngg-gallery)”
Installazione creata ex novo con le ultime versioni di WP e di ngg-gallery, per cercare di risolvere questo problema. Chiaramente non è nella directory primaria (se questo può significare qualcosa)…
Accade esattamente la stessa cosa…
E sono daccordo anch’io che questo non è esattamente il modo di risolvere il problema, ma caso mai di aggirare un’ostacolo a breve termine con il chiaro intento di approfondire la questione.
Ma certamente non da un neofita come me che è alle prime armi co WP. (Certo che avevo letto il “changelog”).
Se puoi essere ulteriormente di aiuto, io sono disposto ad andare fino in fondo e fare tutte le prove che mi vorrai dettare.
Credo anche che in questi casi dovrebbee intervenire un’amministratore, (certo che non lo si può pretendere di Domenica) ma la mia non è una cosa Urgentissima.
-
22 Gennaio 2012 alle 14:08 #92325Dudy_wpPartecipante
Premesso che NextGen Gallery non ha problemi di nessun tipo e funziona benissimo, e su questo aspetto sono disposto a qulsiasi prova sul campo.
Fai le tue prove sul campo, rileggi la discussione, ricrea le condizioni del sito di periplo e poi ci dici se siamo noi due gli unici stupidi che non sanno far funzionare lo stesso plugin su due host diversi con installazioni di wordpress pulite oppure questo plugin, nella specifica situazione di periplo presenta realmente un bug e non “funziona benissimo”
Consigliare di fare un downgrade di WordPress o di un plugin non serve a niente. I problemi che si riscontrano andrebbero risolti in altri modi, e senza prendere “alla lettera” suggerimenti come in questo caso.
Intanto in questo specifico caso il downgrade serve a risolvere il problema presentato, quindi dire che “non serve a niente” non è vero. Se poi vogliamo dire che non è la soluzione migliore, sono d’accordissimo, ma rimane pur sempre una soluzione.
Non voglio essere polemico ne altro ma almeno prima di venire qui a dire in sostanza che “il plugin funziona benissimo, siete voi che siete degli incapaci, cosଠcome l’inutile soluzione che avete trovato” (o almeno questo ho evinto dal tuo intervento) almeno perdi del tempo a trovare una soluzione come abbiamo fatto noi, e proponi una soluzione migliore
-
22 Gennaio 2012 alle 14:10 #92326periploPartecipante
Per Titti
Non mi è chiaro il concetto di “impostare la galleria su una landing page“
Non conosco l’inglese tecnico ma tradotto da google letteralmente “pagina di destinazione”.
Ma non ne capisco esattamente il senso perché mi sembra che il plugin supporti tranquillamente questa “opzione”
come nella seconda pagina ( vedi es: http://claudioravasi.it/editoria-pubblicita/architettura/nggallery/slideshow/ )
e tutte le altre del sito che funzionano correttamente.
-
22 Gennaio 2012 alle 14:26 #92328TittiModeratore
Ho provato con la situazione di periplo e anche a me non funziona, l’unica differenza è che la pagina va in 404, non rimane in home.
@periplo Ho usato impropriamente “landing” al posto di home page ma non ci badare, è irrilevante nella questione perché mi riferivo alla pagina statica in cui tu hai messo la galleria come presentazione.
Fossi in te farei cosà¬, in attesa della soluzione del bug, tenendo in ogni caso la versione di Nextgen aggiornata:
Se in home t’interessa di più vedere le miniature delle immagini, nella pagina gallery->options->gallery disattiva “integrate slideshow”. Poi metti “show first” su Thumbnails.
Nella pagina “effetti” attiva shutter.
Cosଠfacendo vedrai le immagini tutte in home e cliccandoci sopra s’aprirà l’effetto dal quale si potranno scorrere le immagini.
Un altro consiglio è di inserire nella pagina Eventi-Ritratti l’album delle gallerie presenti nelle sotto-pagine per non lasciarla vuota, e anche in questo caso metterei come prima impostazione di mostrare le immagini, poi fai tu, ma cosଠalmeno si vedono le foto con un colpo d’occhio, mentre lo slideshow ci mette tempo a caricare
-
22 Gennaio 2012 alle 14:40 #92329periploPartecipante
Grazie per la chiarificazione, penso anch’io che ci sia qualcosa che limita la home come pagina statica.
Il sito non è mio personale anche se sto cercando di svilupparlo al meglio delle mie risorse
in forma gratuita, ma è di un carissimo amico, compagno di scuola di fotografia.
A cui avevo proposto una soluzione analoga, e diversa ma di cui non era entusiasta.
E a questo punto preferisce lasciarlo con il “bug” ma con lo slideshow visibille.
Comunque apprezzo molto la tua genttilezza nel propormi “soluzioni diverse”.
-
22 Gennaio 2012 alle 15:04 #92330periploPartecipante
Un altro consiglio è di inserire nella pagina Eventi-Ritratti l’album delle gallerie presenti nelle sotto-pagine per non lasciarla vuota, e anche in questo caso metterei come prima impostazione di mostrare le immagini, poi fai tu, ma cosଠalmeno si vedono le foto con un colpo d’occhio, mentre lo slideshow ci mette tempo a caricare
Hai ragione mi ero dimenticato…
Qui avevo trovato un plugin “Ambrosite Unlink Parent Pages”
(per il momento è disattivato per trovare una soluzione a ngg-gallery, ma che adesso riattiverò visto che non confligge)
Questo plugin mi permette di far saltare la pagina primaria e quindi non ho questa necessità .
Ora è attivo.
Anche qui ho un piccolo problema legato al Breadcrumb che tornando indietro mi fa vedere lo stesso la pagina primaria in questione (ma penso che a questo punto per risolvere eliminerò il Breadcrumb anche se mi spiace).
Trovo comunque preziosi i tuoi consigli…
-
22 Gennaio 2012 alle 16:13 #92333San PietroburgoPartecipante
Per rispondere allo pseudotecnico:
Il fatto di dover installare in locale WordPress e il plugin oggi non è possibile, non son davanti alla macchina che utilizziamo per queste cose; quindi rimandiamo a domani.
Ma che tu ci creda o no, non si dovrebbe mai suggerire di passare ad una versione cosଠdatata di un plugin o dello stesso CMS; può succedere con i plugin o con i temi, ma solamente quando (alle volte è capitato) la versione nuova presenta un difetto, si torna a quella precedente, non ad un paio d’anni indietro!
Per chi cerca soluzioni:
Ammesso e concesso che non è detto NextGenGallery lavori anche quando si sceglie di posizionare in home page una pagina statica, sarei pronto a scommettere che con google non è difficile trovar qualcuno che ha già affrontato e risolto il problema.
Per fare un esempio, pensavo alla possibilità di utilizzare un redirect, ma come ho detto al momento non sono in grado di testarlo.
Sarebbe a dire che se la url che deve aprire esiste ed è tipo nomesitopuntoqualcosa/nggallery/images, ma lui va altrove, non dovrebbe essere difficile riportarlo nella “corretta via” usando un redirect dalla url della pagina sbagliata.
-
22 Gennaio 2012 alle 16:26 #92335Dudy_wpPartecipante
Per rispondere allo pseudotecnico
Non rispondo alle provocazioni ma ci tengo a precisare che è scortese da parte tua darmi dello “pseudotecnico” quando non mi sono mai qualificato come tecnico o pseudo tale.
In ogni caso spero che domani tu possa trovare una soluzione migliore a periplo, visto che fino ad ora non hai fatto molto se non darmi (più o meno velatamente) dell’incompetente. Buonaserata
-
22 Gennaio 2012 alle 16:50 #92336San PietroburgoPartecipante
Se vado dal meccanico per un problema con l’ultimo modello della 600, lui mi dice che lo spinterogeno è rotto e decide di montarci quello della 600 che usava suo nonno… Per me quello è uno pseudomeccanico; altri termini con cui identificarlo non li ravviso.
Tornando al problema.
Dalla home page del sito di Periplo vedo il sorgente dire che il collegamento a cui mi porta il link appena sopra allo slideshow chiamato [immagini] è questo:
/test//wordpress/?page_id=323/nggallery/images
Ovvio che quell’indirizzo, tra l’altro con due segni “//”, non può esistere e quindi, in qualche modo, vengo redirezionato in home page.
E per me ci sono errori di installazione del CMS. Sarebbe a dire che innanzi tutto è da capire in che directory è stato installato WordPress… Li vedo /test/ e poi /wordpress/ ma non comprendo il senso di quei due archivi.
-
22 Gennaio 2012 alle 17:02 #92337San PietroburgoPartecipante
@edit
Soluzione o quasi (non ho la macchina con cui sperimentare), ma voi potete farlo.
if (function_exists("nggShowImageBrowser"))
{ echo nggShowImageBrowser($value); }
Dove
$value
è il numero ID della gallery che decidi debba stare in home page.
Come l’ho trovato? Spiando questo:
http://www.nofilmphotography.com/
E se funziona a lui deve andare anche a voi.
-
22 Gennaio 2012 alle 17:20 #92338San PietroburgoPartecipante
@edit
Ho trovato anche questo sito che spiega molte funzionalità di NGG, linko la pagina che riguarda questo argomento:
http://members.photocrati.com/nextgen-how-to-set-up-your-homepage-slideshow/
-
22 Gennaio 2012 alle 17:39 #92342TittiModeratore
@periplo Per quanto riguarda il rendere non cliccabile la pagina genitore lo puoi fare anche senza plugin, usando il custom menu, se t’interessa te lo spiegherò, è molto semplice. La cosa negativa è che se clicchi sul nome di quella pagina s’apre il pop-up che dice “indirizzo non raggiungibile” o qualcosa del genere, e poi non so come si comporta il link del breadcrumb, ma direi che trattandosi di un link non nel menu si comporta uguale, cioè s’apre. La cosa positiva è che avresti un plugin in meno.
Comunque, mi piacciono i breadcrumb e li trovo utili, ma in questo caso, trattandosi di sotto-pagine (e quindi poco annidate), e per il fatto che tu stesso vuoi che l’effetto sia come se la pagina genitore non ci fosse, è quasi un controsenso usare il breadcrumb nelle pagine.
@SanPietroburgo temo però che con quel metodo non si possano vedere anche le immagini (parlo di photocrati)
@Dudy_wp Io non ho trovato niente che parlasse della risoluzione del “bug-forse-non-bug” (solo un paio di domande non risposte sul supporto di WP, relative alla mancata paginazione). La cosa più recente ma senza soluzione che ho trovato e che ci va vicino è questa.
Per curiosità , con comodo puoi fornire il link alla soluzione che dicevi?
-
22 Gennaio 2012 alle 18:08 #92348periploPartecipante
Scusa ma il “Dove” non è molto chiaro …
Se vuoi essere più specifico te ne sarei grato.
Se vedi un mio post precedente “/test//wordpress/?page_id=323/nggallery/images”
credo che sia un refuso che si porta dietro da un link precedente.
“Credo di capire che c’è qualcosa che non va nei link, soffermando il mouse sul link,
Nel caso del sito in linea mi riporta ad un link non più esistente: (/test//wordpress/)
e mi visualizza questo indirizzo: ecc. ecc.”
Posted: 7 ore # Quote –
àˆ la considerazione da me fatta, e non riguarda questo problema.
Perchè le prove le faccio anche in un’altra installazione.
-
22 Gennaio 2012 alle 19:57 #92354San PietroburgoPartecipante
Se il sito online era in ordine si riusciva a capirci qualcosa utilizzando gli strumenti (firebug). Cosଠrimane difficile.
Il “dove” è riferito alla parte finale del codice (ripresa anche appena sotto alla parola dove) chiamiamolo “dollarvalue” e quindi leggasi: Dove dollarvalue è il numero ID della gallery che decidi debba stare in home page.
-
22 Gennaio 2012 alle 20:08 #92356TittiModeratore
@SanPietroburgo Il codice che hai postato si trova qui, e per quanto riguarda il sito che hai linkato (http://www.nofilmphotography.com/) attualmente non usa Nextgen perché ciò che mostra in home non è roba di Nextgen, ma è questo tema
Il codice l’ho provato e a me non funziona e poi il tipo parla di inserire la galleria nell’home page dinamica, credo (ma senza articolo)
Non è che non funziona, dà errore di sintassi (non per colpa delle virgolette, ho editato a mano direttamente nel file).
-
22 Gennaio 2012 alle 20:43 #92359TittiModeratore
L’errore di sintassi è causato da $, m’ero sbagliata a lasciarlo
Togliendolo e usando quindi questo codice:
<?php
if (function_exists(â€nggShowGalleryâ€))
{ echo nggShowGallery(5928); }
?>
Non dà errori ma non va
questo invece:
<?php
if (function_exists(“nggShowImageBrowser”))
{echo nggShowImageBrowser(5928);}
?>
Dà una serie di warning e non va
Prove fatte usando Twenty Ten (tema usato da periplo), nel file page.php
-
22 Gennaio 2012 alle 22:00 #92360Dudy_wpPartecipante
Ciao Titti,
Purtroppo non riesco più a trovare la pagina, l’ho cercata per più di mezz’ora senza successo comunque osservando il codice dell’ultima versione (1.9.2) del plugin è chiaro che l’autore è a conoscenza del problema, in quanto ha appuntato (proprio il caso di periplo):
//TODO: For static home pages generate the link to the selected page, still doesn’t work
(Alla faccia degli “pseduotecnici” che sostengono che il plugin funziona benissimo, o non è studiato per essere usato come fatto da periplo)
Quindi almeno che qui non ci sia qualcuno che abbia tempo e voglia di guardarsi tutta la classe rewrite, trovare una soluzione funzionante al problema e magari segnalarla oltre che a periplo, anche all’autore del plugin… non credo ci sia molto da fare.
Ovviamente da buon pseudotecnico ho trovato una soluzione che non comporta l’installazione della vecchia versione 1.7.3 bensଠsolo l’utilizzo del codice necessario alla giusta riscrittura delle url nella nuova versione, ma sicuramente i tecnici veri avranno una soluzione migliore quindi mi astengo dal dilungarmi nei dettagli.
p.s. Comunque è un problema noto in quanto presente in parecchie versioni precedenti, perciò dicevo che è noto, in rete si trovano parecchie richieste simili
-
22 Gennaio 2012 alle 22:40 #92362TittiModeratore
Sଠgrazie Dudy ho visto, è questo file
-
22 Gennaio 2012 alle 22:48 #92363Dudy_wpPartecipante
Si esatto
-
23 Gennaio 2012 alle 2:27 #92367periploPartecipante
Se il sito online era in ordine si riusciva a capirci qualcosa …
@San Pietroburgo
Ho rimesso in ordine la home page del sito in linea e ricreato la gallery ex novo.
Adesso i link sono corretti, puoi fare le prove con Firebug…
Visto i commenti di:
Dudy_wp “Quindi almeno che qui non ci sia qualcuno che abbia tempo e voglia di guardarsi tutta la classe rewrite…”
e di
Titti “Dà una serie di warning e non va”
La vedo dura…
Comunque resto in attesa (senza impegno).
-
23 Gennaio 2012 alle 7:16 #92369TittiModeratore
Immagino non serva trasferire unicamente il file /lib/rewrite.php della 1.7.3 al posto di quello dell’ultima versione, se fosse cosଠsemplice Rabe avrebbe già risolto. Se Dudy ha una soluzione di codice momentanea aspettiamo di provarla.
A me l’unica cosa che viene in mente ora non è una soluzione ma un ripiego, cioè nascondere il link “immagini” nella home, almeno se non c’è nessuno lo cliccherà , e si tratta solo della galleria di presentazione, quindi potrebbe stare anche meglio senza nessun link, soprattutto senza un link che non funziona
Non puoi toglierlo dalle opzioni perché andrebbe via ovunque anche dove funziona, idem con il CSS, a meno che non si faccia un’esclusione solo per quella pagina là¬, ma è già più macchinoso e poi dovresti ricordare di togliere il codice prima o poi o, al contrario, di aggiungerlo nei successivi aggiornamenti se il problema non sarà ancora risolto.
Quindi io al momento fossi in te farei cosà¬, nella pagina statica di presentazione toglierei lo shortcode della galleria e metterei questo: [slideshow id=1], cosଠsi vedrà solo lo slideshow, e questa è una cosa che potrai togliere e mettere come vorrai perché l’avrai sempre sott’occhio.
-
23 Gennaio 2012 alle 10:16 #92373Dudy_wpPartecipante
Immagino non serva trasferire unicamente il file /lib/rewrite.php della 1.7.3 al posto di quello dell’ultima versione, se fosse cosଠsemplice Rabe avrebbe già risolto. Se Dudy ha una soluzione di codice momentanea aspettiamo di provarla.
Invece è esattamente cosଠsemplice
-
23 Gennaio 2012 alle 10:37 #92377periploPartecipante
“[slideshow id=1]”
Mi sembra un buon compromesso sei geniale.
Lo farò senzaltro, (non ora, serve per testare) meglio aspettare le conclusioni di questo thread.
file /lib/rewrite.php della 1.7.3
Avevo gia pensato ad una soluzione simile, ma mi fa un po paura andare a miscelare le due versioni.
Si potrebbero perdere delle funzionalità ?
Vado a documentarmi, in che cosa cambiano i 2 documenti.
Tu hai gia provato?
-
23 Gennaio 2012 alle 10:43 #92378Dudy_wpPartecipante
Già provato e controllato, puoi farlo tranquillamente anche tu, tanto in caso di qualcosa ti basta rimettere il file della nuova versione
-
23 Gennaio 2012 alle 11:05 #92380
-
23 Gennaio 2012 alle 11:08 #92381Dudy_wpPartecipante
A differenza della precedente soluzione, questa mi sembra ottima in quanto la sostituzione della classe che genera i permalink non comporta alcun problema di sicurezza. Cosa ne pensi Titti?
-
23 Gennaio 2012 alle 11:32 #92383TittiModeratore
A naso sembra un buon compromesso. Io non programmo quindi non posso risponderti in “piena coscienza”, ma anche secondo me la sostituzione di un file di rewrite non dovrebbe dare problemi di sicurezza.
Rimango perplessa dal perché Rabe abbia pesantemente modificato il file la prima volta (ci sarà stato un motivo, o no?), e perché non l’abbia in qualche modo ripristinato o aggiustato nelle versioni a seguire, semplice dimenticanza? Poche persone mettono la galleria in una home statica? Non so.
L’ultimo aggiornamento di Nextgen è di pochi giorni fa, perché non ha corretto il bug se la soluzione è a portata di mano, e perché non l’ha fatto in due anni?
Sono diffidente per natura , bisognerà quindi tenere controllata la cosa. Io l’ho testato solo in un sito di prova, non in produzione. Magari chi lo usa potrà accorgersi se nel tempo darà qualche problema.
-
23 Gennaio 2012 alle 11:55 #92384Dudy_wpPartecipante
Non saprei dirti, se guardi i changelog delle versioni, in quella successiva alla 1.7.4 …
NEW : Full rework of permalink url structure
Bugfix : Permalink didn’t work in combination with album & imagebrowser
La prima volta potrebbe averlo modificato pesantemente sia per risolvere il bug riportato, sia per migliorare l’efficienza della classe e sia per adattare la generazione dei permalink alle nuove funzioni delle nuove versioni di wordpress, anche se quest’ultima opzione la escluderei perché altrimenti non dovrebbe funzionare la classe rewrite della 1.7.3
Secondo me non è stato corretto il problema nel’ultima versione perché c’erano altre priorità , o perché non ha trovato una soluzione efficiente e funzionante con la nuova classe. L’importante però è che come hai visto l’appunto sul problema c’è, quindi io credo che sarà risolto con la 1.9.3
-
23 Gennaio 2012 alle 11:57 #92385periploPartecipante
Lascio immutato per il momento il sito in linea anche in attesa di un riscontro da parte di San Pietroburgo
che oggi dovrebbe aver trovato gli “strumenti” che cercava.
Ho fatto anch’io la prova sul sito di test, e funziona senza problemi.
La terrò come risorsa finale.
Ho provato a guardare all’interno di “rewrite.php”
Ma come aveva già detto Dudy_wp l’autore ne è a conoscenza e credo ci stia lavorando.
“//TODO: For static home pages generate the link to the selected page, still doesn’t work”
Che cosa posso dire …
Grazie davvero di cuore, credo che più di cosà¬, per solidarietà tra utenti di comune CMS non si possa chiedere…
Per il vostro tempo e anche per la Domenica passata in vostra compagnia.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.