Hướng Dẫn Làm 4rum Invision Chi Tiết

Status
Không mở trả lời sau này.

jin_max_4u

Donkey Kong
Tham gia ngày
20/8/06
Bài viết
306
Reaction score
0
Hướng dẫn đăng ký


Ấn vào đây : http://invisionfree.com
Đầu tiên các bạn click vào địa chỉ ở trên để đăng ký diễn đàn!
các bạn hãy click regester để đăng ký vào diễn đàn invisionfree



Khi đã chọn Regiter thì chuyện tiếp đến nữa bạn phải điền thông tin về forum mình như theo hướng dân dưới đây :

- Board Name: tên của diễn đàn của bạn
- User Name : Tên sử dụng của bạn trong diễn đàn của bạn (nick ADMIN)
- Category : Ở mục này theo mình nên chọn " computer & internet"
- Password : pass của bạn sử dụng trong diễn đàn của bạn (pass ADMIN)
- Password verifil : rỏ pass của bạn 1 lần nữa!
- Email address : email của bạn
- Email address verifil : email của bạn1 lần nữa.

Sau khi hoàn thành các phần trên bạn kéo xuống cuối màn hình
thấy dòng "I have read and agree to the Luật của diễn đàn!" bạn hãy click vào nó và Register.

Thế là bạn đã có 1 diễn đàn mang cái tên khá dài :

- Trang chủ của bạn có dạng :
http://www.sx.invisionfree.com/tên diễn đàn của bạn/index.php-Trang chủ quản lý của bạn có dạng :
http://www.sx.invisionfree.com/tên diễn đàn của bạn/admin.php

Việt hóa

CODE
PHP:
<!-- Viet hoa -->
<script src="http://maithanhbinh.x10hosting.com/ibf/viethoa2.js"></script>
Bộ Gõ

CODE
PHP:
<script language=JavaScript 1.2 src="http://maithanhbinh.x10hosting.com/ibf/viettyping.js">

Trả Lời Nhanh
Các bạn nhét nó vào Footer nha
ACP>Skinning & Styles > Board Wrappers>Footer
Muốn hiện trả lời nhanh khi lập box các bạn tìm Turn on the Quick Reply Box? ấn Yes là ukie rùi !!!

CODE
PHP:
<!---------------- Quick Reply------------------------>
<script language='javascript' type='text/javascript'>
<!--
itm = null;
itm = document.getElementById('qr_open');
if (itm) itm.style.display = '';
//-->
</script><!---------------- Ket thuc Quick Reply------------->








Kill banner

ACP>Skinning & Styles >· Board Wrappers>Header & Body
xoá hết trong đó rồi chèn đoạn code này vào nhé


CODE
PHP:
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" alink="#000000" vlink="#000000">
<%<% BOARD HEADER %>%>
<!--- kill quang cao'--->
<script language='JavaScript' type="text/javascript">
<!--
function buddy_pop() { window.open('index.php?act=buddy&s=','BrowserBuddy ','width=250,height=500,resizable=yes,scrollbars=y es'); }
function multi_page_jump( url_bit, total_posts, per_page )
{
pages = 1; cur_st = parseInt(""); cur_page = 1;
if ( total_posts % per_page == 0 ) { pages = total_posts / per_page; }
else { pages = Math.ceil( total_posts / per_page ); }
msg = "Please enter a page number to jump to between 1 and" + " " + pages;
if ( cur_st > 0 ) { cur_page = cur_st / per_page; cur_page = cur_page -1; }
show_page = 1;
if ( cur_page < pages ) { show_page = cur_page + 1; }
if ( cur_page >= pages ) { show_page = cur_page - 1; }
else { show_page = cur_page + 1; }
userPage = prompt( msg, show_page );
if ( userPage > 0 ) {
if ( userPage < 1 ) { userPage = 1; }
if ( userPage > pages ) { userPage = pages; }
if ( userPage == 1 ) { start = 0; }
else { start = (userPage - 1) * per_page; }
window.location = url_bit + "&st=" + start;
}
}
//-->
</script>
<!-- IE6/Win TABLE FIX -->
<table width="100%" cellspacing="6" id="submenu">
<tr>
<td><a href=''></a>&nbsp; <a href="http://s9.invisionfree.com/fanclublovely/index.phpact=site">Portal</a></td>
<td align="right">
{L}<a href="http://s8.invisionfree.com/sonhai/index.php?'>act=site"</a></td>
<td align="right"> 
{O}<a href='http://www.freewebs.com/nguyendangquang/chat.html'>chat room</a>
{V}<a href='http://s3.invisionfree.com/Invisiondesign/index.php?act=Help'>Help</a>
{E}<a href='http://s3.invisionfree.com/Invisiondesign/index.php?act=Members'>Members</a>
<!--IBF.CHATLINK-->
</td>
</tr>
</table>
<!--- ket thuc kill quang cao'--->
<% MEMBER BAR %>
<% NAVIGATION %>
<% BOARD %>
<div style="visibility:hidden">
cho phép mem sử dụng Flash post bài và Avatars

