Home › Forum › Plugin e temi di WP › un buon feed reader per inserire in automatico le news nel mio sito
-
AutorePost
-
-
1 Marzo 2009 alle 14:05 #9657gabbiano69Partecipante
ciao.. io ho installato feedreader nel mio sito però vorrei usarlo meglio, mi spiego il feedreader mi imprta in automatico le news io l’ho impostato per leggerle sul mio sito.. ma chiaramente quando vado in leggi tutto la notizia è inconpleta e devo aggiungere poi andando ad editare manualmente il post la fonte con il link alla notizia. con l’altra opzione invece quella di leggere la fonte cliccando sul post leggi tutto si apre si la notizia originale di destinazione del sito, ma si apre nella stessa finestra e quindi i visitatori escono dal mio sito. io vorrei che il feed reader con l’opzione di leggere sul mio sito inserisse in automatico la fonte all’interno della notizia incompleta… come posso fare per sistemare questa cosa si può con feedreader o conviene installare un altro plugin??? se si quale… per essere più chiaro vi do un link di un sito che fa quello che vorrei… grazie.
-
1 Marzo 2009 alle 18:24 #63246SteveAglAmministratore del forum
Nonn credo esista nulla del genere.. dovresti aprire il sito fonte in un iframe, il che non è ne bello ne paicevole per i poster originali, se un sito dedide di fornire solo il sunto della notizia sui sui feed e poi vuole che gli utenti vadano sul sito a leggerla completa, perchè tu vuoi “rubargliela” in qualche modo?
Poi ovviamente si potrebbe sempre realizzare un sistema come quello di google news, che estrae le notizie dai siti… solo che loro sono appunto google e magari se mi aggregano a me sta bene perchè da visilbilità , se qualcuno, se qualcuno mi incorpoare WPIT sul suo sito e magari non riporta i credits e usa una copyright diversa dalla mia, riceve prontamente una mia mail in cui gentilmente gli dico di usare solo quello che fornisco col feed e basta…
Fidati fare come vuoi fare tu è fonte di grane certa.. oltre a non esser etico per nulla…
-
1 Marzo 2009 alle 22:16 #63257gabbiano69Partecipante
no forse non mi sono spiegato, io voglio riportare solo quello che riporta il feed ma vorrei che mi creasse in automatico il link e la fonte per andare a vedere la notizia sul loro sito.. se vedi questo esempio capisci quello che voglio fare.. http://www.giornaledizona.com poi clicca su una notizia e vedrai che c’è solo quello che riporta il sito ma in automatico c’è anche la fonte ed il link per vedere la notizia per intero dalla fonte originale… ho visto più siti che adottano questo sistema… volevo capire come fare con feedreader o con un altro plugin… mi puoi aiutare…
-
2 Marzo 2009 alle 7:24 #63266SteveAglAmministratore del forum
Dici a feedreader nelle sue impostazioni di avere i permalink che puntano al tuo sito, ed usi l’autore del post come link per la fonte oeriginale, oltre a questa impostazione il resto è solo questione di tema, userai l’excerpt per la home page l’articolo completo per la notizia intera e lautore (a cui assegnerai l’URL del suo sito per poter avere il link al sito originale, non credo sia possibile avere il link alla notizia originale esatta… almeno non mi pare possibili cosଠsu due piedi. Forse con una funzione scritta ad hoc…
-
5 Marzo 2009 alle 15:04 #63443gabbiano69Partecipante
grazie cmq… ma alcune cose non mi sono chiare.. come faccio ad usare il l’autore del post come link in automatico come devo fare??? e cosa intendi per excerpt?? e come assegnare il link dell’autore??? sono un neofita sii più chiaro se puoi .. cmq grazie ancora
-
5 Marzo 2009 alle 15:11 #63444SteveAglAmministratore del forum
1) GLi articoli appaiono con un autore? Crei un autoreper ogni feed che annia come url quella del sito che leggi… apri una pagina utente nel lato amministrativo e capisci cosa intendo
2)excerpt=riassunto
3) vedi 1
Ovviamente studiare bene le schermate di feedreader aiuta a capire le cose meglio… ogni voce deve essere letta e capita.
-
5 Marzo 2009 alle 17:06 #63454gabbiano69Partecipante
ho configurato il feedreader con il permalink che punta sul mio sito, quando clicco su leggi tutto punta al mio sito .. ecoo, e qui che vorrei aggiungere automaticamente la fonte ed il link alla notizia intera sul sito originale ovviamente… è questo che mi serve.. come faccio??? grazie ancora
-
5 Marzo 2009 alle 17:16 #63458SteveAglAmministratore del forum
Hai un autore spcifico per il sito? Hai associato questo autore al feed? (sempre nella pagina di impostazione del feed) nell’articolo completo appare il nome dell’autore? Se una di queste cose non c’è.. non puoi far quel che chiedi. Iniziamo ad escludere quelle che sono impostate correttamente.
-
5 Marzo 2009 alle 17:36 #63467gabbiano69Partecipante
si h associato il nome dell’autore al fedd e l’autore compare nell’articolo … inviato da… etc… quindi spunta l’autore
-
5 Marzo 2009 alle 18:04 #63472SteveAglAmministratore del forum
dove hai là¬autore nel tuo template del tema (single.php tipicamente) avrai il nome dell’autore generato da:
the_author_posts_link()
li ci metterai invece
echo ‘< a href=”‘ . get_syndication_permalink() . ‘” >’ . get_the_author() . ‘< /a >’
(nota che devi togliere gli spazi dopo e prima < e > che ho messo per mostrarli qua… non ho provato ma dovrebbe funzionare e ti darà il nome dell’autore come link alla risorsa corrispondente originale.
Se non va metti un po di righe di codice 3, 4 prima e dopo il punto dove appare
the_author_posts_link() incollandole isu pastebin.com nel caso ti desse qualche errore.. e indicaci qua il link e l’errore… attenzione agli apici e doppi apici etc… il codice che ti ho dato DEVE sostituire silo il testo indicato… prima dovrebbe esserci un <?php e alla fine un ?> che devono rimanere.
-
6 Marzo 2009 alle 15:47 #63497gabbiano69Partecipante
grazie sei d’aiuto proverò… mq il nome dell’autore me lo da all’inizio, io invce vorrei inserirlo alla fine del contenuto cioè dell’articolo… dove lo inserisco??? vorrei scrivere: leggi la notizia completa su: e poi il parametro che dici tu syndication_permalink, ecco il codice… grazie
<code<?php global $theme_options, $newspaper; ?>
<?php get_header(); ?>
<div id=”singleContent”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id=”entryMeta”>
<h2 class=”singlePageTitle”><?php the_title(); ?></h2>
<p><?php echo get_avatar( get_the_author_email(), ’21’ ); ?>
<?php echo $newspaper[“postedBy”]; ?> <?php the_author_posts_link(); ?>
<?php /* This is commented, because it requires a little adjusting sometimes.
You’ll need to download this plugin, and follow the instructions:
http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) – (60*120)); echo time_since($entry_datetime); echo ‘ ago’; */ ?>
on <?php the_time(‘M jS, Y’) ?> <?php echo $newspaper[“filedUnder”]; ?> <?php the_category(‘, ‘) ?>.
<?php echo $newspaper[“rssLink”]; ?> <?php comments_rss_link(‘RSS 2.0’); ?>.
<?php if ((‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Both Comments and Pings are open ?>
<?php echo $newspaper[“postInfo”]; ?>
<?php } elseif (!(‘open’ == $post-> comment_status) && (‘open’ == $post->ping_status)) {
// Only Pings are Open ?>
<?php echo $newspaper[“postInfo2”]; ?>
<?php } elseif ((‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Comments are open, Pings are not ?>
<?php echo $newspaper[“postInfo3”]; ?>
<?php } elseif (!(‘open’ == $post-> comment_status) && !(‘open’ == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<?php echo $newspaper[“postInfo4”]; ?>
<?php } edit_post_link(‘Edit’,”,”); ?>
</div>
<div id=”entry”>
<div class=”post”>
<?php if($theme_options == 1) { ?>
<?php if ( in_category($theme_options[“mpPhotoGalCatID”]) ): ?>
” alt=”<?php the_title(); ?>” class=”photoGalItem” />
<?php endif; ?>
<?php } ?>
<?php if($theme_options == 1) { ?>
<?php if ( in_category($theme_options[“videoCatID”]) ): ?>
<div class=”video”>
<object type=”application/x-shockwave-flash” style=”width:501px; height:280px;” data=”<?php echo get_post_meta($post->ID, ‘video’, true); ?>”>
<param name=”movie” value=”<?php echo get_post_meta($post->ID, ‘video’, true); ?>” /></object>
</div>
<?php endif; ?>
<?php } ?>
<?php the_content(); ?>
</div>
<?php comments_template(); ?>
</div>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
<div id=”singlePostSidebarLeft”>
<?php include (TEMPLATEPATH . ‘/innerSidebarLeft.php’); ?>
</div>
<div class=”clear”></div>
</div>
<div id=”singlePostSidebarRight”>
<?php include (TEMPLATEPATH . ‘/innerSidebarRight.php’); ?>
</div>
<div class=”clear”></div>
<?php get_footer(); ?>
</div><!– enf od wrapper –>
</body>
</html>>
-
6 Marzo 2009 alle 17:59 #63517SteveAglAmministratore del forum
Losposti dopo l’articolo the_content…
-
6 Marzo 2009 alle 18:42 #63511gabbiano69Partecipante
grazie … ci sono riuscito, ho solo un problemino da risolvere fare aprire il collegamento in una nuova finestra cosa aggiungo a questo codice??? grazie ancora senza il tuo aiuto sarei ancora in altomare
ecco il codice cosa devo aggiungere???<code<?php echo ‘‘ . get_the_author() . ‘‘; ?>>
-
6 Marzo 2009 alle 20:19 #63521SteveAglAmministratore del forum
echo ‘< a href=”‘ . get_syndication_permalink() . ‘ target=_blank” >’ . get_the_author() . ‘< /a >’
Questo però sono cose basilari di HTML di cui solitamente NON forniamo assistenza ci son mille forum emille risorse sull’HTML
-
7 Marzo 2009 alle 9:29 #63534gabbiano69Partecipante
grazie mille il problema è conosco poco php… ma già con il tuo codice ho studiato un po e modificato alcune cose nel tema, vado ad aggiungerlo subito, e se funziona si può chiudere la discussione… grazie ancora
-
7 Marzo 2009 alle 9:44 #63537gabbiano69Partecipante
t
c’è qualche errore mi si apre sempre nelòla stessa pagina.. manca qualche cosa???
-
7 Marzo 2009 alle 9:51 #63538SteveAglAmministratore del forum
Incollare il codice su pastebin.com e mttere qui il link grazie
-
7 Marzo 2009 alle 9:54 #63539gabbiano69Partecipante
ok fatto ho postato il codice su pastebin questo è il link
-
7 Marzo 2009 alle 10:53 #63542SteveAglAmministratore del forum
Si apre sempre nella stessa pagina significa?
-
7 Marzo 2009 alle 13:17 #63544gabbiano69Partecipante
che non si apre in una nuova finestra… c’ un errore ortografico sicuramente … qyualchepunto o qualche virgoletta in meno…
-
7 Marzo 2009 alle 13:39 #63546SteveAglAmministratore del forum
Sorry colpa mia che ho scritto di fretta…
echo ‘< a href=”‘ . get_syndication_permalink() . ‘” target=”_blank” >’ . get_the_author() . ‘< /a >’
Cosଠdovrebbe andare… se non va vedi subito perchè se guardi il sorgente della pagina HTML generata per il link trovi se mancano virgolette o altro… avevo pensato che si aprisse sempre la tua notizia e non il sito originale..
-
7 Marzo 2009 alle 14:50 #63550gabbiano69Partecipante
grazie mille, risolto, grazie ancora.. buon week end
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.