PDA

View Full Version : Giúp em xóa dòng tên đăng nhập trong cái ô đăng nhập



kienvictory
18-08-2010, 11:32 PM
Ở cái ô đăng nhập của em nó có chữ "tên đăng nhập" trong đó! Bình thường mình tick vào là nó tự mất nhưng em thì toàn phải tự xóa chứ không mất! ai chỉ em cách khắc phục với!
ảnh:
1724
đó em tích vào rồi mà nó ko mất!

so1.com.vn
20-08-2010, 10:16 AM
bạn thử đổi skin khác xem có còn bị không vì một số skin quá nặng nên bị lỗi như vậy

admin
20-08-2010, 10:38 AM
Không biết bạn dùng skin nào, nếu bạn dùng skin giống ITVNN thì tìm vào thay lại toàn bộ đoạn code sau:

<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=384"></script>

<ul>

<li ><span class="loginTxt">Login:</span></li>
<li class="inputPad"><div class="loginBoxInput"><input type="text" class="loginInput" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" /><input type="text" class="textbox default-value" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="10" value="{vb:rawphrase password}" style="display:none;" /></div></li>
<li class="inputPad"><div class="loginBoxInput"><input type="password" class="loginInput" tabindex="102" name="vb_login_password" id="navbar_password" size="10" /></div></li>
<li class="rememberMe"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label></li>
<li class="searchButton"><input type="image" src="images/styles/AnimatedArena/style/loginButton.gif" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" /></li>
</ul>

<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<script type="text/javascript">
YAHOO.util.Dom.setStyle('navbar_username', "color", "#828282");
vB_XHTML_Ready.subscribe(function()
{
//
YAHOO.util.Event.on('navbar_username', "focus", navbar_username_focus);
YAHOO.util.Event.on('navbar_username', "blur", navbar_username_blur);
});

function navbar_username_focus(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);
if (textbox.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>')
{
//
textbox.value='';
textbox.style.color='black';
}
}

function navbar_username_blur(e)
{
//
var textbox = YAHOO.util.Event.getTarget(e);
if (textbox.value == '')
{
//
textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>';
textbox.style.color='#828282';
}
}
</script>
<!-- / login form -->Còn nếu là skin khác thì bạn nghiên cứu đoạn code trên sửa lại cho phù hợp hoặc bỏ luôn chữ Ký danh trong ổ đăng nhập bằng cách tìm trong template header đoạn code sau:

value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>"Thay thế bằng:

value="<vb:if condition="$username">{vb:raw username}<vb:else /></vb:if>"

vuhongtong
20-08-2010, 11:19 AM
Cái này hình như ko phải do skin...mình chọn skin là mặc định mà vẫn bị. Trc mình dùng vb4.0.2 thì ko sao, update lên 4.0.3 thì thấy bị.nhưng khi up thử lên 4.0.5 thì vẫn bị...

demo: http://tuetinhonline.org/4rum

kiddj
21-08-2010, 04:57 PM
Có thể do trình duyệt :MatCuoi (9): (Thử FF đi)
Sai đừng chém nhé pr0

Ax đã thử demo của bác, Bình thường moà

hanhkhat
21-08-2010, 06:06 PM
mình vào đâu có bị sao đâu ta?

spider95
21-08-2010, 06:24 PM
Cái đó là do forum của bạn chưa load xong xuôi hết thôi , mở forum thì đừng click vào vội .... đợi khoảng mấy s cho forum load hết rồi hãng vào

vuhongtong
21-08-2010, 09:57 PM
Có thể do trình duyệt :MatCuoi (9): (Thử FF đi)
Sai đừng chém nhé pr0

Ax đã thử demo của bác, Bình thường moà


mình vào đâu có bị sao đâu ta?


Cái đó là do forum của bạn chưa load xong xuôi hết thôi , mở forum thì đừng click vào vội .... đợi khoảng mấy s cho forum load hết rồi hãng vào

Thông báo với các bạn là có lỗi đó thật ( ko phải di FF hay IE, cũng ko phải do load lâu hay nhanh )....mình đã fix mà...còn rất nhiều rum bị tình trạng như thế này...

demo:
http://yeuhaiduong.vn/forum/forum.php
http://www.tayninhonline.net/GC/forum.php

................