Login to Admin CP ->System Settings->Security & Privacy->Security (Low)->Allow flash movies in posts and avatars? Chọn Yes ->click Submit Changes





Chèn vào sau thẻ <% BOARD HEADER %>


CODE
PHP:
<script>/*Guest Welcome box by Gornakle of Invisionfree.
This code cannot be posted on any site without permission from the creator*/

BoardURL="http://.../index.php?" //Must be your full URL! (start with "http://" and end with "index.php?")
Boardname="" //Your Board's name

LoggedOn="Y" //Show Welcomebox when Logged in? ("Y" = yes, "N" = no)
Logged_Message="" //Message to show when Logged in (HTML enabled)

GuestOn="Y" //Show Welcomebox when guest? ("Y" = yes, "N" = no)
Guest_Message="" //Message to show when guest (HTML enabled)

AvatarURL="http://" //Must start with "http://"
AvWidth="64" //Avatar width (in pixels)
AvHeight="64" //Avatar height (in pixels)

IconURL="http://" //Must start with "http://"
IcWidth="8" //Icon width (in pixels)
IcHeight="8" //Icon height (in pixels)
</script> 
<script src="http://www.studio1haarmode.nl/gbox.js"></script>



Đăng xuất kiểu VBB

Bạn đã từng xài VBB và rất mê kiểu Log out của nó. Màn hình mở dần thành trắng đen rồi hiện ra cái Dialog Yes + No . Nếu thích, bạn có thể làm ngay trên IF bằng cách chèn đoạn code sau vào đầu footer:

CODE
PHP:
<script>
// vBulletin 3 Style Logout - Leave Copyright Intact Wherever Used
// Created For Invision Free
// Author: Zero Tolerance © Game Zone | Evolution 2004 [http://gzevolution.net]
link=document.body.getElementsByTagName('a')
for(a=0;a<link.length;a++){if(link[a].href.indexOf('act=Login&CODE=03')!=-1){
link[a].outerHTML=link[a].outerHTML.replace('href','onClick="return LogOut();" href')}}
function LogOut(){ht = document.body
ht.style.filter = "progidXImageTransform.Microsoft.BasicImage(gr ay scale=1)"
if (confirm('Ban co chac la ban muon thoat?')){return true;
} else {ht.style.filter="";return false;}}
</script>







Làm sáng box khi di chuyển chuột ðến
cho vào Board Wrappers> footer

CODE
PHP:
<script>
//Highlight Cells created by Webworldx
var tCell= document.getElementsByTagName('TD');
for (i=0;i<tCell.length;i++){
if (tCell[i].className=="row4"){
if (tCell[i].innerHTML.match("showforum=")){
tCell[i].onmouseover=function(){this.style.backgroundColor ="FFFFFF"}
tCell[i].onmouseout=function(){this.style.backgroundColor= "E4EAF2"}
}}}
</script>





MOD cảnh báo khi mem ðể chữ kí quá to
Admin CP->Board Wrappers->Header & Body sau <% BOARD %>


CODE
PHP:
<!--
Signature size warning
code by ticlo
-->
<style type='text/css'>
.toobigsig {
border: 2px solid red
}

.toobigsigtext {
font-weight:bold; color:red
}
</style>
<script type='text/javascript'>
<!--
var tooBigText, showScroll

