Okay, rozumiem..
ja nie mia?em do tej pory mo?liwo?ci przeprowadzenia testów, a wszystko to co tu napisa?em, jest oparte o moj? wcze?niejsz? wiedz? i expirients, równie? przestrogi.. Wiedzia? to równie? go?ciu, od moda, o czym napisa?em.. dlatego wybra? tylko wcze?niejsz? wersj? samej kontrolki.
Napisz wi?cej co nie chodzi? mod si? poprawnie zainstalowa?? masz opcje w profilu, ?eby dopisa? ID ze steam'a, jest folder "steam" w g?. katalogu forum? - to jeszcze nale?y ustawi? chmod 777 (lub 0777 zale?y od klienta ftp), na folder "cache" w katalogu "steam"
Jesli to jest wykonane, a testowe forum nie jest dajmy na to na yoyo.pl i dalej co? nie tak, to napisz objawy.
Ja proponowa?em pój?cie w innym kierunku, skoro Bartosz si? upiera.. cho? mam nadziej?, ?e powaznie potraktuje moje s?owa.. i przynajmniej b?dzie uwa?a?.., bo w ten sposób mo?e narazi? siebie i swoich friends na utrat? konta (hacking/phishing) na steam'ie
- Proponowa?em zintegrowa? moda, tj jego wpisy w plikach z ajaxowym skryptem, => dorzucaj?c katalog "steamprofile" do g?. katalogu forum obok katalogu "steam" i we wpisach modyfikacji w Display.template.php i w Who.template.php - odwo?anie si? do "steamprofile" zamiast do "steam", oczywi?cie tam te? trzeba ustawi? chmod 777 na folder "cache"
W paczce z ajaxowym steamem jest plik example w którym jest wszystko w miar? przejrzy?cie opisane, to nie jest skomplikowane, ale wymaga nawet ode mnie testów, jak wiesz w takich wypadkach nie lubie dawa? niesprawdzonych rzeczy..
Po rozpakowaniu steamprofile_ajax-2.0.2.zip maszw ?rodku folder "steamprofile" i to on powinien si? znale?? na serverze.
W ?rodku znajduja si? dwa style, a tu w ramce w moim po?cie jest ten plik example.html w ustawieniu stylu default,
Ustawia si? to w pliku "steamprofile.xml" i przyk?adowo masz od autora moda 2 style, jest ustawiony styl default:
<steamprofile-config>
<vars>
<!-- The Theme used by SteamProfile. Must be the name of a folder inside the "themes/" folder. -->
<var name="theme">default</var>
<!-- If set to true, the slider menu with icon links will be shown. -->
<var name="slidermenu">true</var>
<!-- If set to true, the banner of the currenty played game will be shown in the badge background. -->
<var name="gamebanner">true</var>
</vars>
<!-- The HTML templates for DOM manipulation. Change only if you know what you're doing. -->
// Created by GeSHi 1.0.8.10 | code: -› [code=XML] | load:0.001s | speed:1009.50 KB/s
Poni?ej niczego nie ruszaj..
Mo?esz zmieni? default na ten drugi czyli: tf2maps
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<steamprofile-config>
<vars>
<!-- The Theme used by SteamProfile. Must be the name of a folder inside the "themes/" folder. -->
<var name="theme">tf2maps</var>
<!-- If set to true, the slider menu with icon links will be shown. -->
<var name="slidermenu">true</var>
<!-- If set to true, the banner of the currenty played game will be shown in the badge background. -->
<var name="gamebanner">true</var>
</vars>
<!-- The HTML templates for DOM manipulation. Change only if you know what you're doing. -->
// Created by GeSHi 1.0.8.10 | code: -› [code=XML] | load:0.001s | speed:1022.23 KB/s
To taka brzydka be?owata i md?a skórka.. i tu mo?na by obrobi? layout.. to juz zostawiam..
Co do samego moda, to w tym przypadku, czyli ajax steamprofile, to odwo?aniem jest pusty div z ID i klas?, przyk?ad:
<!-- Each <div> with the class "steamprofile" will be automatically extended with the profile for the ID set in "title". The ID can be a Steam-ID, a Steam Community number (Steam-ID 64) or the profile alias. --> <div class="steamprofile" title="76561197965018417"></div> <div class="steamprofile" title="robinwalker"></div> <div class="steamprofile" title="STEAM_0:0:148902"></div> <div class="steamprofile" title="STEAM_0:1:20343018"></div> <div class="steamprofile" title="STEAM_0:1:10903138"></div> <div class="steamprofile" title="STEAM_0:1:16651803"></div> // Created by GeSHi 1.0.8.10 | code: -› [code=HTML] | load:0.002s | speed:283.32 KB/s
ten title musi by? dodawany modem, tj. kiedy wpiszesz swoje dane ze steama w swoim profilu.
Tylko ?e tu s? 2 kawa?ki skryptów w sekcji head. Do testów mo?na je wrzuci? direct do sekcji head w pliku index.template.php
Jednak to niez?e obci?gwy i nalezy je wg. mnie zastosowac punktowo, czyli tylko i wy??cznie w plikach Who.template.php (ten na razie zostaw..) i w pliku Display.template.php
Te kawa?ki js to:
<!--
The following tree lines are required for SteamProfile and must be included in <head>
1st line: SteamProfile uses jQuery, so you need to include the framework.
You can also use public URLs, e.g. [url]http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js[/url]
2nd line: The SteamProfile itself, must be included after jQuery
-->
<script type="text/javascript" src="steamprofile/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="steamprofile/steamprofile.js"></script>
</head>
// Created by GeSHi 1.0.8.10 | code: -› [code=Javascript] | load:0.001s | speed:508.98 KB/s
W ka?dym wypadku zastosuj kompletne linki (absolutne)
I kiedy testy b?d? ok, to wywal js z pliku index.template.php i daj pod diva ze steamem w Display.template.php
czyli teoretycznie powinno to wygl?da? tak:
tzn zamiast:
!empty($message['member']['options']['steam']) ? '<a href="http://www.steamcommunity.com/id/' . $message['member']['options']['steam'] . '" target="_blank"><img border="0" src="./steam/steam.gif" alt="' . $message['member']['options']['steam'] . '" title="'.$message['member']['options']['steam'].'"></a>' : '', // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.015s | speed:28.30 KB/s
hmm to idzie moim zdaniem w z?ym miejscu, ale trzeba trzyma? fason i nie robi? wszystkiego na raz, bo wyjdzie groch z kapust? i nie b?dzie wida? przyczyny..
ale ok, po prostu z g?owy nie pami?tam gdzie to sie ko?czy, ale jak s?dz? to idzie na lew? stron? gdzie avatar i dane usera, zaraz po komunikatorach
okay ! ju? wiem, to jest sama kontrolka, tak jak przy komunikatorach..
Wiem jak to zrobi?..
Zainstaluj moda na testowym on-line, nadaj chmod 777 na folder "cache" w katalogu "steam" (ten od moda), oczywi?cie nale?y spolszczy?, lub dopisac po angielsku do piku Modyfication.polish.php w katalogu Language to:
$txt['steam'] = 'Steam';
$txt['steam_username'] = 'Your Steam Commuity URL <i>[url]http://steamcommunity.com/id/[/url]<b>name</b></i>';
$txt['steam_error_noxml'] = 'SimpleXML is not avaiable!<br />This could be because of incorrect PHP version (5 or above).';
$txt['steam_error_unset_id'] = 'User has not been set!';
$txt['steam_error_invaliduser'] = 'That user does not seem to exist!';
// End of mod Stem
// Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.014s | speed:32.77 KB/s
- Nast?pnie skopiuj z paczki ajxowej ca?y katalog "streamprofile" (tylko ten ca?y katalog, który jest w ?rodku paczki)
- Nadaj na holder "cache" chmod 777
<reklama lub przerwa na szukanie czystego pliku Display..templ..>
ok mam!
W pliku Display.template dopiszemy kawa?ek kodu, pomi?dzy sydnatur? a samym postem, czyli b?dzie pod postem, jesli b?dzie ok, to umiejscowic to w dowolnym miejscu, to 5 minut pracy..
Jednak tu uwaga!
Go?ciu zastosowa? najnowsze framwerki i je?li ma zadzia?a? to na hostingu musi by? mo?liwo?? php5, jesli jest to ok, tylko jeszcze trzeba to w?. za pomoc? .htaccess, ale to jak nie zadzia?a. nale?y to jednak sprawdzi? w PA >> drugi link po lewej od góry --> "O SMF..." tam bedzie wersja php
Mod ma jeszcze inne wymagania, tj potrzebyje w?. na hostingu biblioteki cURL, orad biblioteki GD min v2.0
Ale potestowa? mo?esz ..

