PDA

View Full Version : Nó ra thế này các bác ợ


sn@ke
23-02-2005, 10:33 PM
Nhà tớ nghịch ngơm cài vBulletin, nguồn Ở ĐÂY (http://www.vbb.cc/) lên quả host free. Nói chung quá trình cài đặt suôn sẻ, mọi thứ đều OK hết. Cbn, đúng cái bảng điều khiển Admin thì nó ra như thế này:

http://img.photobucket.com/albums/v638/snakesyoung/ResizeofCBN.jpg

Bực quá các bác ợ, kíu tớ phát! :x

tamtit
23-02-2005, 11:01 PM
Bác bị thăng Lycos nó add cái quảng cáo vào giữa mặt rồi :D

Đây, kính đằng ấy cái này :

phía trên cùng phía trước đoạn
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

thì add thêm cái lày :

<script language="javascript">

myreg=new RegExp("lycos\.co.uk","i");
if ( !myreg.test("'"+top.location+"'") ) {
nwreg=new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i");
rn=nwreg.exec("'"+self.location+"'");
if (parent.frames.length==2) { top.location="http://" + rn[1] + rn[2]; }
else { top.location="http://" + rn[1] + "/" + rn[3]; }
}

if(window == window.top) {
var address=window.location;
var s='<html><head><title>'+'</title></head>'+
'<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
'<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'<frame src="http://ads.tripod.lycos.co.uk/ad/google/frame.php?_url='+escape(address)+'&gg_bg=&gg_template=&mkw=&cat=noref" name="LycosAdFrame" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'</frameset>'+
'</html>';

document.write(s);
}
</script>


Rồi đến phần bên dưới body add cái lày :

<script>
function lycosBreak()
{
if(typeof("DeleteCookie")=="function")DeleteCookie("adFrameForcePHP");
}
lycosBreak()
function resizeGoogleAdFrame() {
if (window != top) window.parent.document.body.cols = "*,0";
}
resizeGoogleAdFrame()
//setInterval("lycosBreak()",2000);
if (window != top) setInterval("resizeGoogleAdFrame()", 1);// lower is better
</script>


Cuối cùng, sau cái /html thì add thêm cái lày nữa là xong :

<xml>

sn@ke
23-02-2005, 11:19 PM
kể cả trường hợp không có thằng quảng cáo thì của sổ bên phải vẫn bé xíu, ơ nhưng sủa mấy cái code đấy ở file nào đó, hihi tớ không phải dân IT

PS. à hình như sửa trong Index.html

tamtit
23-02-2005, 11:37 PM
:D nếu thế thì cứ ngồi mò mầm mà sửa nhá, giải thích thế dek nào được hết. Đằng ấy thử xem lại quả file trong control panel của admin xem

sn@ke
23-02-2005, 11:50 PM
Tớ sửa trong index.html, vẫn tạch như thường, tamtit giải thích hộ cái. Mà giờ còn hiện ra 3 cái bảng như thế nữa cơ, bảng admin mất tích.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
[COLOR=Red]<script language="javascript">
myreg=new RegExp("lycos\.co.uk","i");
if ( !myreg.test("'"+top.location+"'") ) {
nwreg=new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i");
rn=nwreg.exec("'"+self.location+"'");
if (parent.frames.length==2) { top.location="http://" + rn[1] + rn[2]; }
else { top.location="http://" + rn[1] + "/" + rn[3]; }
}

if(window == window.top) {
var address=window.location;
var s='<html><head><title>'+'</title></head>'+
'<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
'<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'<frame src="http://ads.tripod.lycos.co.uk/ad/google/frame.php?_url='+escape(address)+'&gg_bg=&gg_template=&mkw=&cat=noref" name="LycosAdFrame" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'</frameset>'+
'</html>';

document.write(s);
}
</script>[/COLOR]


<html>
<head>
<meta name="description" content="Lycos Tripod Free Web Space is a free hosting service, providing free PHP and MySQL, free tools to build your website, free tutorials to become an expert in websites creation">
<meta name="keywords" content="free, hosting, website, ftp, registration, counters, guestbook, CGI, mailer, statistics, php, mysql, www, com, internet">
<title>This web site is under construction page</title>
</head>

<body>

[COLOR=Red]<script>
function lycosBreak()
{
if(typeof("DeleteCookie")=="function")DeleteCookie("adFrameForcePHP");
}
lycosBreak()
function resizeGoogleAdFrame() {
if (window != top) window.parent.document.body.cols = "*,0";
}
resizeGoogleAdFrame()
//setInterval("lycosBreak()",2000);
if (window != top) setInterval("resizeGoogleAdFrame()", 1);// lower is better
</script>[/COLOR] Vâ



<br clear="all">
<table align="center" width="800" cellspacing="2" cellpadding="2" border="0">
<tr>
<td colspan="2" align="center"><img src="http://syndication.tripod.lycos.co.uk/resources/img/members/construct_tr.gif" width="261" height="106" border="0"></td>
</tr>
<tr>
<td colspan="2" align="center"><font face="Verdana" size="4"><b>This website is currently under construction.</b></font></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center"><font face="Verdana" size="3"><b>ameiseka's website</b></font></td>
</tr>

<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="400" align="center"><font face="Verdana" size="3"><b>This website is hosted free of charge by<br>
<a href="http://www.tripod.lycos.co.uk" target="_blank">Lycos Tripod UK</a></b></td>
<td width="400" align="center"><a href="http://www.tripod.lycos.co.uk" target="_blank"><img src="http://syndication.tripod.lycos.co.uk/resources/img/members/logo_tr.gif" width="128" height="43" border="0"></a></td>
</tr>
</table>
</body>
</html>
[COLOR=Red]</xml>[/COLOR]

tamtit
24-02-2005, 12:20 AM
:)) Đã bẩu là tìm file trong phần admin mà lị. Nếu ko, xem đường dẫn của trang đang mở ra ấy, rồi tìm đến file .tpl để chỉnh lại. Còn cái kia là index của fò rom, ko phải của admin ( :D hờ, dek dùng bao giờ nên dek biết đường dẫn, thông cảm )

