To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

1.12.7 i starsze - Recently Listened Tracks, BBCode Lastfm.pl

INIM - 25-01-2009, 13:52
Temat postu: Recently Listened Tracks, BBCode Lastfm.pl
Godzinkę temu na to wpadłem. Potestowałem i działa.
Dzięki tej modyfikacji możemy pokazać na forum (w poście lub w podpisie) jakie ostatnie 4 utwory słuchalismy. Modyfikacja wymaga zainstalowania BBCode Managera

Otwórz styl.css, znajdź:
Kod:
/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("formIE.css");


Dodaj po tym:
Kod:
/* BBCode Lastfm red */
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 td { margin: 0px !important; padding: 0px !important; border: 0px !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmHead a:hover { background: url('http://cdn.last.fm/widgets/images/pl/header/chart/recenttracks_regular_red.png') no-repeat 0 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmEmbed object { float: left; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmConfig a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/red.png') no-repeat 0px 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmView a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/red.png') no-repeat -85px 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmPopup a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/red.png') no-repeat -159px 0 !important; }

/* BBCode Lastfm black */
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 td { margin: 0px !important; padding: 0px !important; border: 0px !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmHead a:hover { background: url('http://cdn.last.fm/widgets/images/pl/header/chart/recenttracks_regular_black.png') no-repeat 0 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmEmbed object { float: left; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmConfig a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/black.png') no-repeat 0px 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmView a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/black.png') no-repeat -85px 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmPopup a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/black.png') no-repeat -159px 0 !important; }

/* BBCode Lastfm blue */
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 td { margin: 0px !important; padding: 0px !important; border: 0px !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmHead a:hover { background: url('http://cdn.last.fm/widgets/images/pl/header/chart/recenttracks_regular_blue.png') no-repeat 0 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmEmbed object { float: left; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmConfig a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/blue.png') no-repeat 0px 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmView a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/blue.png') no-repeat -85px 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmPopup a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/blue.png') no-repeat -159px 0 !important; }

/* BBCode Lastfm grey */
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 td { margin: 0px !important; padding: 0px !important; border: 0px !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmHead a:hover { background: url('http://cdn.last.fm/widgets/images/pl/header/chart/recenttracks_regular_grey.png') no-repeat 0 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmEmbed object { float: left; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmConfig a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/grey.png') no-repeat 0px 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmView a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/grey.png') no-repeat -85px 0 !important; }
table.lfmWidgetchart_5818dd9d8155a57aeb49307aff8bf141 tr.lfmFoot td.lfmPopup a:hover { background: url('http://cdn.last.fm/widgets/images/pl/footer/grey.png') no-repeat -159px 0 !important; }


PA > Ogólne > BBCode Manager > Dodaj nowy:
Nazwa znacznika:
Kod:
[lastfm=]

Kod znacznika:
Kod:
[lastfm={ZMIENNA_1}]{ZMIENNA_2}[/lastfm]

Kod wynikowy:
Kod:
<table class="lfmWidgetchart_42c897d55b905ecdcb2327d39759bbf5" cellpadding="0" cellspacing="0" border="0" style="width:184px;"><tr class="lfmHead"><td><a title="{ZMIENNA_2}: Ostatnio odsłuchane utwory" href="http://www.lastfm.pl/user/{ZMIENNA_2}" target="_blank" style="display:block;overflow:hidden;height:20px;width:184px;background:url(http://cdn.last.fm/widgets/images/pl/header/chart/recenttracks_regular_{ZMIENNA_1}.png) no-repeat 0 -20px;text-decoration:none;border:0;"></a></td></tr><tr class="lfmEmbed"><td><object type="application/x-shockwave-flash" data="http://cdn.last.fm/widgets/chart/friends_6.swf" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="lfmEmbed_717666970" width="184" height="199"> <param name="movie" value="http://cdn.last.fm/widgets/chart/friends_6.swf" /> <param name="flashvars" value="type=recenttracks&user={ZMIENNA_2}&theme={ZMIENNA_1}&lang=pl&widget_id=chart_42c897d55b905ecdcb2327d39759bbf5" /> <param name="allowScriptAccess" value="always" /> <param name="allowNetworking" value="all" /> <param name="allowFullScreen" value="true" /> <param name="quality" value="high" /> <param name="bgcolor" value="000000" /> <param name="wmode" value="transparent" /> <param name="menu" value="true" /> </object></td></tr><tr class="lfmFoot"><td style="background:url(http://cdn.last.fm/widgets/images/footer_bg/{ZMIENNA_1}.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.lastfm.pl/widgets/?colour={ZMIENNA_1}&chartType=recenttracks&user={ZMIENNA_2}&chartFriends=1&from=code&widget=chart" title="Zdobądź swój gadżet" target="_blank" style="display:block;overflow:hidden;width:85px;height:20px;float:right;background:url(http://cdn.last.fm/widgets/images/pl/footer/{ZMIENNA_1}.png) no-repeat 0px -20px;text-decoration:none;border:0;"></a></td><td class="lfmView" style="width:74px;"><a href="http://www.lastfm.pl/user/{ZMIENNA_2}" title="Zobacz profil {ZMIENNA_2}" target="_blank" style="display:block;overflow:hidden;width:74px;height:20px;background:url(http://cdn.last.fm/widgets/images/pl/footer/{ZMIENNA_1}.png) no-repeat -85px -20px;text-decoration:none;border:0;"></a></td><td class="lfmPopup" style="width:25px;"><a href="http://www.lastfm.pl/widgets/popup/?colour={ZMIENNA_1}&chartType=recenttracks&user={ZMIENNA_2}&chartFriends=1&from=code&widget=chart&resize=1" title="Załaduj ten gadżet w okienku" target="_blank" style="display:block;overflow:hidden;width:25px;height:20px;background:url(http://cdn.last.fm/widgets/images/pl/footer/{ZMIENNA_1}.png) no-repeat -159px -20px;text-decoration:none;border:0;" onclick="window.open(this.href + '&resize=0','lfm_popup','height=299,width=234,resizable=yes,scrollbars=yes'); return false;"></a></td></tr></table></td></tr></table>

Zezwól na używanie w podpisach (opcjonalnie): *Zaznacz*

W treść posta lub do podpisu wrzucamy;
Cytat:
[lastfm={ZMIENNA_1}]{ZMIENNA_2}[/lastfm]

gdzie {ZMIENNA_1] to theme. Mamy do wyboru 4 - red, black, blue, grey. (przykłady kolejno w załącznikach).
{ZMIENNA_2} jest to nazwa użytkownika w lastfm.pl.
Przykładowo:
Chcesz czarny styl, a twój nick na lastfm to Gość, wpisujesz:
Cytat:
[lastfm=black]Gość[/lastfm]

MagicalFire - 21-02-2009, 13:33

modyfikacja swietna
dział bez zarzutu
INIM, można zrobić własna skórkę ??

Bucu - 21-02-2009, 13:51

MagicalFire napisał/a:
INIM, można zrobić własna skórkę ??


z tego co wiem to niestety nie, poczytaj na build.last.fm moge sie mylic, choc watpie.

INIM - 21-02-2009, 13:57

MagicalFire, mógłbyś pokombinować z css'em, tj. stworzenie własnych elementów graficznych, wrzucenie ich na serwer i podmienienie linków w template.css.
MagicalFire - 21-02-2009, 13:58

INIM, tak własnie widze ze to jedyne wyjscie
i będzie działać ;)
Bucu napisał/a:
choc watpie.

no widzisz jednak da rade

INIM - 21-02-2009, 14:06

MagicalFire, szczerze mówiąc to ja też do tego sceptycznie podchodzę, ale można popróbowac.
n7 - 06-01-2010, 18:45

Będzie w najbliższym czasie bez BBMenagera? :mrgreen:
INIM - 06-01-2010, 19:32

Wątpie. Przynajmniej ja w najblizszym czasie nie mam zamiaru się tym bawić.
Bucu - 06-01-2010, 20:37

Moze sie skusze, ale to tylko i wylacznie zalezy od wolnego czasu.
n7 - 06-01-2010, 22:56

Bucu byłbym bardzo wdzięczny. BBmenager koliduje mi z modami które już mam. A użytkownicy wołają o takie coś.
Bucu - 07-01-2010, 01:57

n7, bardzo prawdopodobne ze sie za to zabiore ale bedzie to zintegrowane z moim lastfm modem i napisane od nowa.
n7 - 09-01-2010, 01:45

Daj znać na PW jak będzie gotowe.


Powered by phpBB modified by Przemo © 2003 phpBB Group