sigWidth = 550
sigHeight = 150
tooBigText = 'Your signature is too big. Please make it ' + sigWidth + 'x' + sigHeight + ' pixels or smaller'
showScroll = true

e = document.getElementsByTagName('DIV')
for (n =0; n< e.length;n++) {
if (e[n].className == 'signature') {
ct = ''
ct = e[n].style.cssText
if (ct != '') e[n].style.cssText = ''
e[n].style.width = sigWidth +'px'
e[n].style.height = sigHeight + 'px'
e[n].style.overflow = 'hidden'
if ((sigWidth < e[n].scrollWidth) || (sigHeight < e[n].scrollHeight)) {
e[n].className = 'toobigsig'
if (showScroll) e[n].style.overflow = 'auto'
if (tooBigText && tooBigText.length != 0) {
tbt = document.createElement('DIV')
tbt.innerHTML = tooBigText
tbt.className = 'toobigsigtext'
if(e[n].nextSibling) e[n].parentNode.insertBefore(tbt, e[n].nextSibling); else e[n].parentNode.appendChild(tbt);
}} else {
e[n].style.width = ''
e[n].style.height = ''
e[n].style.overflow = ''
if (ct != '') e[n].style.cssText = ct
}}}
// -->
</script>
<!-- Signature size warning end -->







Mod thông báo

CODE
PHP:
<div style="text-align:center">
<table width="65%" align="center" border="0"><tr><td>
<div class="tableborder">
<div class="maintitle" align="left" style="text-align:left"><img src="http://67.18.37.15/style_images/1/nav_m.gif" border="0" alt=">" width="8" height="8" />
Thong bao moi nhat cua hello

PHP:
</div>
<table width="100%" border="0" cellspacing="1" cellpadding="4"><tr><td class="row1">
<font color="#FF0000">Dong thu nhat can thong bao<br/Dong thu hai</font>
<br/><br/><font color="#00FF00">Dong cuoi cung</font>

</td>
</tr>
</table>
</div>
</td></tr></table>
</div>
<br />


Chèn ðoạn code ðó vào sau
PHP:
<% NAVIGATION %>

Thực đơn Favorites
Chèn đoạn mã sau vào Header & Body ,khi có ai vào diễn đàn của bạn họ sẽ phải add link đến diễn đàn của bạn vào Thực đơn Favorites trên trình duyệt của họ:

CODE
PHP:
<a href=":Tên site" onDragstart="return false" onClick='window.external.AddFavorite(location.href , document.title);return false'>Add vào Favorites ?</a>
chèn bộ search Google vào web


chèn đoạn code vào acp admin > Skinning & Styles >Board Wrappers > dưới thẻ <% BOARD HEADER %> nhé



CODE
PHP:
<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com.vn/custom" target="google_window">
<table bgcolor="#000000">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle"></img></a>
<input type="text" name="q" size="20" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
<input type="hidden" name="client" value="pub-8272385394569161"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="UTF-8"></input>
<input type="hidden" name="oe" value="UTF-8"></input>
<input type="hidden" name="cof" value="GALT:#9A2C06;GL:1;DIV:#33FFFF;VLC03500;AH :center;BGC:99CCFF;LBGC:CCE5F9;ALC:440066;LC:44006 6;T:336699;GFNT:223472;GIMP:223472;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->



Mod Center the board statistics

Chèn vào Admin CP > Skinning & Styles > Board Wrappers > Head & Body > dýới <% STATS %>

CODE
PHP:
<script type='text/javascript'>
<!--
// center board statistics
// code by ticlo

statAlignCenter= new Array()

statAlignCenter['maintitle'] = 1
statAlignCenter['pformstrip'] = 1
statAlignCenter['row2'] = 1
statAlignCenter['row4'] = 1

e = document.getElementsByTagName('DIV')
for (n = 0; n < e.length; n++) {
if (e[n].className == 'maintitle' && e[n].innerHTML == 'Board Statistics') {
if (statAlignCenter['maintitle']) e[n].style.textAlign='center'
tbs = e[n].parentNode.getElementsByTagName('TABLE')
if (tbs.length) {
tbl = tbs[0]
tds = tbl.getElementsByTagName('TD')
for (i = 0; i < tds.length; i++) {
if (statAlignCenter[tds[i].className]) tds[i].style.textAlign = 'center'
}}
break
}}
//-->
</script>



