Mica actualizare de optimizare

Vezi subiectul anterior Vezi subiectul urmator In jos

Mica actualizare de optimizare

Mesaj Scris de Admin la data de Mar 12 Mai - 16:45

Buna tuturor,

Am efectuat cateva modificari cu scopul de a stabiliza sesiunile membrilor care au ales pseudo care contin caractere speciale si pentru a asigura buna functionare a acestora.
Administratorii care au modificat templateurile si care au versiunea phpbb2, sunt rugati sa aplice modificarile de mai jos, care garanteaza buna functionare a forumurilor lor. Daca nu s-a umblat la templateuri atunci nu trebuie sa faceti nimic, modificarile sunt automate.


--> overall_header_new
Spoiler:
€ Sub
Cod:
<script src="/{JS_DIR}/jquery.js"
type="text/javascript"></script>
Adaugati :
Cod:
<script
src="/{JS_DIR}/jquery/jqmodal/jqmodal.js"
type="text/javascript"></script>
--> simple_header
Spoiler:
€ Inlocuiti totul cu :
Cod:
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="{S_CONTENT_DIRECTION}" lang="{L_LANG_HTML}"
xml:lang="{L_LANG_HTML}" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;
charset={S_CONTENT_ENCODING}" />
<title>{SITENAME} :: {PAGE_TITLE}</title>
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
{META}
{T_HEAD_STYLESHEET}
<link rel="shortcut icon" type="image/x-icon" href="favicon2.ico">
<script src="/{JS_DIR}/jquery.js" type="text/javascript"></script>
<script src="/{JS_DIR}/jquery/jqmodal/jqmodal.js"
type="text/javascript"></script>
<script src="/{JS_DIR}/{L_LANG}.js" type="text/javascript"></script>
</head>
<body background="{T_BODY_BACKGROUND}" bgcolor="{T_BODY_BGCOLOR}"
text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
<span class="gen"><a name="top"></a></span>
--> groupcp_info_body
Spoiler:
€ Inlocuiti
Cod:
            <!-- END switch_grp_admin -->
            <tr>
                <td class="catBottom" colspan="8" align="right">
                    <table width="100%" border="0" cellspacing="0"
cellpadding="0" align="center">
                        <tr>
                            <td align="left" valign="top">
                                <span class="genmed"><input class="post"
type="text" name="username" size="20" maxlength="25" />&nbsp;<input
class="mainoption" type="submit" name="add" value="{L_ADD_MEMBER}"
/>&nbsp;<input class="liteoption"
onclick="window.open('{U_SEARCH_USER}', '_forumactifsearch',
'HEIGHT=250,resizable=yes,WIDTH=400');return false;" type="submit"
name="usersubmit" value="{L_FIND_USERNAME}" /></span>
                            </td>
                            <td><span class="cattitle"><input
class="mainoption" type="submit" name="remove"
value="{L_REMOVE_SELECTED}" /></span></td>
                        </tr>
                    </table>
                </td>
            </tr>
        <!-- END switch_mod_option -->
Cu :
Cod:
            <!--
END switch_grp_admin -->
            <tr>
                <td class="catBottom" colspan="8" align="right">
                    <table width="100%" border="0" cellspacing="0"
cellpadding="0" align="center">
                        <tr>
                            <td align="left" valign="top">
                                <span class="genmed"><input class="post"
type="text" id="username" name="username" size="20" maxlength="25"
/>&nbsp;<input class="mainoption" type="submit" name="add"
value="{L_ADD_MEMBER}" />&nbsp;<input type="button" class="liteoption"
id="find_user" value="{L_FIND_USERNAME}" /></span>
                            </td>
                            <td><span class="cattitle"><input
class="mainoption" type="submit" name="remove"
value="{L_REMOVE_SELECTED}" /></span></td>
                        </tr>
                    </table>
                </td>
            </tr>
        <!-- END switch_mod_option -->
Si adaugati la sfarsit
:
Cod:
<div id="find_username" class="jqmWindow"></div>
<script type="text/javascript">
//<![CDATA[
    $(document).ready(function(){
        function find_username(fieldname) {
            $.get('{U_SEARCH_USER}&fieldname=' + fieldname + '&time=' +
timestamp(), '',
                function(data){
                    $('#find_username').html(data).jqmShow();
                    $('.jqmOverlay').bgiframe();
                    $('#find_username').bgiframe();
                });
            return false;
        }
        $('#find_user').click(function(){
            return find_username('username');
        });
        $('#find_username').jqm({toTop: true});
    });