i ko?cowa kwestia.. nale?y doda? ten banerek z opcjami. pisze to tylko na podstawie czystego pliku Display.template php ze stylu default..
Znajd? to miejsce (oko?o linii ~443 tam gdzie:
// Now for the attachments, signature, ip logged, etc...Czyli:
// Now for the attachments, signature, ip logged, etc... echo '
<tr
> <td valign
="bottom" class="smalltext" width
="85%"> <table width
="100%" border
="0" style
="table-layout: fixed;"><tr
> <td colspan
="2" class="smalltext" width
="100%">';
// Assuming there are attachments... if (!empty($message['attachment'])) // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.019s | speed:18.87 KB/s
to przed // Assuming there are attachments... wstawi? mój kawa?ek wywo?ania buttona steamprofile ??cznie z javascript, oczywi?cie w za?o?eniu, ?e katalog "steamprofile znajduje si? w g?. katalogu forum...
// Now for the attachments, signature, ip logged, etc... echo '
<tr
> <td valign
="bottom" class="smalltext" width
="85%"> <table width
="100%" border
="0" style
="table-layout: fixed;"><tr
> <td colspan
="2" class="smalltext" width
="100%">';
// SteamProfile by roco if (!empty($message['member']['options']['steam']))
{ echo
'
<script type
="text/javascript" src
="./steamprofile/jquery-1.3.2.min.js"></script> <script type
="text/javascript" src
="./steamprofile/steamprofile.js"></script> <div
class="steamprofile" title
="' . $message['member']['options']['steam'] . '"></div
> ';
} // Assuming there are attachments... if (!empty($message['attachment'])) // Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.019s | speed:39.46 KB/s
To powinno by? ok. w sumie dziecinada, mówi?em o tym wy?ej, ?e integra to zabawa w html'owe s?upki.. moda te? mo?na z tego zrobi?..
Jednak mod ajaxowy stawia warunki, które w przypadku nie spe?nienia uniemozliwi? wy?wietlenie tego moda ajaxowego w ogóle..
Cieplutki, poradzisz sobie? jestem pewien tego co napisa?em bez przeprowadzania testów, ale obiecuj? to przetestowa?..
Mo?esz to:
// Created by GeSHi 1.0.8.10 | code: -› [code=PHP] | load:0.017s | speed:1.24 KB/s
Zapisa? jako info.php, wrzuci? do katalogu "steamprofile" i wywo?a? w przegl?darce, zobaczysz co jest pow??cane w php itd..
W pliku .htaccess mo?esz da? tak:
AddHandler application/x-httpd-php5 .php .inc
Action application/x-httpd-php5 "/php/php"
// Created by GeSHi 1.0.8.10 | code: -› [code=Apache configuration] | load:0.003s | speed:29.57 KB/s
I wrzuci? ten plik .htaccess do katalogu "steamprofile" mo?esz jeszcze dopisac jak nie zadzia?a:
- wytnij drug? lini?
- ew. dopisz kawa?ek, ?eby by?o tak:
AddHandler application/x-httpd-php5 .php .inc
Action application/x-httpd-php5 "/php/php"
RewriteEngine on
RewriteRule ^id/(. )/?$ steamprofile.php?id=$1 [L]
// Created by GeSHi 1.0.8.10 | code: -› [code=Apache configuration] | load:0.003s | speed:54.20 KB/s
Cieplutki, wszystko rób po kolei, robisz jedno, sprawdzasz, dopiero drugie, ok?
Dobra bedzie chwila to sprawdz? to sam, jednak jestem pewien, ?e kod do pliku Display.template.php i sposób poda?em prawid?owy, jest to wynik logicznego my?lenie, a nie przeprowadzonych testów, wi?c wszystko mozliwe, okay?
Pozdrówka

roco