Full Member
14.12.2019 23:26:16
Topic Starter
Poland
|
 |
Link: http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg176#msg176
|
|
Witaj roco mam niewielki kłopot z giff'em od Online/Offline a dokładniej w wątkach jest wszystko ok lecz w profilu i paru innych miejscach jest obok giff'a jest tekst. jak i gdzie pozbyć się tych tekstów ... czyli mam  i obok tekst lub  i tekst pozdrawiam
Attention! Testing modifications - Steam Profile
|
|
|
IP Zapisane
|
Władczy, choleryczny, wybuchowy, radykalny we wszystkim, z rozpustnym wyobrażeniem upodobań które nigdy nie były widziane, ateistyczny pod względem fanatyzmu, tutaj masz mnie w pigułce i zabij mnie znowu albo weź mnie takim jaki jestem, bo Ja się nie zmienię.
|
|
|
Administrator
3wProducer
Imagination is more Important than Knowledge
08.05.2017 21:24:16
United States
|
 |
Link: http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg177#msg177
Post #1 |
|
Witaj Cieplutki!  To proste.. Jak widzisz mam tu dodatek, który dodaje flagi państw.. Ale jak tego nie stosuję, to daję po wpisie grafiki, -> <img src... >< br / >opis I mam to załamane, poniewaz wygodnie się mieści obok określenia płci, co uwazam jest dość istotne.. Jeśli masz grafikę wystarczającą, to dajesz opis tylko jako alt, żeby było cokolwiek, jak grafika się nie wyświetli, a sam napis mozesz wychlastać i to jest proste.. Pliki w których to występuje, to Display.template.php i PersonalMessage.template.php. Jeśli tych plików nie ma w stylu, którego się używa, to napewno są w stylu default.. Występuje ten fragment w w części z danymi usera, avatar itp.. Np. w Display.. szukaj: // Show information about the poster of this message.I tam znajdziesz: // Show online and offline buttons? if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest']) echo ' ', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />'; // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.026s | speed:25.17 KB/s Jak widać pod koniec tego wpisu jest < span..: <span class="smalltext"> ' . $message['member']['online']['text'] . '</span> I to jego trzeba wychlastać, ale uwaga na stringi.., jeśli chcesz wyciąć tylko sam napis, to chlastasz tylko i wyłącznie ten span, ale bez apostrofów, w których się znajduje, inaczej wysypie Ci stronkę.., możesz też przed < span dać br'kę wtedy będzie w nowej linii.., ale lepiej to wychlastać hehe Czyli ten wpis po wycieciu napisów online/offline powinien wygladać tak: // Show online and offline buttons? if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest']) echo ' ', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? ' ' : '', '<br /><br />'; // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.026s | speed:22.68 KB/s To był przykład na pliku ze stylu default, może być różnie w zalezności od stulu, jednak będzie minimum podobnie, dasz spoko radę hehe To samo z plikiem PersonalMessage.template.php Zobacz masz taki wpis: // Show online and offline buttons? if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest']) echo ' ', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" style="margin-top: 4px;" alt="' . $message['member']['online']['text'] . '" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />'; // Show the member's gender icon? // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.028s | speed:24.71 KB/s I sytuacja ta sama, chcesz w nowej linii? to dajesz br'kę, nie chcesz tego napisu, to wycinasz tylko <span.. > z pomiędzy a'postrofów.. // Show online and offline buttons? if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest']) echo ' ', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" style="margin-top: 4px;" alt="' . $message['member']['online']['text'] . '" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? ' ' : '', '<br /><br />'; // Show the member's gender icon? // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.031s | speed:19.86 KB/s To proste, ale zalecam odrobinę uwagi, szczególnie na stringi  Pozdrawiam  roco
Attention! Testing modifications - Steam Profile
|
|
|
IP Zapisane
|
|
|
|
Full Member
14.12.2019 23:26:16
Topic Starter
Poland
|
 |
Link: http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg178#msg178
Post #2 |
|
thx roco jeszcze w pliku Profile.template.php i już jest malina
pozdrawiam
Attention! Testing modifications - Steam Profile
|
|
|
IP Zapisane
|
Władczy, choleryczny, wybuchowy, radykalny we wszystkim, z rozpustnym wyobrażeniem upodobań które nigdy nie były widziane, ateistyczny pod względem fanatyzmu, tutaj masz mnie w pigułce i zabij mnie znowu albo weź mnie takim jaki jestem, bo Ja się nie zmienię.
|
|
|
Administrator
3wProducer
Imagination is more Important than Knowledge
08.05.2017 21:24:16
United States
|
 |
