PDA

View Full Version : Hide Last Post Date & Time For Guests



admin
06-01-2011, 06:48 AM
Mod ẩn ngày giờ bài viết cuối cùng ở Forumhome và forumdisplay đối với khách

And here we go:
------------------------------------------------------------------------------------------------------------------

Open the forumhome_lastpostby template and find:


<p class="lastpostdate">{vb:raw lastpostinfo.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></p>
<vb:else />
<span class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></span>

Replace with:

<vb:if condition="$show['guest']">
<vb:else />
<p class="lastpostdate">{vb:raw lastpostinfo.lastpostdate}<vb:if condition="!$show['detailedtime']">, <span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></p>
</vb:if>
<vb:else />
<vb:if condition="$show['guest']">
<vb:else />
<span class="lastpostdate">{vb:raw lastpostinfo.lastpostdate} <vb:if condition="!$show['detailedtime']"><span class="time">{vb:raw lastpostinfo.lastposttime}</span></vb:if></span>
</vb:if>

------------------------------------------------------------------------------------------------------------------

Open the threadbit template and find:

<dd>{vb:raw memberaction_dropdown}
<dd>{vb:raw thread.lastpostdate} <em class="time">{vb:raw thread.lastposttime}</em>

Replace with:

<dd>{vb:raw memberaction_dropdown}<vb:if condition="$show['guest']">
&nbsp;
<vb:else />
<dd>{vb:raw thread.lastpostdate} <em class="time">{vb:raw thread.lastposttime}</em>
</vb:if>

Screenshots:
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/06/06/89611294271226.png
http://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/06/06/88231294271271.pnghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/06/06/24751294271278.pnghttp://img.photo.zing.vn/file_uploads/gallery/1024x768/2011/01/06/06/52201294271282.png