Risposte nei forum create
-
AutorePost
-
Albert EinsteinPartecipante
Ho risolto grazie mille del suggerimento! Si realizzo siti, diciamo che ci sto provando, piano piano…
Grazie mille a presto!
Albert EinsteinPartecipanteHo capito solo ora qual’è stato l’inghippo! Praticamente il codice di audio player ti mette in automatico il player nella pagina di home del tema, quella pagina che il tema ha già di suo.
Io avendo messo una pagina di home statica non visualizzavo il player.
Quindi la mia domanda sporge spontanea, ma è possibile quindi rendere autonomo l’audio player e metterlo in alto a destra o a sinistra della pagina?
Albert EinsteinPartecipanteEcco finalmente ci sono riuscito! Imbestialito dal perchè non funzionasse, ho disinstallato wordpress e reistallato tutto!
Forse il problema è stato un conflitto con temi vari, ora però è risolto e il player lo vedo e parte appena accedo al sito.
Ora però volevo posizionarlo in alto a destra, come faccio?
quale file devo modificare?
Ho provato a posizionare il codice fornito dall’autore nel css, ma non subisce variazioni.
p.audioplayer_container {
text-align: center;
}
Grazie mille titti per la pazienza. a presto.
Albert EinsteinPartecipanteIl codice l’ho copiato esatto! ho sbagliato adesso a scrivere qua nel forum, ma ti garantisco che il codice che ho scrito è esatto!
Quindi se tu mi confermi che cosଠva bene, ci sarà un altro motivo per il quale non riesco a visualizzarlo sul sito.
Devo programmare anche il file css?
Albert EinsteinPartecipanteEcco il link , spero per voi che cosଠsia più chiaro:
http://www.maurosilvestrone.com/
<? Php if (function_exists ( “insert_audio_player” )) {
insert_audio_player ( “[audio: http://www.maurosilvestrone.com/audio/dido.mp3” );
}?>
Questa è la stringa che ho inserito in index:
<?php wp_get_header(); ?>
<div id=”content”>
<?php if (have_posts()) : ?>
<? Php se (function_exists ( “insert_audio_player” )) {
insert_audio_player ( “[audio: http://www.maurosilvestrone.com/audio/dido.mp3” );
}?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2 class=”title”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
<div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div>
<p class=”meta”>
<span class=”posted”>Posted by <?php the_author_posts_link() ?> on <?php the_time(‘F jS, Y’) ?></span>
<?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’, ‘comments’); ?>
</p>
</div>
<?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
</div>
<?php else : ?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
<?php include (TEMPLATEPATH . “/searchform.php”); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php wp_get_footer(); ?>
Albert EinsteinPartecipanteIo lo posiziono in index del template, o bisogna posizionarlo altrove?
Albert EinsteinPartecipanteCaspita avete pienamente ragione! a volte scivolo sulle bucce di banana!
Comunque ho messo l’if al posto di se, ma niente da fare, il player non lo vedo e non lo sento?
Avete qualche idea? Grazie mille ciao.
Albert EinsteinPartecipanteGrazie mille, la risposta ce l’avevo sotto il naso e non l’ho vista, però ho provato e non ci sono riuscito.
Adesso ti spiego cos’ho fatto! Ho creato una cartella di nome audio con dentro un file mp3. es: http://www.domain.com/audio/song.mp3
Se applico la stringa in [audio :dido.mp3] in una pagina, tutto bene mi visualizza il lettore.
Ora applico il codice che mi hai segnalato tu, per voler mettere il mio lettore nella pagina iniziale.
Quindi vado nel file INDEX del mio tema e aggiungo:
<? Php se (function_exists ( “insert_audio_player” )) {
insert_audio_player ( “[audio: http://www.domain.com/audio/song.mp3%5D” );
}?>
però non mi visualizza niente nel sito.
Allora provo a prendere insert_audio_player e metterlo come css, ovvero:
insert_audio_player
{ float: center;
color: white; }
Ma niente da fare non lo vedo.
Mi sai dare una mano?! Grazie mille !
Albert EinsteinPartecipanteUsa audio player! Basta che crei una cartella con il nome “audio” e la inserisci direttamente via ftp dove ci sono le cartelle di wordpress.
Dopo di che vai in impostazioni Generali del tuo plug-in e fai verifica! Una volta fatto verifica fai salva modifiche.
Ovviamente nella tua cartella audio dovrai caricare un file audio mp3.
Esempio: Santana.mp3
Ora vai nel tuo articolo o pagina, e inserisci questa riga: [audio: Santana.mp3] e fai salva
Come per magia vedrai nella tua pagina o articolo postato il player.
Ciao.
Albert EinsteinPartecipanteIo avevo la versione di wp precedente che funzionava col file di traduzione, quando l’ho aggiornato mi è crashato e dopo mi ha dato solo problemi, quindi cos’ho fatto.
Ho cancellato via ftp tutta la cartella del vecchio plug-in e ho messo la nuova versione col file di lingua tradotto.
Non vorrei a questo punto, pensare che il file di lingua sia troppo vecchio rispetto alla nuova versione del plug-in, e quindi che non lo legga.
-
AutorePost