- Translated by Terra. from phpBB[dot]com
phpBB database
In viewtopic_body adaugam un nou camp numit POSTER_STEAMID!Cod: Selectaţi tot
ALTER TABLE `phpbb_users` ADD `user_steamid` VARCHAR(255) NOT NULL AFTER `user_interests`
Deschidem styles/prosilver/templates/viewtopic_body.html.
Cautam linia.Si dupa ea adaugam.Cod: Selectaţi tot
<!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
Cod: Selectaţi tot
<!-- IF postrow.POSTER_STEAMID --><dd><strong>{L_STEAMID}:</strong> <a href="http://steamcommunity.com/id/{postrow.POSTER_STEAMID}">{postrow.POSTER_STEAMID}</a></dd><!-- ENDIF -->
Acum deschidem viewtopic.php.
Cautam linia.Si dupa ea adaugam.Cod: Selectaţi tot
'from' => '',
Cautam linia.Cod: Selectaţi tot
[b] 'steamid' => '',[/b]
Si dupa ea adaugam.Cod: Selectaţi tot
'from' => (!empty($row['user_from'])) ? $row['user_from'] : '',
Cautam linia.Cod: Selectaţi tot
'steamid' => (!empty($row['user_steamid'])) ? $row['user_steamid'] : '',
Si dupa ea adaugam.Cod: Selectaţi tot
'POSTER_FROM' => $user_cache[$poster_id]['from'],
Deschidem styles/prosilver/templates/ucp_profile_profile_info.htmlCod: Selectaţi tot
'POSTER_STEAMID' => $user_cache[$poster_id]['steamid'],
Cautam linia.Si dupa ea adaugam.Cod: Selectaţi tot
<dl> <dt><label for="location">{L_LOCATION}:</label></dt> <dd><input type="text" name="location" id="location" maxlength="255" value="{LOCATION}" class="inputbox" /></dd> </dl>
Deschidem includes/ucp/ucp_profile.phpCod: Selectaţi tot
<dl> <dt><label for="steamid">{L_STEAMID}:</label></dt> <dd><input type="text" name="steamid" id="steamid" maxlength="255" value="{STEAMID}" class="inputbox" /></dd> </dl>
Cautam linia.Si adaugam dupa ea.Cod: Selectaţi tot
'interests' => utf8_normalize_nfc(request_var('interests', $user->data['user_interests'], true)),
Cautam linia.Cod: Selectaţi tot
'steamid' => utf8_normalize_nfc(request_var('steamid', $user->data['user_steamid'], true)),
Si adaugam dupa ea.Cod: Selectaţi tot
'interests' => array('string', true, 2, 500),
Cautam linia.Cod: Selectaţi tot
'steamid' => array('string', true, 2, 255),
Si adaugam dupa ea.Cod: Selectaţi tot
'INTERESTS' => $data['interests'],
Deschidem language/en/common.phpCod: Selectaţi tot
'STEAMID' => $data['steamid'],
Cautam linia.Si adaugam dupa.Cod: Selectaţi tot
'START_WATCHING_TOPIC' => 'Subscribe topic',
Deschidem memberlist.phpCod: Selectaţi tot
'STEAMID' => 'Steam ID',
Cautam linia.Adaugam dupa.Cod: Selectaţi tot
'U_JABBER' => ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&action=jabber&u=' . $user_id) : '',
Cautam linia.Cod: Selectaţi tot
'U_STEAMID' => ($data['user_steamid']) ? 'http://steamcommunity.com/id/' . $data['user_steamid'] : '',
Adaugam dupa.Cod: Selectaţi tot
'USER_JABBER_IMG' => ($data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',
Cod: Selectaţi tot
'USER_STEAMID' => $data['user_steamid'],
Deschidem styles/prosilver/templates/memberlist_view.html
Cautam linia.Adaugam dupa.Cod: Selectaţi tot
<!-- IF S_PROFILE_FIELD_1 -->
PURGE CACHE din Administration control panel(Panou administrare) si asta este totCod: Selectaţi tot
<!-- IF U_STEAMID and USER_STEAMID --><dt>{L_STEAMID}:</dt> <dd><a href="{U_STEAMID}">{USER_STEAMID}</a><!-- ENDIF -->
.
Have fun with editing.
Cod: Selectaţi tot
Autor Terra
acum am versiunea 3.0.10, dupa instalarea modului exact ca in tutorial, la inregistrarea userilor primeam urmatoarea eroare:
Cod: Selectaţi tot
SQL ERROR [ mysqli ]
Field 'user_steamid' doesn't have a default value [1364]
An SQL error occurred while fetching this page. Please contact the Board Administrator if this problem persists.
poza 1
http://imageshack.us/photo/my-images/824/poza2y.png/
poza 2 unde am scris eu.
http://imageshack.us/photo/my-images/534/poza1z.png/
Acuma merge sa te inregistrezi fara sa mai dea eroare, dar nu mai functioneaza corect modul, uitati o poza cum arata in profil
http://imageshack.us/photo/my-images/825/poza3h.png/
Cum asi putea remedia aceasta problema, va rog frumos sa am ajutati si pe mine, doresc sa pun acest mod pe forum