Home › Forum › Plugin e temi di WP › Guestbook: numeri di post per pagina
-
AutorePost
-
-
12 Gennaio 2007 alle 11:43 #2927MrBohPartecipante
Salve
volevo chiedervi com’è possibile nel guestbook illustrato nel wiki fare in modo di visualizzarlo diviso per pagine, con un totale ad esempio di 20 messaggi per pagina.
grazie mille
MrBoh
-
14 Gennaio 2007 alle 23:42 #42845RiccardoPartecipante
Ciao, non so darti una mano ma ho visto il tuo guestbook e mi è piaciuto, potresti darmi il link diretto per scaricare il plugin? Su wiki non ho trovato niente.
Grazie 1000
-
15 Gennaio 2007 alle 8:08 #42848FreeplePartecipante
Ciao MrBoh!
Potresti usare Paged Comments Plugin ed otterresti lo stesso risultato per tutti i Commenti in Articoli e Pagine.
Leggi anche questo:
http://www.qingbo.org/?p=54&cp=all
Ti potrebbe tornare utile nel caso volessi creare il Commento ad un Commento …
A presto, ciao!
-
1 Febbraio 2007 alle 15:46 #43200MrBohPartecipante
Salve
ho scaricato e uplodato i file il plugin che mi avete segnalato, l’ho abilitato sul mio wordpress, ho anche inserito le due righe:
RewriteRule ^(.+/)comment-page-([0-9]+)/?$ $1?cp=$2 [QSA,L]
RewriteRule ^(.+/)all-comments/?$ $1?cp=all [QSA,L]
che sul sito dicevano di aggiungere…
ma sinceramente mi sorge un dubbio… il mio guestbbok adesso dove è situato?
io ho provato ad aprirlo a questo indirizzo:
nomesito/wordpress/wp-content/plugins/paged-comments.php
che sarebbe dove è localizzato il file paged-comments.php ma mi restituisce questo errore:
Fatal error: Call to undefined function: add_action() in /web/htdocs/www.u2bad.com/home/wordpress/wp-content/plugins/paged-comments.php on line 47
che mi rimanda a questa riga del file segnalato:
add_action(‘template_redirect’, ‘paged_comments_alter_source’);
sinceramente sto un pochino on palla a questo punto.
ciao e Grazie
MrBoh
-
1 Febbraio 2007 alle 16:43 #43201FreeplePartecipante
Ciao MrBoh!
Non devi puntare a paged-comments.php bensଠalla Pagina di sempre allinterno della quale avrai inserito il codice di richiamo per “paged-comments.php” che gestiscie solo i Commenti e loro impaginazione.
Il codice da inserire è:
paged_comments_template();
Fammi sapere, ciao!
-
2 Febbraio 2007 alle 7:09 #43207MrBohPartecipante
Ciao
rieccomi
ho aggiunto la riga
<?php paged_comments_template(); ?>
all’interno del file index.php realtivo al tema da me usato in questo modo
<div class="post">
<?php require('post.php'); ?>
<?php comments_template(); // Get wp-comments.php template ?>
<?php ajax_comments_link(); ?>
<?php ajax_comments_div(); ?>
<?php paged_comments_template(); ?>
</div>
ma non succede nulla, l’unico risultato rilevante è che quando attivo il plugin gli articoli e le pagine non vengono trovate, e mi viene segnalato che non esiste nessuna pagina o articolo, cosa però presente nella home page del blog.
spiego anche che io ho installato i seguenti plugin:
– Inline Ajax Comments
– Fuzzy Recent Comments
– Fuzzy Recent Posts
Sinceramente era da un bel po’ che non mettevo mano al blog e diciamo che la ruggine si fa sentire…
ciao e grazie
MrBoh
-
2 Febbraio 2007 alle 8:42 #43209FreeplePartecipante
Ciao MrBoh!
Il codice che ti ho segnalato va collocato nella Pagina template che gestiscie il libro degli ospiti come in qualsiasi altro file di Pagina o nel file single.php, ma non certamente nell’index.php.
Inline Ajax Comments è un Plug-In veramente bello, ma la convivenza dei due è illogica. Sono due diversi modi di proporre i contenuti. Comunque sia vale ciò che ti ho detto nel primo paragrafo.
A presto, ciao!
-
2 Febbraio 2007 alle 13:42 #43219MrBohPartecipante
ciao e grazie freeple
ho disabilitato Ajax e corretto, adesso va tutto alla grande e credo sia venuto anche bene apportando anche qualche piccolissima modifica al codice del plugin.
adesso però mi chiedevo, siccome io ho insierito il guestbook come un nuovo articolo, è possibili eliminare solo in questo articolo la data?
per rendere l’idea, ecco il link al guestbook:
io vorrei poter togliere la data in alto a sinistra, e se possibile le indicazioni sotto il titolo “GUESTBOOK”.
ciao e grazie
MrBoh
-
2 Febbraio 2007 alle 15:33 #43224FreeplePartecipante
Ciao MrBoh!
Il GuestBook non lo devi realizzare tremite Articolo o Post, ma deve essere una Pagina che avrà un suo specifico Template con o senza tutto cio che vuoi …
A presto, ciao!
-
2 Febbraio 2007 alle 20:31 #43236MrBohPartecipante
Ciao
scusa ma quindi allora, invece di inserirlo in “scrivi articolo” devo inserirlo quando faccio “scrivi pagina” giusto?
Ma qui nella sezione “temlpate” a destra ho solo “template standard”, come faccio a crearmi un nuovo template mettendo o eliminando ciò che voglio?
ciao e grazie
MrBoh
-
2 Febbraio 2007 alle 20:34 #43237MrBohPartecipante
Scusa mi leggo prima il Wiki sulle pagine poi eventualmente torno qui se sono in difficoltà .
-
2 Febbraio 2007 alle 22:20 #43239MrBohPartecipante
OK, fatto, ho creato un template guestbook ed adesso va…
però a questo punto se proprio devo rompere rompo fino in fondo
Ci sono tre cose che non capisco:
– quando provo ad inserire una foto nel commento col tag “<img src etc etc”, se sono loggato come amministratore del blog me la fa postare, ma se non lo sono non me la posta, quale opzione devo modificare?
– è possibile omettere il guestbook dall’elenco delle pagine nella sidebar?
– è possibile omettere il guestbook dall’elenco degli ultimi commenti nella sidebar?
grazie mille
MrBoh
-
3 Febbraio 2007 alle 8:13 #43243FreeplePartecipante
Ciao MrBoh!
– quando provo ad inserire una foto nel commento col tag “<img src etc etc”, se sono loggato come amministratore del blog me la fa postare, ma se non lo sono non me la posta, quale opzione devo modificare?
Solo da un certo Livello in su si hanno i permessi per l’Upload.
– è possibile omettere il guestbook dall’elenco delle pagine nella sidebar?
Sଠcon:
wp_list_pages('exclude=[ID Pagina]')
– è possibile omettere il guestbook dall’elenco degli ultimi commenti nella sidebar?
Non lo so.
A presto, ciao!
-
3 Febbraio 2007 alle 9:42 #43245MrBohPartecipante
Solo da un certo Livello in su si hanno i permessi per l’Upload.
Equesta cosa non è proprio possibile aggirare?
A me servirebbe che ogni utente può postare una foto dalla rete come si fa solitamente coi tag <img src=http:\ etc etc…
grazie
MrBoh
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.