boylikesea
09-09-2008, 03:32 PM
thấy code này bên truongton có vẻ hay ..
nên tìm cách làm
không biết có giống với code bên truongton không :-?
share lên cho anh em dùng :D ...
chắc cũng vài người biết làm cái này rồi :-?
nhưng vài người chắc cũng .. chưa biết :D
live demo : http://camranhonline.net/forum/showthread.php?t=11
Cách cài :
Bước 1:
Upload các file lên đúng với thư mục của nó
Bước 2:
Import product nha các anh em.
Bước 3:
Edit templates Headinclude:
Chèn xuống dưới cùng toàn bộ:
<!--BEGIN VBSTATUS--> <!--BEGIN VBSTATUS--> <!--BEGIN VBSTATUS--> <if condition="$vbulletin->options['vbstatus_active']"> <div id='mypopup' name='mypopup' style='z-index:1000; position: absolute; background: none; border: none;'></div> <script type="text/javascript" src="vbstatus/ajax_wrapper.js"></script> <script type="text/javascript" src="vbstatus/headerjavascript.js"></script> </if> <!--END VBSTATUS--> <!--END VBSTATUS--> <!--END VBSTATUS-->
Edit templates Postbit hoặc Postbit_legacy
(Tùy vào forum bạn chọn cột ngang hay dọc )
Tìm:
<div id="postmenu_$post[postid]">
Thêm đằng trước:
<table width="197" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:0px;">
<tr>
<!--BEGIN VB STATUS--> <!--BEGIN VB STATUS--> <!--BEGIN VB STATUS--> <if condition="$vbulletin->options['vbstatus_active']">
<if condition="$post[vbstatus_status]">
<td width="36" height="25" background="images/cro/chuan_01.gif"></td>
<td width="143" height="25" background="images/cro/chuan_02.gif"></td>
<td width="18" height="25" background="images/cro/chuan_03.gif"></td>
</tr>
<tr>
<td width="36" height="42" background="images/cro/chuan_04.gif"></td>
<td width="143" height="42" style="background:url(images/cro/statusbgr.gif)" align="center" class="smallfont">
<em id="vbstatus_$post[postid]" style="color:#FEFFB4">
$post[vbstatus_status]
</em>
</td>
<td width="18" height="40" background="images/cro/chuan_06.gif"></td>
</tr>
<tr>
<td width="36" height="40" background="images/cro/chuan_07.gif"></td>
<td width="143" height="40" background="images/cro/chuan_08.gif"></td>
<td width="18" height="40" background="images/cro/chuan_09.gif"></td>
</if>
<if condition="$bbuserinfo['userid']==$post['userid'] OR $vbstatus_isadmin==1"> <if condition="$vbulletin->options['vbstatus_inline']"> <a href="javascript:Att_AjaxDiv('inline=1&userid=$post[userid]&postid=$post[postid]','vbstatus/vbstatus_ajax.php','vbstatus_$post[postid]')">Edit</a> <else /> <div align="center"><a href="javascript:Att_Ajax('userid=$post[userid]&postid=$post[postid]','vbstatus/vbstatus_ajax.php')"><b>Thêm status</b></a></div> </if> </if> </em> </div> </if> <!--END VB STATUS--> <!--END VB STATUS--> <!--END VB STATUS-->
</tr>
</table>
Edit templates MEMBERINFO:
Đối với v3.7.x thì bạn tìm:
<if condition="$prepared['usertitle']">
Đối với v3.6.x - v.3.5.x thì bạn tìm:
<if condition="$userinfo['usertitle']">
Sau đó,thêm đằng trước :
<!--BEGIN VB STATUS--> <!--BEGIN VB STATUS--> <!--BEGIN VB STATUS--> <if condition="$vbulletin->options['vbstatus_active']"> <div class=smallfont> $userinfo[username] <em id="vbstatus_$userinfo[userid]"> $userinfo[vbstatus_status] <if condition="$bbuserinfo['userid']==$userinfo['userid'] OR $vbstatus_isadmin==1"> <if condition="$vbulletin->options['vbstatus_inline']"> <a href="javascript:Att_AjaxDiv('inline=1&userid=$userinfo[userid]&postid=$userinfo[userid]','vbstatus/vbstatus_ajax.php','vbstatus_$userinfo[userid]')">Edit</a> <else /> <a href="javascript:Att_Ajax('userid=$userinfo[userid]&postid=$userinfo[userid]','vbstatus/vbstatus_ajax.php')">Edit</a> </if> </if> </em> </div> </if> <!--END VB STATUS--> <!--END VB STATUS--> <!--END VB STATUS-->
Bước 4
Vào vBulletin Options -> vBulletin Options chọn vBStatus from the dropdown menu trong admincp.
Chúc các bạn thành công.
nên tìm cách làm
không biết có giống với code bên truongton không :-?
share lên cho anh em dùng :D ...
chắc cũng vài người biết làm cái này rồi :-?
nhưng vài người chắc cũng .. chưa biết :D
live demo : http://camranhonline.net/forum/showthread.php?t=11
Cách cài :
Bước 1:
Upload các file lên đúng với thư mục của nó
Bước 2:
Import product nha các anh em.
Bước 3:
Edit templates Headinclude:
Chèn xuống dưới cùng toàn bộ:
<!--BEGIN VBSTATUS--> <!--BEGIN VBSTATUS--> <!--BEGIN VBSTATUS--> <if condition="$vbulletin->options['vbstatus_active']"> <div id='mypopup' name='mypopup' style='z-index:1000; position: absolute; background: none; border: none;'></div> <script type="text/javascript" src="vbstatus/ajax_wrapper.js"></script> <script type="text/javascript" src="vbstatus/headerjavascript.js"></script> </if> <!--END VBSTATUS--> <!--END VBSTATUS--> <!--END VBSTATUS-->
Edit templates Postbit hoặc Postbit_legacy
(Tùy vào forum bạn chọn cột ngang hay dọc )
Tìm:
<div id="postmenu_$post[postid]">
Thêm đằng trước:
<table width="197" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:0px;">
<tr>
<!--BEGIN VB STATUS--> <!--BEGIN VB STATUS--> <!--BEGIN VB STATUS--> <if condition="$vbulletin->options['vbstatus_active']">
<if condition="$post[vbstatus_status]">
<td width="36" height="25" background="images/cro/chuan_01.gif"></td>
<td width="143" height="25" background="images/cro/chuan_02.gif"></td>
<td width="18" height="25" background="images/cro/chuan_03.gif"></td>
</tr>
<tr>
<td width="36" height="42" background="images/cro/chuan_04.gif"></td>
<td width="143" height="42" style="background:url(images/cro/statusbgr.gif)" align="center" class="smallfont">
<em id="vbstatus_$post[postid]" style="color:#FEFFB4">
$post[vbstatus_status]
</em>
</td>
<td width="18" height="40" background="images/cro/chuan_06.gif"></td>
</tr>
<tr>
<td width="36" height="40" background="images/cro/chuan_07.gif"></td>
<td width="143" height="40" background="images/cro/chuan_08.gif"></td>
<td width="18" height="40" background="images/cro/chuan_09.gif"></td>
</if>
<if condition="$bbuserinfo['userid']==$post['userid'] OR $vbstatus_isadmin==1"> <if condition="$vbulletin->options['vbstatus_inline']"> <a href="javascript:Att_AjaxDiv('inline=1&userid=$post[userid]&postid=$post[postid]','vbstatus/vbstatus_ajax.php','vbstatus_$post[postid]')">Edit</a> <else /> <div align="center"><a href="javascript:Att_Ajax('userid=$post[userid]&postid=$post[postid]','vbstatus/vbstatus_ajax.php')"><b>Thêm status</b></a></div> </if> </if> </em> </div> </if> <!--END VB STATUS--> <!--END VB STATUS--> <!--END VB STATUS-->
</tr>
</table>
Edit templates MEMBERINFO:
Đối với v3.7.x thì bạn tìm:
<if condition="$prepared['usertitle']">
Đối với v3.6.x - v.3.5.x thì bạn tìm:
<if condition="$userinfo['usertitle']">
Sau đó,thêm đằng trước :
<!--BEGIN VB STATUS--> <!--BEGIN VB STATUS--> <!--BEGIN VB STATUS--> <if condition="$vbulletin->options['vbstatus_active']"> <div class=smallfont> $userinfo[username] <em id="vbstatus_$userinfo[userid]"> $userinfo[vbstatus_status] <if condition="$bbuserinfo['userid']==$userinfo['userid'] OR $vbstatus_isadmin==1"> <if condition="$vbulletin->options['vbstatus_inline']"> <a href="javascript:Att_AjaxDiv('inline=1&userid=$userinfo[userid]&postid=$userinfo[userid]','vbstatus/vbstatus_ajax.php','vbstatus_$userinfo[userid]')">Edit</a> <else /> <a href="javascript:Att_Ajax('userid=$userinfo[userid]&postid=$userinfo[userid]','vbstatus/vbstatus_ajax.php')">Edit</a> </if> </if> </em> </div> </if> <!--END VB STATUS--> <!--END VB STATUS--> <!--END VB STATUS-->
Bước 4
Vào vBulletin Options -> vBulletin Options chọn vBStatus from the dropdown menu trong admincp.
Chúc các bạn thành công.