Nicko keitimo uždraudimas
Parašė _Tomas 2008 gegužės 2 21:05:20
Pirmas ir trumpas straipsnis kuriame bus aprašyta kaip uždrausti nariui keistis [i]nick'a.[/i]

[b]1)[/b] Atsidarome edit_profile.php

[b]2)[/b] Susirandame:

[code]echo "<tr>
<td class='tbl'>".$locale['u001']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'><input type='text' name='user_name' value='".$userdata['user_name']."' maxlength='30' class='textbox' style='width:200px;'></td>
</tr>[/code]

[b]3)[/b] Keičiame į:

[code]echo "<tr>
<td class='tbl'>".$locale['u001']."<span style='color:#ff0000'>*</span></td>
<td class='tbl'>".$userdata['user_name']."</td>
</tr>[/code]

[b]4)[/b] Atsidarome administration/members.php

[b]5)[/b] Susirandame:

[code]<td class='tbl'><input type='text' name='user_name' value='".$data['user_name']."' maxlength='30' class='textbox' style='width:200px;'></td>[/code]

[b]6)[/b] Keičiame į:

[code]<td class='tbl'>".$data['user_name']."</td>
[/code]

[b]7)[/b] Išsaugojame, uploadiname į FTP.

[b][color=black]Blood[/color][color=black]Killer[/color] papildymas:[/b]

Jei norite iki galo uždrausti keistis nick'ą, tuomet atsidarykite dar includes/upadate_profile_include.php, susiraskite:

[code]$username = trim(eregi_replace(" +", " ", $_POST['user_name']));[/code]
ir pakeiskite tai į:

[code]$username = $userdata['user_name'];[/code]