Mod New Style Board Statistics

Chèn vào ACP>Skinning & Styles > Board Wrappers> Footer>


CODE
PHP:
<script src="http://67.18.37.15/1183/88/upload/p6217867.ibf">
/* ------------------------------------------------------------------------------- *\
| New Style Board Statistics - Leave Copyright Intact Wherever Used |
| Created For Invision Free |
| An Inferno Productions Product |
| Author: Zero Tolerance © Game Zone | Evolution 2004 [http://gzevolution.net] |
| This Copyright May Not Be Edited Or Additional Copyright Added Without Permission |
\* ------------------------------------------------------------------------------- */
</script>






Ðoạn Javascript chuyển màu link


Chèn vào ACP>Skinning & Styles > Board Wrappers> Jvascript>


CODE
PHP:
<script language ="JavaScript" src="<A href="http://www.freewebs.com/hoctapus/nhaymau.js"></script>

luôn mở hộp Quick Reply

Chèn vào ACP>Skinning & Styles > Board Wrappers>Footer


CODE
PHP:
<!---------------- Quick Reply------------------------>
<script language='javascript' type='text/javascript'>
<!--
itm = null;
itm = document.getElementById('qr_open');
if (itm) itm.style.display = '';
//-->
</script>
<!---------------- Ket thuc Quick Reply------------->





