radu*wTh
Mesaje : 81 Data de inscriere : 08/04/2012 Varsta : 30 Localizare : Alba-Iulia
| Subiect: Visual warning mod phpbb3 Vin Apr 13, 2012 3:05 am | |
| Descriere: Adaugă la profil câte avertismente are utilizatorul respectiv. Fişiere de editat:[*]viewtopic.php [*]memberlist.php [*]styles/tema forumului/template/memberlist_view.html [*]styles/tema forumului/template/viewtopic_body.html [*]language/en/common.php Instalare:Deschideţi language/en/common.php:Cautati:
- Cod:
-
'CURRENT_TIME' => 'It is currently %s', Adaugati dupa: - Cod:
-
CURRENTLY_BANNED' => 'CURRENTLY BANNED', Deschideti styles/tema forumului/template/memberlist_view.html:Cautati: - Cod:
-
<!-- IF U_NOTES or U_WARN --> <dt>{L_WARNINGS}: </dt> <dd><strong>{WARNINGS}</strong> [ <a href="{U_NOTES}">{L_VIEW_NOTES}</a> <!-- IF U_WARN --> | <a href="{U_WARN}">{L_WARN_USER}</a> <!-- ENDIF --> ]</dd> <!-- ENDIF --> Inlocuiti cu : - Cod:
-
<!-- IF USERID_BANNED --> <strong>{L_CURRENTLY_BANNED}</strong> <!-- IF U_NOTES -->[ <a href="{U_NOTES}">{L_VIEW_NOTES}</a> ]<!-- ENDIF --> <!-- ELSEIF WARNINGS -->
<tr> <td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_WARNINGS}: </td> <td><b class="gen">{WARNINGS}</b><span class="genmed"><!-- IF U_NOTES -->[ <a href="{U_NOTES}">{L_VIEW_NOTES}</a> <!-- IF U_WARN --> | <a href="{U_WARN}">{L_WARN_USER}</a> <!-- ENDIF -->]<!-- ENDIF --></td> </tr>
<!-- ELSE --> Deschideti styles/tema forumului/template/viewtopic_body.html:Cautati: - Cod:
-
<!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF --> Adaugati: - Cod:
-
<!-- IF postrow.S_USERID_BANNED --><dd><strong>{L_CURRENTLY_BANNED}</strong></dd><!-- ELSEIF postrow.POSTER_WARNINGS --><dd><strong>{L_WARNINGS}:</strong> {postrow.POSTER_WARNINGS}</dd><!-- ENDIF --> Deschideti memberlist.php:Cautati: - Cod:
-
// Get user... $sql = 'SELECT * FROM ' . USERS_TABLE . ' WHERE ' . (($username) ? "username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'" : "user_id = $user_id"); Adaugati : - Cod:
-
// Get user... $sql = 'SELECT u.*, b.* FROM ' . USERS_TABLE . ' u LEFT JOIN ' . BANLIST_TABLE . ' b ON (u.user_id = b.ban_userid) WHERE ' . (($username) ? "u.username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'" : "u.user_id = $user_id"); Cautati: - Cod:
-
trigger_error('NO_USER'); Adaugati dupa: - Cod:
-
// see if the user is banned $is_banned = false; if ($member['ban_end'] >= time() || $member['ban_end'] == '0') { $is_banned = true; } Cautati: - Cod:
-
'AVATAR_IMG' => $poster_avatar, Adaugati dupa : - Cod:
-
USERID_BANNED' => $is_banned, Deschideti viewtopic.php:
Cautati:
- Cod:
-
unset($id_cache); Adaugati: - Cod:
-
// BEGIN BAN TEST $sql = 'SELECT b.*, u.user_id FROM ' . BANLIST_TABLE . ' b, ' . USERS_TABLE . ' u WHERE (b.ban_end >= ' . time() . ' OR b.ban_end = 0)'; $result = $db->sql_query($sql); $ban_list = array(); while ($row2 = $db->sql_fetchrow($result)) { $ban_list[] = $row2['ban_userid']; } $db->sql_freeresult($result); // END BAN TEST Cautati: - Cod:
-
'U_SEARCH' => $user_cache[$poster_id]['search'], Adaugati dupa: - Cod:
-
'S_USERID_BANNED' => (in_array($poster_id, $ban_list)) ? true : false, [*] Şterge-ţi cache. Să scrii Avertismente intri în forum/language/en/common.php si cauţi: - Cod:
-
'WARNINGS' => 'Warnings', Înlocuieşti warnings cu Avertismente. | |
|