Strony: [1]   Bottom Do dołu
   Drukuj   
ico Autor    
[EN] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [RU]
     Topic: User Offline/Offline  [Przeczytany 3646 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!

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.067s | speed:9.97 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.065s | speed:9.04 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.069s | speed:10.15 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.056s | speed:11.11 KB/s



To proste, ale zalecam odrobinę uwagi, szczególnie na stringi 

Pozdrawiam
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

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.059s | speed:14.31 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.060s | speed:12.84 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.058s | speed:16.07 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.063s | speed:16.73 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 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  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 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!

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.054s | speed:4.99 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.054s | speed:4.82 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 IP Zapisane
Strony: [1]   TOP^Do góry
   Drukuj   
On-Line: 9 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