Mod Add Banner(thêm link quảng cáo(bằng logo)

Chèn vào ACP>Skinning & Styles > Board Wrappers> Footer>


CODE
PHP:
<tr>
<td>
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr>
<td class="maintitle" align="center" colspan="3">
<font color="indianred" size="2">
<b>Banners</b>
</font>
</td>
</tr>
<tr>
<td width="70%" valign="middle" class="row4">
<marquee scrollamount=4 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=4"><a 
href="URL OF SITE HERE"><img src="URL OF IMAGE HERE"</a></marquee>
</td></a>
chèn bộ search Google vào web


chèn đoạn code vào acp admin > Skinning & Styles >Board Wrappers > dưới thẻ <% BOARD HEADER %> nhé



CODE
PHP:
<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com.vn/custom" target="google_window">
<table bgcolor="#000000">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle"></img></a>
<input type="text" name="q" size="20" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
<input type="hidden" name="client" value="pub-8272385394569161"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="UTF-8"></input>
<input type="hidden" name="oe" value="UTF-8"></input>
<input type="hidden" name="cof" value="GALT:#9A2C06;GL:1;DIV:#33FFFF;VLC03500;AH :center;BGC:99CCFF;LBGC:CCE5F9;ALC:440066;LC:44006 6;T:336699;GFNT:223472;GIMP:223472;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->




Mod Center the board statistics

Chèn vào Admin CP > Skinning & Styles > Board Wrappers > Head & Body > dýới <% STATS %>

CODE
PHP:
<script type='text/javascript'>
<!--
// center board statistics
// code by ticlo

statAlignCenter= new Array()

statAlignCenter['maintitle'] = 1
statAlignCenter['pformstrip'] = 1
statAlignCenter['row2'] = 1
statAlignCenter['row4'] = 1

e = document.getElementsByTagName('DIV')
for (n = 0; n < e.length; n++) {
if (e[n].className == 'maintitle' && e[n].innerHTML == 'Board Statistics') {
if (statAlignCenter['maintitle']) e[n].style.textAlign='center'
tbs = e[n].parentNode.getElementsByTagName('TABLE')
if (tbs.length) {
tbl = tbs[0]
tds = tbl.getElementsByTagName('TD')
for (i = 0; i < tds.length; i++) {
if (statAlignCenter[tds[i].className]) tds[i].style.textAlign = 'center'
}}
break
}}
//-->
</script>



Mod New Style Board Statistics

Chèn vào ACP>Skinning & Styles > Board Wrappers> Footer>


CODE
PHP:
<script src="http://67.18.37.15/1183/88/upload/p6217867.ibf">
/* ------------------------------------------------------------------------------- *\
| New Style Board Statistics - Leave Copyright Intact Wherever Used |
| Created For Invision Free |
| An Inferno Productions Product |
| Author: Zero Tolerance © Game Zone | Evolution 2004 [http://gzevolution.net] |
| This Copyright May Not Be Edited Or Additional Copyright Added Without Permission |
\* ------------------------------------------------------------------------------- */
</script>







Ðoạn Javascript chuyển màu link


Chèn vào ACP>Skinning & Styles > Board Wrappers> Jvascript>


CODE
PHP:
<script language ="JavaScript" src="<A href="http://www.freewebs.com/hoctapus/nhaymau.js"></script>


luôn mở hộp Quick Reply

Chèn vào ACP>Skinning & Styles > Board Wrappers>Footer


CODE
PHP:
<!---------------- Quick Reply------------------------>
<script language='javascript' type='text/javascript'>
<!--
itm = null;
itm = document.getElementById('qr_open');
if (itm) itm.style.display = '';
//-->
</script>
<!---------------- Ket thuc Quick Reply------------->





Mod Add Banner(thêm link quảng cáo(bằng logo)

Chèn vào ACP>Skinning & Styles > Board Wrappers> Footer>


CODE
PHP:
<tr>
<td>
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr>
<td class="maintitle" align="center" colspan="3">
<font color="indianred" size="2">
<b>Banners</b>
</font>
</td>
</tr>
<tr>
<td width="70%" valign="middle" class="row4">
<marquee scrollamount=4 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=4"><a 
href="URL OF SITE HERE"><img src="URL OF IMAGE HERE"</a></marquee>
</td></a>
chèn bộ search Google vào web


chèn đoạn code vào acp admin > Skinning & Styles >Board Wrappers > dưới thẻ <% BOARD HEADER %> nhé



CODE
PHP:
<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com.vn/custom" target="google_window">
<table bgcolor="#000000">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle"></img></a>
<input type="text" name="q" size="20" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Search"></input>
<input type="hidden" name="client" value="pub-8272385394569161"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="ie" value="UTF-8"></input>
<input type="hidden" name="oe" value="UTF-8"></input>
<input type="hidden" name="cof" value="GALT:#9A2C06;GL:1;DIV:#33FFFF;VLC03500;AH :center;BGC:99CCFF;LBGC:CCE5F9;ALC:440066;LC:44006 6;T:336699;GFNT:223472;GIMP:223472;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->




Mod Center the board statistics

Chèn vào Admin CP > Skinning & Styles > Board Wrappers > Head & Body > dýới <% STATS %>

CODE
PHP:
<script type='text/javascript'>
<!--
// center board statistics
// code by ticlo

statAlignCenter= new Array()

statAlignCenter['maintitle'] = 1
statAlignCenter['pformstrip'] = 1
statAlignCenter['row2'] = 1
statAlignCenter['row4'] = 1

e = document.getElementsByTagName('DIV')
for (n = 0; n < e.length; n++) {
if (e[n].className == 'maintitle' && e[n].innerHTML == 'Board Statistics') {
if (statAlignCenter['maintitle']) e[n].style.textAlign='center'
tbs = e[n].parentNode.getElementsByTagName('TABLE')
if (tbs.length) {
tbl = tbs[0]
tds = tbl.getElementsByTagName('TD')
for (i = 0; i < tds.length; i++) {
if (statAlignCenter[tds[i].className]) tds[i].style.textAlign = 'center'
}}
break
}}
//-->
</script>


Mod New Style Board Statistics

Chèn vào ACP>Skinning & Styles > Board Wrappers> Footer>


CODE
PHP:
<script src="http://67.18.37.15/1183/88/upload/p6217867.ibf">
/* ------------------------------------------------------------------------------- *\
| New Style Board Statistics - Leave Copyright Intact Wherever Used |
| Created For Invision Free |
| An Inferno Productions Product |
| Author: Zero Tolerance © Game Zone | Evolution 2004 [http://gzevolution.net] |
| This Copyright May Not Be Edited Or Additional Copyright Added Without Permission |
\* ------------------------------------------------------------------------------- */
</script>







Ðoạn Javascript chuyển màu link


Chèn vào ACP>Skinning & Styles > Board Wrappers> Jvascript>


CODE
PHP:
<script language ="JavaScript" src="<A href="http://www.freewebs.com/hoctapus/nhaymau.js"></script>


luôn mở hộp Quick Reply

Chèn vào ACP>Skinning & Styles > Board Wrappers>Footer


CODE
PHP:
<!---------------- Quick Reply------------------------>
<script language='javascript' type='text/javascript'>
<!--
itm = null;
itm = document.getElementById('qr_open');
if (itm) itm.style.display = '';
//-->
</script>
<!---------------- Ket thuc Quick Reply------------->





Mod Add Banner(thêm link quảng cáo(bằng logo)

Chèn vào ACP>Skinning & Styles > Board Wrappers> Footer>


CODE
PHP:
<tr>
<td>
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr>
<td class="maintitle" align="center" colspan="3">
<font color="indianred" size="2">
<b>Banners</b>
</font>
</td>
</tr>
<tr>
<td width="70%" valign="middle" class="row4">
<marquee scrollamount=4 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=4"><a 
href="URL OF SITE HERE"><img src="URL OF IMAGE HERE"</a></marquee>
</td></a>
Mod Add Banner(thêm link quảng cáo(bằng logo)

Chèn vào ACP>Skinning & Styles > Board Wrappers> Footer>


CODE
PHP:
<tr>
<td>
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr>
<td class="maintitle" align="center" colspan="3">
<font color="indianred" size="2">
<b>Banners</b>
</font>
</td>
</tr>
<tr>
<td width="70%" valign="middle" class="row4">
<marquee scrollamount=4 onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=4"><a 
href="URL OF SITE HERE"><img src="URL OF IMAGE HERE"</a></marquee>
</td></a>





Hide My Assistant Link (IE)
Chèn vào ACP>Skinning & Styles > Board Wrappers> Footer>


CODE
PHP:
<script language=javascript>
<!--
//Hide My Assistant Link
//By iFrank
function BuddyHide(item,item2) {
var range = document.body.createTextRange();
range.collapse(true);
if (location.href.indexOf("action=") != -1 ) {
return false;
} else {
while (range.findText(item)) {
range.text=item2;
range.collapse(false);
}
}
}
BuddyHide(" · My Assistant"," ");
// -->
</script>





Topic Options Always Open
Chèn vào ACP>Skinning & Styles > Board Wrappers> Footer>


CODE
PHP:
<script language='javascript' type='text/javascript'>
<!--
//Script By Stefan
//Edited By iFrank
itm = null;
itm = document.getElementById('topic_open');
if (itm) itm.style.display = '';
//-->
</script>





Mod Bói tình yêu
Chèn vào Admin CP > IP Dynamic Lite ~~> Show Affiliates box content
Show Affiliates box? ( chọn yes )
mod này dành cho portal


CODE
PHP:
<html> 

<head> 
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 
<meta name="GENERATOR" content="Microsoft FrontPage 4.0"> 
<meta name="ProgId" content="FrontPage.Editor.Document"> 
<title>..:: Code By : Thảo Nguyên Tình Yêu ::..</title> 
<!-- Begin Boi-Tinh_Duyen Table --> 
<table width="100%" cellSpacing=0 cellPadding=0 border=0> <tr> <td><img src="styles/tqa/mintopleft.gif"></td> <td align="center" class="mintopbg">Bói tình duyên</td> <td><img src="styles/tqa/mintopright.gif"></td> </tr> </table> <table class="mediumbg" border=0 width="100%" cellpadding="<?=$tpadding?>" cellspacing="<?=$tspacing?>"> <tr> <td><span class="small"><form name=loveform> <p align="center"> <input onfocus="if (this.value = 'User Name') this.value = '';" value="Họ tên của bạn" name="name1" type="text" size="20"> </p> <p align="center"> <input onfocus="if (this.value = 'User Name') this.value = '';" value="Họ tên người yêu bạn" name="name2" type="text" size="20"></p> <p align="center"> <input value="" name="output" type="text" size="6"> 

<input value="Kết quả" name="calculate" type="button" value="calculate" onclick="calc()"> </p> </form> <script LANGUAGE="JavaScript"> 
<!-- Begin 
function calc() { 
first = document.loveform.name1.value.toUpperCase(); 
firstlength = document.loveform.name1.value.length; 
second = document.loveform.name2.value.toUpperCase(); 
secondlength = document.loveform.name2.value.length; 
var LoveCount=0; 
for (Count=0; Count < firstlength; Count++) { 
letter1=first.substring(Count,Count+1); 
if (letter1=='L') LoveCount+=2; 
if (letter1=='O') LoveCount+=2; 
if (letter1=='V') LoveCount+=2; 
if (letter1=='E') LoveCount+=2; 
if (letter1=='Y') LoveCount+=3; 
if (letter1=='O') LoveCount+=1; 
if (letter1=='U') LoveCount+=3; 
} 
for (Count=0; Count < secondlength; Count++) { 
letter2=second.substring(Count,Count+1); 
if (letter2=='L') LoveCount+=2; 
if (letter2=='O') LoveCount+=2; 
if (letter2=='V') LoveCount+=2; 
if (letter2=='E') LoveCount+=2; 
if (letter2=='Y') LoveCount+=3; 
if (letter2=='O') LoveCount+=1; 
if (letter2=='U') LoveCount+=3; 
} 
amount=0; 
if (LoveCount> 0) amount= 5-((firstlength+secondlength)/2) 
if (LoveCount> 2) amount= 10-((firstlength+secondlength)/2) 
if (LoveCount> 4) amount= 20-((firstlength+secondlength)/2) 
if (LoveCount> 6) amount= 30-((firstlength+secondlength)/2) 
if (LoveCount> 8) amount= 40-((firstlength+secondlength)/2) 
if (LoveCount>10) amount= 50-((firstlength+secondlength)/2) 
if (LoveCount>12) amount= 60-((firstlength+secondlength)/2) 
if (LoveCount>14) amount= 70-((firstlength+secondlength)/2) 
if (LoveCount>16) amount= 80-((firstlength+secondlength)/2) 
if (LoveCount>18) amount= 90-((firstlength+secondlength)/2) 
if (LoveCount>20) amount=100-((firstlength+secondlength)/2) 
if (LoveCount>22) amount=100%-((firstlength+secondlength)/2) 
if (firstlength==0 || secondlength==0) amount= "sai"; 
if (amount < 0) amount= 0; 
if (amount >99) amount=99; 
document.loveform.output.value=amount+" %"; 
} 
// End --> 
</script> 

<!-- END Boi-Tinh-Duyen Table --> 
<script language=JavaScript 1.2 src="http://chandoiclub.com/viettyping.js">
chúc các bạn thành công và nhớ cho ý kiến nha
trích từ cẩm nang internet(chỉ có thể cho bit vậy thôi!!! ai khiếu nại thì liên hệ trực tiếp với tui)
 
Sao thấy giống hàng copy thế này !
Bạn làm ơn ghi nguồn kẻo mai mốt có chuyện ko hay !
 
Ặc cái này có mà vô khối trên mạng,chắc chú ấy lại copy rồi paste vào lại đó mà
 
Ờ chú ấy ghi trích từ cẩm nang internet kia kìa , có thể coi đó là nguồn không nhỉ ? :D Ai khiếu nại thì gặpt rực tiếp chú ấy nhé :)
 
có vộ khối trên mạng nhưng ũng vô khối người không tìm được nên tui mới post lên đó
 
ko ngờ lập một 4rum mà phiền phức như vậy ...... toàn code với code ....
 
ko Code với Code thì dùng cái gì đây
 
chắc trong tương lai sẽ dùng trí tưởng tượng
 
Dạo này nhiều nguời hướng dẫn IF nhẩy :-?
 
Dạo này nhiều nguời hướng dẫn IF nhẩy :-?

Thì chắc là dạo này IF có nhiều tài liệu trên mạng , nhiều người tìm được thì sẽ có nhiều bài hướng dẫn chứ sao !

Anyway , topic ngày càng đi quá xa chủ đề , ko cần mình nói thêm chứ ? :wink:
 
Status
Không mở trả lời sau này.
Back
Top