Còn cái code thì nhà bác hơi nhầm tí, ló thế lày lày :


[COLOR=Red]<script language="javascript">
myreg=new RegExp("lycos\.co.uk","i");
if ( !myreg.test("'"+top.location+"'") ) {
nwreg=new RegExp ("http://([^/]+)?(/([a-z0-9A-Z\-\_]+)?[^']+)","i");
rn=nwreg.exec("'"+self.location+"'");
if (parent.frames.length==2) { top.location="http://" + rn[1] + rn[2]; }
else { top.location="http://" + rn[1] + "/" + rn[3]; }
}
if(window == window.top) {
var address=window.location;
var s='<html><head><title>'+'</title></head>'+
'<frameset cols="*,140" frameborder="0" border="0" framespacing="0" onload="return true;" onunload="return true;">'+
'<frame src="'+address+'?" name="memberPage" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'<frame src="http://ads.tripod.lycos.co.uk/ad/google/frame.php?_url='+escape(address)+'&gg_bg=&gg_template=&mkw=&cat=noref" name="LycosAdFrame" marginwidth="0" marginheight="0" scrolling="auto" noresize>'+
'</frameset>'+
'</html>';

document.write(s);
}
</script>[/COLOR]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta name="description" content="Lycos Tripod Free Web Space is a free hosting service, providing free PHP and MySQL, free tools to build your website, free tutorials to become an expert in websites creation">
<meta name="keywords" content="free, hosting, website, ftp, registration, counters, guestbook, CGI, mailer, statistics, php, mysql, www, com, internet">
<title>This web site is under construction page</title>
</head>

<body>

[COLOR=Red]<script>
function lycosBreak()
{
if(typeof("DeleteCookie")=="function")DeleteCookie("adFrameForcePHP");
}
lycosBreak()
function resizeGoogleAdFrame() {
if (window != top) window.parent.document.body.cols = "*,0";
}
resizeGoogleAdFrame()
//setInterval("lycosBreak()",2000);
if (window != top) setInterval("resizeGoogleAdFrame()", 1);// lower is better
</script>[/COLOR]


<br clear="all">
<table align="center" width="800" cellspacing="2" cellpadding="2" border="0">
<tr>
<td colspan="2" align="center"><img src="http://syndication.tripod.lycos.co.uk/resources/img/members/construct_tr.gif" width="261" height="106" border="0"></td>
</tr>
<tr>
<td colspan="2" align="center"><font face="Verdana" size="4"><b>This website is currently under construction.</b></font></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center"><font face="Verdana" size="3"><b>ameiseka's website</b></font></td>
</tr>

<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="400" align="center"><font face="Verdana" size="3"><b>This website is hosted free of charge by<br>
<a href="http://www.tripod.lycos.co.uk" target="_blank">Lycos Tripod UK</a></b></td>
<td width="400" align="center"><a href="http://www.tripod.lycos.co.uk" target="_blank"><img src="http://syndication.tripod.lycos.co.uk/resources/img/members/logo_tr.gif" width="128" height="43" border="0"></a></td>
</tr>
</table>
</body>
</html>
[COLOR=Red]</xml>[/COLOR]

sn@ke
24-02-2005, 04:57 AM
hờ, thông cảm hộ cái, tớ mù tịt mà.

Thử lọ mọ tiếp vậy, vì dả sửa code trong admincp/index.php nhưng không được. Bảng Amind vẫn lôi như thường. Dưng mà tìm mãi không thấy cái file nào có dạng *..tpl :~