Link: http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg179#msg179
Post #3 |
|
..trochę byłem zapracowany  W pliku Profile.template.php, jesli chcesz usunąć napis: online/ofline, to edytujesz ten plik i znajdujesz: Tj. w linii ~247, w pliku Default/Profile.template.php: // Some more information. echo ' </td> </tr><tr> <td><b>', $txt[96], ': </b></td> <td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td> </tr><tr> <td><b>', $txt[113], ' </b></td> <td> <i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['member']['online']['image_href'] . '" alt="' . $context['member']['online']['text'] . '" align="middle" />' : $context['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['member']['online']['text'] . '</span>' : '', '</i>'; // Can they add this member as a buddy? // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.033s | speed:25.10 KB/s I trzeba wyciąć ze stringów to: <span class="smalltext"> ' . $context['member']['online']['text'] . '</span> Wtedy otrzymamy taką postać: // Some more information. echo ' </td> </tr><tr> <td><b>', $txt[96], ': </b></td> <td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td> </tr><tr> <td><b>', $txt[113], ' </b></td> <td> <i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['member']['online']['image_href'] . '" alt="' . $context['member']['online']['text'] . '" align="middle" />' : $context['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '' : '', '</i>'; // Can they add this member as a buddy? // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.034s | speed:22.45 KB/s = = = = = = = = = Jeśli jesteś jeszcze w tym pliku, to od razu dodaj "gwiazdki usera" do profilu, wiesz jak w poście nad avatarem.. To jesli chcesz je sobie tam dodać to znajdx na poszczątku pliku taki fragment: // Do the left hand column - where all the important user info is displayed. echo ' <tr> <td class="windowbg" width="420"> <table border="0" cellspacing="0" cellpadding="2" width="100%"> <tr> <td><b>', $txt[68], ': </b></td> <td>', $context['member']['name'], '</td> </tr>'; if (!empty($modSettings['titlesEnable']) && $context['member']['title'] != '') { echo ' <tr> <td><b>', $txt['title1'], ': </b></td> <td>', $context['member']['title'], '</td> </tr>'; } echo ' <tr> <td><b>', $txt[86], ': </b></td> <td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td> </tr><tr> <td><b>', $txt[87], ': </b></td> <td>', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</td> </tr>'; // If the person looking is allowed, they can check the members IP address and hostname. // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.034s | speed:27.48 KB/s I dodaj gwiadki po ostatniej [ < tr > ] ale przed końcem stringu: - [ '; ] - czyli ten kawałek kodu: <tr>
<td><b>', $txt['stars'], ':</b></td> <td>', $context['member']['group_stars'], '</td> </tr> Żeby całość wyglądała tak: // Do the left hand column - where all the important user info is displayed. echo ' <tr> <td class="windowbg" width="420"> <table border="0" cellspacing="0" cellpadding="2" width="100%"> <tr> <td><b>', $txt[68], ': </b></td> <td>', $context['member']['name'], '</td> </tr>'; if (!empty($modSettings['titlesEnable']) && $context['member']['title'] != '') { echo ' <tr> <td><b>', $txt['title1'], ': </b></td> <td>', $context['member']['title'], '</td> </tr>'; } echo ' <tr> <td><b>', $txt[86], ': </b></td> <td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td> </tr><tr> <td><b>', $txt[87], ': </b></td> <td>', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</td> </tr><tr>
<td><b>', $txt['stars'], ':</b></td> <td>', $context['member']['group_stars'], '</td> </tr>'; // If the person looking is allowed, they can check the members IP address and hostname. // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.036s | speed:29.00 KB/s Wtedy, dodatowo, w profilu każdego usera pojawią się gwiazdki, które się normalnie wyświetlają nad avatarem, czyli te, które są prznależne do grupy, do której należy dany user, np. Admin.. Żeby zobaczyć o czym mówię, to kliknij np. w swój profil, czy też mój profil, albo avatar, na tym forum..  Pozdrawiam  roco
Attention! Testing modifications - Steam Profile
|
|
Last Edit: 30.11.2008 07:34:10 by: roco
|
IP Zapisane
|
|
|
|
Customer
26.02.2011 19:59:04
Poland
|
 |
