-
Instalacja Stam profile
Znalazłem pewna modyfikacje STEAM PROFILE . Lecz nie moge dojsc jak ja wgrac . Czy mogl by ktos wytlumaczyc / przelozyc z jezyka angielskiego na polski . Moim zdaniem instrukcja podana tam nie jest dokladna wiec prosze o pomoc .
Podaje wszystko tak jak tam jest prosze o pomoc:
This is something that will give your users an ability to view member's status for their STEAM account. Offline/online/games playing/etc.
You can find an example here:
TF2Maps.net
Just look at any thread and find a post. The widget should be in the upper right hand corner of the post.
Nothing has to be installed on your server.
Step 1
Create a custom user profile field. Name it Steam ID.
Kod:
Single-Line Text Box Editable, Searchable, Members List
Find what your field id is. It should look something like fieldx where x is the number.
Step 2
Plug your field id in to the following code Kod:
<if condition="$post['fieldx']"><iframe src="http://steamprofile.com/profile/default/sphtml.php?id=$post[fieldx]" align="right" width="254" height="48" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></if>
Make sure to change x to your id.
Step 3
Place the code in step 2 that has been changed to reflect your profile field after
Kod:
$template_hook[postbit_messagearea_start]
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
in your postbit or postbit_legacy (depending on what you use) template
If you would just like to have the options of having the status as sigs, visit Steam Profile.com
-
-
Installation
1. Download attached "steamprofile_vb4_1.0.1.zip".
2. Expand and upload the "steamprofile" folder into your forum's root directory.
3. Go to AdminCP > Styles & Templates > Style Manager > Common Templates.
4. Add the following to a new line at the bottom of your "headinclude":
Code:
<script type="text/javascript" src="steamprofile/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="steamprofile/steamprofile.js"></script>
5. Save.
6. Go to AdminCP > User Profile Fields > Add New User Profile Field > Single-Line Text Box.
7. Enter in what ever title and description you want.
8. Optional To only accept Steam IDs add the following to "Regular Expression":
Code:
STEAM_[0-9]:[0-9]:[0-9]{4,}
9. Change the "Display Page" option to "Options: Other".
10. Save.
11. Make note of the field number (ex field5).
12. Go to AdminCP > Styles & Templates > Style Manager > Edit Templates > Postbit Templates > postbit_legacy.
13. Find the following line:
Code:
<vb:if condition="$post['title'] OR $show['messageicon']">
14. Replace fieldX, in both locations, in the following line of code with your noted field number from above. Then add the code to a new line after the previous line:
Code:
<vb:if condition="$post['fieldX']"><div class="steamprofile" title="{vb:raw post.fieldX}" style="float: right;"></div></vb:if>
15. Save. Finished.
Versja PL
1. Sciagnij załącznik "steamprofile_vb4_1.0.1.zip".'
2. Rozpakuj i wrzuc Folder "steamprofile" do glownego folderu forum
3. Idz do Panelu admna > Style i szablony > zarzadzaj stylem > WYBIERZ SWOJ STYL
4. Donajdz headinclude i na dole dodaj kody :
Kod:
<script type="text/javascript" src="steamprofile/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="steamprofile/steamprofile.js"></script>
5.Zapisz
6. Idz do Panelu Admina > Pola w profilu Uzytkowinika Dodaj > Nowe Pole Profilu Użytkownika > Single-Line Text Box.
7. Wpisz jaka chcesz nazwe i opis (wyswietla sie w profilu do uzupelnienia, wiec moze poprostu Steam ID a opis Twoj Steam ID)
8. Na dole podczas dodawania masz "Wyrażenie regularne" jak wpiszesz Kod:
STEAM_[0-9]:[0-9]:[0-9]{3,}
akceptowane beda tylko nr wg wzoru
9. - W polu ktore dodales, wejdz w edycje na dole masz Display Page tu wybierz "Opcje : inny"
10. Zapisz
11.Sprawdz pole ktore dodales jaki ma nr, ten nr jest wazny, dlaczego, o tym ponizej
12. Idz do Panelu Admina > Style i szablony > zarzadzaj stylem > w Edycji Szablonow odnajdz Postbit Templates > postbit_legacy
13. W tym szablonie znajdz kod
Kod:
<vb:if condition="$post['title'] OR $show['messageicon']">
i zamien go na kod
Kod:
<vb:if condition="$post['fieldX']"><div class="steamprofile" title="{vb:raw post.fieldX}" style="float: right;"></div></vb:if>
TU WAZNE pole fieldX - tu muszisz wpisać nr swojego pola (pt 11) czyli np field5
musisz fieldX na field+nr twojego pola - zamienic w dwóch miejscach w nowym kodzie
15. zapisz - fin
no mi wlasnie cos nie lata,ale w teorii tak to powinno wygladac
nie wyswietla mi tego w postach
(tlumaczenie z versji dla VBv4)
-
hmm a mogl bys cos takiego wykonac dla wersji 3.8 ?
-
This is something that will give your users an ability to view member's status for their STEAM account. Offline/online/games playing/etc.
You can find an example here:
TF2Maps.net
Just look at any thread and find a post. The widget should be in the upper right hand corner of the post.
Nothing has to be installed on your server.
Step 1
Create a custom user profile field. Name it Steam ID.
Code:
Single-Line Text Box Editable, Searchable, Members List
Find what your field id is. It should look something like fieldx where x is the number.
Step 2
Plug your field id in to the following code
Code:
<if condition="$post['fieldx']"><iframe src="http://steamprofile.com/profile/default/sphtml.php?id=$post[fieldx]" align="right" width="254" height="48" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></if>
Make sure to change x to your id.
Step 3
Place the code in step 2 that has been changed to reflect your profile field after
Code:
$template_hook[postbit_messagearea_start]
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
in your postbit or postbit_legacy (depending on what you use) template
If you would just like to have the options of having the status as sigs, visit Steam Profile.com
Instalacja steamprofile PL VB v3.8
1. Idz do Panelu Admina > Pola w profilu Uzytkowinika Dodaj > Nowe Pole Profilu Użytkownika >
z atrybutami Single-Line Text Box Editable, Searchable, Members List
2.w kod
Kod:
<if condition="$post['fieldx']"><iframe src="http://steamprofile.com/profile/default/sphtml.php?id=$post[fieldx]" align="right" width="254" height="48" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></if>
zamiast X wklej nr swojego nowo stworzonego pola (w pt 1)
3. wklej swój nowo stworzony kod do :postbit albo postbit_legacy (zalezy jakiego wyswietlania postów urzywasz)
ponizej kodu :
Kod:
$template_hook[postbit_messagearea_start]
<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
Powinno Latać :)
-
Wyswietla mi sie cos takiego a dodawalem na rozne sposoby steam id :
http://img51.imageshack.us/img51/5948/0000lp.jpg
-
no jak nie masz
masz do
Kod:
<!-- icon and title -->
a ja mam vb4 wiec u mnie jest inaczej
wklej za tym i zobacz czy lata
ja i siebie mam podobnie na vb 4
tu nawet opisalem :)
SteamProfile Integration - Page 5 - vBulletin.org Forum
zobaczymy co odpisze tworca
-
Juz doszedlem o co chodzi bo steam wprowadzil aktualizacje i kod sie zmienil ale dzieki za pomoc
-
Mógłbyś opisać i pokazać jak Ci to działa ?:) Potrzebuje tego :). Jak możesz to PM albo odpisz w temacie.
-
Prosze , podmieniasz tamten kod tym
<if condition="$post['fieldx']"><iframe src="http://steamprofile.com/steam/profile/steamprofile/$post[fieldx].png" align="right" width="254" height="48" scrolling="no" marginheight="0" marginwidth="0" frameborder="0"></iframe></if>