PDA

View Full Version : vbstatus cải tiến (v4) ( như truongton )


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.

boylikesea
10-09-2008, 10:55 AM
file đính kèm ở trên còn thiếu file xml
mọi người down file dưới này nhé :D

nguoiyeudau2301
10-09-2008, 01:13 PM
hay. nhưng nói rõ hơn về mod này đi bạn

boylikesea
11-09-2008, 07:34 AM
status của truongton ra sao
thì status này như vậy
( cái màu xanh xanh trên khung profile đó ^^ )
có thể vào trang demo này để test
demo : http://camranhonline.net ...

>Huy^_^Kute<
07-11-2008, 12:04 AM
hay. nhưng nói rõ hơn về mod này đi bạn

DEMO nè...nhìn là bik liền

http://truongton.net/forum/attachment.php?attachmentid=30011&stc=1&thumb=1&d=1220949143

tuan9632
17-11-2008, 08:38 AM
Mình làm sao để cho Stt xuống hàng dc làm như anh nó bấm dài wa' vẫn giữ hàng ngang và tràn hình.
Còn làm sao để cho những Group nào sài Group nào hok sài

[Mr]_Hieu
04-12-2008, 07:35 PM
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ộ:


cái này bạn có thể hướng dẫn cụ thể bằng hình ảnh được không , tại vì mới làm forum nên cũng chưa hiểu cho lắm , nhờ bạn giúp

shin96
16-12-2008, 02:40 PM
có thể chỉ shin cách nèo làm mặc định cho tất cả các thành viên đều xài dc kh0ng^ ạ


em cài xong thì nó h0k hiện ra zô http://detien.net giúp em đi
làm sao sửa cái chử của vbstatus

boylikesea
19-12-2008, 11:36 PM
edit tất cả các templates theo như hướng dẫn
không bỏ sót temp nào .. :| ..

shin96
21-12-2008, 03:43 PM
cho mình hỏi up lên host là up lên chỗ nào

boyvn111
07-01-2009, 02:36 PM
thanks all