Global Network RP

Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.
Salut, adauga acum in lista ta de messenger id-ul de contact oficial al comunitatii GlobalNetwork : reteaua_global . Acest ID va sta la dispozitie , fie ca aveti probleme cu accountul dumneavoastra, fie ca doriti sa cereti relatii cu privire la comunitatea Global Network. Multumim , conducerea Global Network .

2 participanți

    [phpbb]Visual warning mod

    sTefaNNN
    sTefaNNN
    Moderator
    Moderator


    Mesaje : 227
    Reputatie : 0
    Data de inscriere : 17/01/2011
    Localizare : /gotics/Samp/GlobalNetworkTHEBEST

    [phpbb]Visual warning mod Empty [phpbb]Visual warning mod

    Mesaj  sTefaNNN Dum Ian 23, 2011 1:36 pm

    Descriere: Adaugă la profil câte avertismente are utilizatorul respectiv.
    Imagine

    Imagine
    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 -->



    Înlocuiţi 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 -->
    <!-- IF U_NOTES -->[ <a href="{U_NOTES}">{L_VIEW_NOTES}</a> <!-- IF U_WARN --> | <a href="{U_WARN}">{L_WARN_USER}</a> <!-- ENDIF -->]<!-- ENDIF -->
    <!-- ENDIF -->




    * 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 dupa:


    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 dupa:


    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 dupa:


    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,
    avatar
    NarTiQuaN
    Wannabe Don
    Wannabe Don


    Mesaje : 221
    Reputatie : 0
    Data de inscriere : 19/01/2011

    [phpbb]Visual warning mod Empty Re: [phpbb]Visual warning mod

    Mesaj  NarTiQuaN Lun Ian 24, 2011 4:08 am

    tare , dar cam toate astea au mai fost puse pe forum

      Data/ora curentă este: Sam Sept 28, 2024 1:45 pm