PDA

View Full Version : Wordpress e last.fm


afsdfdlecosdfsfdcco
14-09-2007, 17:11
Mi sono da poco fatto il blog su wordpress e vorrei inserire i miei ultimi ascolti registrati su last.fm.

Vado sul sito ed ottengo questo codice da mettere nel mio blog:

<style type="text/css">table.lfmWidgetc11a6f8f5b4a111fa6c0264b879267de td {margin:0 !important;padding:0 !important;border:0 !important;}table.lfmWidgetc11a6f8f5b4a111fa6c0264b879267de tr.lfmHead a:hover {background:url(http://cdn.last.fm/widgets/images/en/header/chart/recenttracks_regular_blue.png) no-repeat 0 0 !important;}table.lfmWidgetc11a6f8f5b4a111fa6c0264b879267de tr.lfmEmbed object {float:left;}table.lfmWidgetc11a6f8f5b4a111fa6c0264b879267de tr.lfmFoot td.lfmConfig a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/blue.png) no-repeat 0px 0 !important;;}table.lfmWidgetc11a6f8f5b4a111fa6c0264b879267de tr.lfmFoot td.lfmView a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/blue.png) no-repeat -85px 0 !important;}table.lfmWidgetc11a6f8f5b4a111fa6c0264b879267de tr.lfmFoot td.lfmPopup a:hover {background:url(http://cdn.last.fm/widgets/images/en/footer/blue.png) no-repeat -159px 0 !important;}</style>
<table class="lfmWidgetc11a6f8f5b4a111fa6c0264b879267de" cellpadding="0" cellspacing="0" border="0" style="width:184px;"><tr class="lfmHead"><td><a title="alecocco: Recently Listened Tracks" href="http://www.last.fm/user/alecocco/" target="_blank" style="display:block;overflow:hidden;height:20px;width:184px;background:url(http://cdn.last.fm/widgets/images/en/header/chart/recenttracks_regular_blue.png) no-repeat 0 -20px;text-decoration:none;"></a></td></tr><tr class="lfmEmbed"><td><object width="184" height="199" style="float:left;" data="http://cdn.last.fm/widgets/chart/friends_4.swf" type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"> <param name="movie" value="http://cdn.last.fm/widgets/chart/friends_4.swf" /> <param name="flashvars" value="type=recenttracks&amp;user=alecocco&amp;theme=blue&amp;lang=en&amp;widget_id=c11a6f8f5b4a111fa6c0264b879267de" /> <param name="bgcolor" value="#6598cd" /> <param name="quality" value="high" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowNetworking" value="all" /> <embed src="http://cdn.last.fm/widgets/chart/friends_4.swf" flashvars="type=recenttracks&amp;user=alecocco&amp;theme=blue&amp;lang=en&amp;widget_id=c11a6f8f5b4a111fa6c0264b879267de" bgcolor="#6598cd" width="184" height="199" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" allowScriptAccess="sameDomain" allowNetworking="all"> </embed> </object></td></tr><tr class="lfmFoot"><td style="background:url(http://cdn.last.fm/widgets/images/footer_bg/blue.png) repeat-x 0 0;text-align:right;"><table cellspacing="0" cellpadding="0" border="0" style="width:184px;"><tr><td class="lfmConfig"><a href="http://www.last.fm/widgets/?colour=blue&amp;chartType=recenttracks&amp;user=alecocco&amp;chartFriends=1&amp;from=code&amp;widget=chart" title="Get your own widget" target="_blank" style="display:block;overflow:hidden;width:85px;height:20px;float:right;background:url(http://cdn.last.fm/widgets/images/en/footer/blue.png) no-repeat 0px -20px;text-decoration:none;"></a></td><td class="lfmView" style="width:74px;"><a href="http://www.last.fm/user/alecocco/" title="View alecocco's profile" target="_blank" style="display:block;overflow:hidden;width:74px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/blue.png) no-repeat -85px -20px;text-decoration:none;"></a></td><td class="lfmPopup"style="width:25px;"><a href="http://www.last.fm/widgets/popup/?colour=blue&amp;chartType=recenttracks&amp;user=alecocco&amp;chartFriends=1&amp;from=code&amp;widget=chart&amp;resize=1" title="Load this chart in a pop up" target="_blank" style="display:block;overflow:hidden;width:25px;height:20px;background:url(http://cdn.last.fm/widgets/images/en/footer/blue.png) no-repeat -159px -20px;text-decoration:none;" onclick="window.open(this.href + '&amp;resize=0','lfm_popup','height=299,width=234,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table>


Vado nella sezione widget di wordpress, aggiungo una casella di testo, ci copio dentro il codice e salvo. Problema: non succede nulla anzi, mezzo codice sparisce e nella casella vedo solo testo :|

Lo stesso codice sul blog di un amico invece viene interpretato correttamente. Cosa ho sbagliato?

edit:
questo e' quello che appare:
http://img108.imageshack.us/img108/7141/picture136iv0.jpg

grazie :)

http://img174.imageshack.us/img174/1102/tommysmile1hxxt3.gif

cionci
14-09-2007, 22:20
Ti sposto nella sezioen Web Design di Internet e Provider. E' pił adatta a problematiche relative ai CMS.

afsdfdlecosdfsfdcco
14-09-2007, 22:23
Ti sposto nella sezioen Web Design di Internet e Provider. E' pił adatta a problematiche relative ai CMS.

Grazie, non ci ho fatto caso ^^

(ci sono troppe sezioni qui :asd:)

thefrog
15-09-2007, 12:22
non so bene come funzioni nel blog su wordpress, ma nella versione di wordpress che ti installi dove vuoi puoi:

inserirle il codice in un widget (se gli widgets sono installati)
inserire il codice nel file sidebar.php (tramite manage > files > Sidebar, oppure da dal menu Presentation)

afsdfdlecosdfsfdcco
15-09-2007, 12:57
non so bene come funzioni nel blog su wordpress, ma nella versione di wordpress che ti installi dove vuoi puoi:

inserirle il codice in un widget (se gli widgets sono installati)
inserire il codice nel file sidebar.php (tramite manage > files > Sidebar, oppure da dal menu Presentation)


Io mi sono iscritto online ed ho ottenuto subito lo spazio web... Che sia per questo?

thefrog
15-09-2007, 13:25
Io mi sono iscritto online ed ho ottenuto subito lo spazio web... Che sia per questo?

mi spiace ma come ho scritto sopra, quello che ho scritto sono sicuro che vale per quanto riguarda le versioni che installi su un tuo hosting, per quanto riguarda quella su wordpress.com non posso aiutarti, l'ho scritto pensando che magari si potesse fare nello stesso modo, o in un modo simile: vedi se hai qualcosa del genere a disposizione

afsdfdlecosdfsfdcco
15-09-2007, 13:43
Vabbe', intanto grazie, provo a fare qualche prova :stordita: