Strony: [1]   Bottom Do dołu
   Drukuj   
ico Autor    
[EN] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [RU]
     Topic: User Offline/Offline  [Przeczytany 13080 razy]
0 użytkowników i 1 Gość przegląda ten wątek.
Full Member
***
Offline
14.12.2019 23:26:16
Topic Starter
 Poland Mężczyzna
Poland
  WWW
DATA: [27.11.2008 21:36:03] User Offline/Offline
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 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
*****
Imagination is more Important than Knowledge
Offline
08.05.2017 21:24:16
 United States Mężczyzna
United States
  WWW
DATA: [28.11.2008 13:06:16] Odp: User Offline/Offline
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg177#msg177 Post #1 
Witaj Cieplutki! U?miech

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:

GeSHi -› Code: [select]
// 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.017s | speed:38.09 KB/s



Jak wida? pod koniec tego wpisu jest < span..:

Code: [select]
<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:

GeSHi -› Code: [select]
// 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.017s | speed:35.50 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:

GeSHi -› Code: [select]
                // 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.017s | speed:40.99 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..

GeSHi -› Code: [select]
                // 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.025s | speed:25.05 KB/s



To proste, ale zalecam odrobin? uwagi, szczególnie na stringi  Mrugni?cie

Pozdrawiam U?miech
roco



Attention! Testing modifications - Steam Profile

IP IP Zapisane
Full Member
***
Offline
14.12.2019 23:26:16
Topic Starter
 Poland Mężczyzna
Poland
  WWW
DATA: [29.11.2008 17:58:00] Odp: User Offline/Offline
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 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
*****
Imagination is more Important than Knowledge
Offline
08.05.2017 21:24:16
 United States Mężczyzna
United States
  WWW
DATA: [30.11.2008 02:31:41] Odp: User Offline/Offline
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg179#msg179 Post #3 
..trochę byłem zapracowany U?miech

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:

GeSHi -› Code: [select]
    // 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.022s | speed:38.40 KB/s



I trzeba wyciąć ze stringów to:

Code: [select]
<span class="smalltext"> ' . $context['member']['online']['text'] . '</span>



Wtedy otrzymamy taką postać:

GeSHi -› Code: [select]
    // 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.023s | speed:33.06 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:

GeSHi -› Code: [select]
    // 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.029s | speed:32.81 KB/s




I dodaj gwiadki po ostatniej [ < tr > ] ale przed końcem stringu: - [ '; ]

- czyli ten kawałek kodu:

Code: [select]
<tr>

<td><b>', $txt['stars'], ':</b></td>
<td>', $context['member']['group_stars'], '</td>
</tr>



Żeby całość wyglądała tak:

GeSHi -› Code: [select]
    // 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.022s | speed:47.25 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.. Mrugni?cie

Pozdrawiam U?miech
roco



Attention! Testing modifications - Steam Profile

Last Edit: 30.11.2008 07:34:10 by: roco IP IP Zapisane
Customer
*
Offline
26.02.2011 19:59:04
 Poland Mężczyzna
Poland
  WWW
DATA: [05.07.2009 10:59:16] Odp: User Offline/Offline
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg839#msg839 Post #4 
Widze bardzo fajne forum  oklaski wiele ciekawych tematów i wiele mo?na z t?d wynie?? . Posdrowionka Cieplutki kope lat  Chichot eloo Roco



Attention! Testing modifications - Steam Profile

IP IP Zapisane

-= Najlepsz? obron? jest Atak =-
Full Member
***
Offline
14.12.2019 23:26:16
Topic Starter
 Poland Mężczyzna
Poland
  WWW
DATA: [05.07.2009 11:15:48] Odp: User Offline/Offline
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 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
*
Offline
26.02.2011 19:59:04
 Poland Mężczyzna
Poland
  WWW
DATA: [05.07.2009 11:27:28] Odp: User Offline/Offline
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg841#msg841 Post #6 
Powita? Cieplutki  U?miech 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  Mrugni?cie



Attention! Testing modifications - Steam Profile

IP IP Zapisane

-= Najlepsz? obron? jest Atak =-
Administrator
*****
Imagination is more Important than Knowledge
Offline
08.05.2017 21:24:16
 United States Mężczyzna
United States
  WWW
DATA: [07.07.2009 00:53:19] Odp: User Offline/Offline
Link:  http://poligon.ricoroco.com/fora/smf/index.php?topic=34.msg847#msg847 Post #7 
Siemka Waszmo?ciom! U?miech

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:

GeSHi -› Code: [select]
            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.020s | speed:13.37 KB/s




A jak ju? to powinno by? tak:

GeSHi -› Code: [select]
            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.019s | speed:13.50 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 U?miech
roco




Attention! Testing modifications - Steam Profile

IP IP Zapisane
Strony: [1]   TOP^Do góry
   Drukuj   
On-Line: 33 Gości, 0 Użytkowników
 
Skocz do:  

* Share this topic...
In a forum
[BBCode]
Code: [select]  -› [ Topic: User Offline/Offline ]
[url=http://poligon.ricoroco.com/fora/smf/index.php?topic=34.0]User Offline/Offline[/url]
In a site/blog
[xHTML]
Code: [select]  -› [ Topic: User Offline/Offline ]
<a href="http://poligon.ricoroco.com/fora/smf/index.php?topic=34.0" target="_blank">User Offline/Offline</a>
Geo Visitors Map