Link: http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg839#msg839
Post #4 |
|
Widze bardzo fajne forum  wiele ciekawych tematów i wiele można z tąd wynieść . Posdrowionka Cieplutki kope lat  eloo Roco
Attention! Testing modifications - Steam Profile
|
|
|
IP Zapisane
|
-= Najlepszą obroną jest Atak =-
|
|
|
Full Member
14.12.2019 23:26:16
Topic Starter
Poland
|
 |
Link: http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg840#msg840
Post #5 |
|
grabki Serafin napiszę Ci tyle ... roco pomoże w każdej sytuacji ... czasem pojedzie ironią a czasem po bandzie ... taki ma charakter ale w majster z niego niezły
pozdrowionka i smaruj co chcesz na forum P.S. a co za dobre wiatry cię tu przywiały
Attention! Testing modifications - Steam Profile
|
|
|
IP Zapisane
|
Władczy, choleryczny, wybuchowy, radykalny we wszystkim, z rozpustnym wyobrażeniem upodobań które nigdy nie były widziane, ateistyczny pod względem fanatyzmu, tutaj masz mnie w pigułce i zabij mnie znowu albo weź mnie takim jaki jestem, bo Ja się nie zmienię.
|
|
|
Customer
26.02.2011 19:59:04
Poland
|
 |
Link: http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg841#msg841
Post #6 |
|
Powitać Cieplutki  Właśnie widzę że Roco dużo pomaga mam parę problemów z moim forum ale to juz napisałem w innym wątku.No Roco nieźle przerobił to forum pogratulować tylko
Attention! Testing modifications - Steam Profile
|
|
|
IP Zapisane
|
-= Najlepszą obroną jest Atak =-
|
|
|
Administrator
3wProducer
Imagination is more Important than Knowledge
08.05.2017 21:24:16
United States
|
 |
Link: http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg847#msg847
Post #7 |
|
Siemka Waszmościom!  Dzięki, ale akurat przerabiam i unifikuje wszystkie tu obecne style, pewne rzeczy jeszcze są w rozsybce, a ciągle znajduje błedy.. np. dzisiaj czekając na sunshine z zynchronizacją neta po burzy.. w pliku subs.php w katalogu sources (czyli w silniku smf) znalazłem tam gdzie tablica (Array) z size były powtórzone 2x "style... Czyli było tak: array( 'tag' => 'size', 'type' => 'unparsed_equals', 'test' => '([1-9][\d]?p[xt]|(?:x-)?small(?:er)?|(?:x-)?large[r]?|(0\.[1-9]|[1-9](\.[\d])?)?em)\]', 'before' => '<span style="font-size: $1;" style="line-height: 1.3em;">', 'after' => '</span>', ), // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.033s | speed:8.28 KB/s A jak już to powinno być tak: array( 'tag' => 'size', 'type' => 'unparsed_equals', 'test' => '([1-9][\d]?p[xt]|(?:x-)?small(?:er)?|(?:x-)?large[r]?|(0\.[1-9]|[1-9](\.[\d])?)?em)\]', 'before' => '<span style="font-size: $1; line-height: 1.3em;">', 'after' => '</span>', ), // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.033s | speed:7.94 KB/s (to znalazłem na wersji smf 1.1.9) Pomagam, dlatego że naprawdę dobrze znam ten skrypt, lubię ludzi i chciałbym, żeby młodzież nie strzelała obciachu z nadmiarem dupershwanz'ów. Zaliczam tę zabawę, (z smf), do moich hobby i robię to z przyjemnością hehe i oczywiście w miarę możliwości czasowych. W dolnym prawym rogu masz selector do zmiany styli, - przejrzyj je, szczególnie ostatni dodany ze Studia Padexx czyli skórkę Lightning. Ponad to jestem estetą i choć jestem coderem, to designer niestety bierze górę i upiększam coś ponad miarę hehe Jednak to miejsce jest specjalnie takie.., tj. jest dostosowane do wygodnej prezentacji kodu.. no i ma jeszcze multum "potrzebnych" zabawek hehe Oczywiście zapraszam, i z problem i tak w ogóle.. Po za tym mam sporo różnych mozliwości i wspieram ciekawe pomysły.. Pozdrawiam Waszmosciów  roco
Attention! Testing modifications - Steam Profile
|
|
|
IP Zapisane
|
|
|
|
|