//]]>
</script>
--> posting_body si posting_body_wysiwyg
Spoiler:
€ Inlocuiti
Cod:
<!-- BEGIN switch_privmsg -->
<tr>
<td class="row1" width="22%"><span
class="gen"><b>{L_USERNAME}</b></span></td>
<td class="row2" width="78%"><span class="genmed"><input type="hidden"
name="ismp" value="1"><input class="post" type="text" name="username"
value="{USERNAME}" size="25" tabindex="1"
onkeyup="if(this.value!=''){if(this.form.userfriend){this.form.userfriend.selectedIndex=0;this.form.userfriend.disabled=1;}if(this.form.usergroup){this.form.usergroup.selectedIndex=0;this.form.usergroup.disabled=1;}}else{if(this.form.userfriend)this.form.userfriend.disabled=0;if(this.form.usergroup)this.form.usergroup.disabled=0;}">&nbsp;<input
class="liteoption" type="button" name="usersubmit"
value="{L_FIND_USERNAME}" onclick="window.open('{U_SEARCH_USER}',
'_forumactifsearch', 'width=400,height=250,resizable=1');"></span></td>
</tr>
<!-- BEGIN switch_privmsg_friend -->
Cu :
Cod:
<!-- BEGIN
switch_privmsg -->
<tr>
    <td class="row1" width="22%"><span
class="gen"><b>{L_USERNAME}</b></span></td>
    <td class="row2" width="78%">
        <span class="genmed">
            <!-- BEGIN switch_username -->
            <input class="post" style="margin:1px 0;" type="text"
name="username[]" value="{switch_privmsg.switch_username.USERNAME}"
size="25" /><br />
            <!-- END switch_username -->
            <input class="post" style="margin:1px 0;" type="text"
id="username" name="username[]" value="{USERNAME}" size="25"
tabindex="1" />&nbsp;
            <img id="add_username" src="{ADD_USERNAME_IMG}"
class="selectHover" alt="" />&nbsp;
            <input class="liteoption" type="button" id="find_user"
value="{L_FIND_USERNAME}" />
        </span>
    </td>
</tr>
<!-- BEGIN switch_privmsg_friend -->
Si adaugati la sfarsit
:
Cod:
<div id="find_username" class="jqmWindow"></div>
<script type="text/javascript">
//<![CDATA[
    $.add_username = function(){
        $('input[name^=username]:last').after('<br /><span
class="genmed"><input class="post" style="margin:1px 0;" type="text"
name="username[]" size="25" /></span>').attr('disabled',
$('select[name=userfriend]').val() || $('select[name=usergroup]').val()
? 'disabled' : '');
    };
    $(document).ready(function(){
        function find_username(fieldname) {
            $.get('{U_SEARCH_USER}&fieldname=' + fieldname + '&time=' +
timestamp(), '',
                function(data){
                    $('#find_username').html(data).jqmShow();
                    $('.jqmOverlay').bgiframe();
                    $('#find_username').bgiframe();
                });
            return false;
        }
        function total_username() {
            var total = '';
            $('input[name^=username]').each(function(){
                total += $(this).val();
            });
            return total;
        }
        $('input[name^=username]').live('change', function(){
         
 $('select[name=userfriend],select[name=usergroup]').attr('disabled',
total_username() ? 'disabled' : '');
        });
        $('select[name=userfriend]').change(function(){
         
 $('input[name^=username],#find_user,select[name=usergroup]').attr('disabled',
$('select[name=userfriend]').val() ? 'disabled' : '');
        });
        $('select[name=usergroup]').change(function(){
         
 $('input[name^=username],#find_user,select[name=userfriend]').attr('disabled',
$('select[name=usergroup]').val() ? 'disabled' : '');
        });
        $('#find_user').click(function(){
            return find_username('username');
        });
        $('#add_username').click(function(){
            if ( !$('input[name^=username]:last').attr('disabled') )
                $.add_username();
        });
        if ( total_username() )
         
 $('select[name=userfriend],select[name=usergroup]').attr('disabled',
'disabled');
        else if ( $('select[name=userfriend]').val() )
         
 $('input[name^=username],#find_user,select[name=usergroup]').attr('disabled',
'disabled');
        else if ( $('select[name=usergroup]').val() )
         
 $('input[name^=username],#find_user,select[name=userfriend]').attr('disabled',
'disabled');
        $('#find_username').jqm({toTop: true});
    });
//]]>
</script>
<!-- END switch_privmsg -->


Au mai fost adăugate și alte mici actualizări:

- Mai multe informații pentru membrii excluși:



- O așezare mai buna a listei de prieteni:



- De acum înainte puteți trimite același Mesaj Privat la oricâți utilizatori doriți:




In timpul efectuarii actualizarii, pot exista probleme de conexiune, de publicare a mesajelor si de infatisare a forumului. Va rugam sa asteptati vreo ora, doua si problemele vor disparea. Va multumim pentru intelegere

Forumgratuit

Admin
Administrator
Administrator

masculin

Mesaje : 872
Data de inscriere : 14/12/2007
Multumiri : 13
Niciun avertisment

http://help.forumgratuit.ro

Sus In jos

Vezi subiectul anterior Vezi subiectul urmator Sus

- Subiecte similare

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum