PDA

View Full Version : [Cần] Mod đưa 1 ảnh trong topic ra ngoài tiêu đề !



computerangel
25-08-2011, 09:39 AM
Dạo quanh thấy có diễn đàn có cái này mà không biết mod j , ITVN nha mình ai có cho tớ xin với nhé. thank nhìu nhìu. Demo xem ảnh đính kèm nhé: (hoặc ở đây )

http://cC3.upanh.com/27.83.34341272.GRq0/1.jpg

checknvh
25-08-2011, 09:45 AM
Mod này hiện đang còn khá nhiều lỗi

Chức năng :
Tự động get ảnh ở trong bài viết, ko phải lấy từ file attach hay phải chèn thêm 1 filed là thumb khi post bài nữa
Nếu trong bài ko có thẻ thì nó sẽ get theo thẻ [youtube] để lấy ảnh của youtube làm thumb
Có thể tùy chỉnh độ lớn nhỏ của thumb với tùy từng box
Cách xài:
Import XML
Cấu trúc: tên box,tên box|dài,rộng
Mỗi cái ngăn = 1 phát xuống dòng
Mở template threadbit
Tìm

"></a>Thay bằng
quần lót ('http://doxinh.com/') quần áo cao cấp ('http://doxinh.com/danh-muc/quan-ao-thoi-trang/') đồ lót nữ đẹp ('http://doxinh.com/danh-muc/do-lot-nu/') đồ lót nam gợi cảm ('http://doxinh.com/danh-muc/do-lot-nam/') đồ lót hàng hiệu ('http://doxinh.com/danh-muc/do-lot-cao-cap/') bộ đồ ngủ ('http://doxinh.com/danh-muc/do-lot-nu/do-ngu/') thời trang áo tắm ('http://doxinh.com/danh-muc/do-boi/') đồ lót hiệu ('http://doxinh.com/danh-muc/thuong-hieu-do-lot/')

">{vb:raw thread.chip_thumb}</a>[IMG]http://cC6.upanh.com/27.84.34341505.aZe0/f.jpg

computerangel
25-08-2011, 09:59 AM
tìm trong template threadbit

không có cái này :


"></a>


template threadbit của mình đây :

<li class="threadbit {vb:raw thread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$thread['postuserid'] AND !$thread['del_userid']"> guest</vb:if><vb:if condition="$thread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw thread.realthreadid}">
<div class="rating{vb:raw thread.rating}<vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
<div class="threadinfo" title="{vb:raw thread.preview}">
<!-- status icon block -->
<a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a>

<!-- title / author block -->
<div class="inner">
<h3 class="threadtitle">
<vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
</vb:if>

<vb:if condition="$show['threadicon']">
<img src="{vb:raw thread.threadiconpath}" alt="{vb:raw thread.threadicontitle}" border="0" />
</vb:if>

<vb:if condition="$thread['sticky']">
<img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" />
</vb:if>

<vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix'] OR $thread['prefix_rich']">
<span class="prefix understate">
{vb:raw thread.movedprefix}
{vb:raw thread.typeprefix}
{vb:raw thread.moderatedprefix}
{vb:raw thread.prefix_rich}
</span>
</vb:if>
<a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">{vb:raw thread.threadtitle}</a>
</h3>


<div class="threadmeta">
<p class="threaddesc">{vb:raw thread.preview}</p>
<div class="author">
<vb:if condition="$show['rmanage']">
<span class="rmanage"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=editthread&amp;t={vb:raw thread.redirectthreadid}">{vb:rawphrase manage}</a></span>
</vb:if>
<vb:if condition="!$show['detailedtime']">
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}
<vb:else />
{vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:stylevar dirmark}}
</vb:if>
<vb:if condition="$show['unsubscribe']">
&nbsp; <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}do=newreply&amp;t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase reply}</a>
| <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;return=uc p&amp;t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a>
</vb:if>
<vb:if condition="$thread['pagenav']">
<dl class="pagination" id="pagination_threadbit_{vb:raw thread.realthreadid}">
<dt class="label">{vb:raw thread.totalpages} {vb:rawphrase pages} <span class="separator">&bull;</span></dt>
<dd>
{vb:raw thread.pagenav}
<vb:if condition="$show['pagenavmore']"> <span class="separator">...</span> <span><a href="{vb:raw thread.lastpagelink}">{vb:raw thread.totalpages}</a></span></vb:if>
</dd>
</dl>
</vb:if>
</div>

</div>

</div>
<!-- iconinfo -->
<div class="threaddetails td">
<div class="threaddetailicons">
<vb:if condition="$show['taglist']">
<img src="{vb:stylevar imgdir_misc}/tag.png" alt="{vb:raw thread.taglist}" />
</vb:if>
<vb:if condition="$show['rexpires']">
<img src="{vb:stylevar imgdir_misc}/expires.gif" alt="{vb:rawphrase expires_on_x_y, {vb:raw thread.expiredate}, {vb:raw thread.expiretime}}" />
</vb:if>
<vb:if condition="$show['moderated']">
<img src="{vb:stylevar imgdir_misc}/moderated_small.gif" alt="{vb:rawphrase x_moderated_posts, {vb:raw thread.hiddencount}}" />
</vb:if>
<vb:if condition="$show['deletedthread']">
<img src="{vb:stylevar imgdir_misc}/trashcan_small.gif" alt="{vb:rawphrase x_deleted_posts, {vb:raw thread.deletedcount}}" />
</vb:if>
<vb:if condition="$show['paperclip']">
<a href="javascript://" onclick="attachments({vb:raw thread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" /></a>
</vb:if>
<vb:if condition="$show['subscribed']">
<img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
</vb:if>
</div>
</div>
</div>

<!-- threadstats -->
<vb:if condition="!$show['notificationtype']">
<ul class="threadstats td alt" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">
<li>{vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;" class="understate">{vb:raw thread.replycount}</a></li>
<li>{vb:rawphrase views}: {vb:raw thread.views}</li>
<li class="hidden">{vb:rawphrase rating}{vb:raw thread.rating} / 5</li>
</ul>
</vb:if>
<!-- lastpost -->
<dl class="threadlastpost td<vb:if condition="$show['notificationtype']"> alt</vb:if>">
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
<dd>{vb:raw memberaction_dropdown}</dd>
<dd>{vb:raw thread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <em class="time">{vb:raw thread.lastposttime}</em></vb:if>
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</dd>
</dl>

<vb:if condition="$show['notificationtype']">
<!-- notification -->
<div class="threadnotification td" >
<label for="thread_imod_checkbox_{vb:raw thread.realthreadid}">{vb:raw thread.notification}</label>
</div>
<label class="threadimod td">
<input type="checkbox" name="deletebox[{vb:raw subscribethread.$threadid}]" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" value="yes" tabindex="1" />
</label>
</vb:if>

<vb:if condition="$show['inlinemod']">
<!-- fourth block -->
<label class="threadimod td alt">
<input type="checkbox" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" name="imodcheck[{vb:raw thread.realthreadid}]" tabindex="1" />
</label>
</vb:if>

</div>
</li>

computerangel
25-08-2011, 10:09 AM
Mod này hiện đang còn khá nhiều lỗi

Chức năng :
Tự động get ảnh ở trong bài viết, ko phải lấy từ file attach hay phải chèn thêm 1 filed là thumb khi post bài nữa
Nếu trong bài ko có thẻ thì nó sẽ get theo thẻ [youtube] để lấy ảnh của youtube làm thumb
Có thể tùy chỉnh độ lớn nhỏ của thumb với tùy từng box
Cách xài:
Import XML
Cấu trúc: tên box,tên box|dài,rộng
Mỗi cái ngăn = 1 phát xuống dòng
Mở template threadbit
Tìm

"></a>Thay bằng



">{vb:raw thread.chip_thumb}</a>[IMG]http://cC6.upanh.com/27.84.34341505.aZe0/f.jpg



So kỹ ra thì mod bạn đưa chưa phải cái này :
http://cc3.upanh.com/27.83.34341272.GRq0/1.jpg

Cái mình cần nó vẫn giữ nguyên icon thư mục, bên trong có thêm ảnh nữa

checknvh
25-08-2011, 10:16 AM
<li class="threadbit {vb:raw thread.statusstring}<vb:if condition="$show['paperclip']"> attachments</vb:if><vb:if condition="!$thread['postuserid'] AND !$thread['del_userid']"> guest</vb:if><vb:if condition="$thread['moderatedprefix']"> unapproved</vb:if>" id="thread_{vb:raw thread.realthreadid}">
<div class="rating{vb:raw thread.rating}<vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>">
<div class="threadinfo" title="{vb:raw thread.preview}">
<!-- status icon block -->
<a class="threadstatus" rel="vB::AJAX" <vb:if condition="$show['threadcount']">title="{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}"</vb:if>></a>

<!-- title / author block -->
<div class="inner">
<h3 class="threadtitle">
<vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
</vb:if>

<vb:if condition="$show['threadicon']">
<img src="{vb:raw thread.threadiconpath}" alt="{vb:raw thread.threadicontitle}" border="0" />
</vb:if>

<vb:if condition="$thread['sticky']">
<img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" />
</vb:if>

<vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix'] OR $thread['prefix_rich']">
<span class="prefix understate">
{vb:raw thread.movedprefix}
{vb:raw thread.typeprefix}
{vb:raw thread.moderatedprefix}
{vb:raw thread.prefix_rich}
</span>
</vb:if>
<a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">{vb:raw thread.threadtitle}</a>
</h3>


<div class="threadmeta">
<p class="threaddesc">{vb:raw thread.preview}</p>
<div class="author">
<vb:if condition="$show['rmanage']">
<span class="rmanage"><a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}postings.php?{vb:raw session.sessionurl}do=editthread&amp;t={vb:raw thread.redirectthreadid}">{vb:rawphrase manage}</a></span>
</vb:if>
<vb:if condition="!$show['detailedtime']">
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}, {vb:stylevar dirmark}}
<vb:else />
{vb:rawphrase started_by_x_y_z, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:stylevar dirmark}}
</vb:if>
<vb:if condition="$show['unsubscribe']">
&nbsp; <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newreply.php?{vb:raw session.sessionurl}do=newreply&amp;t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase reply}</a>
| <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}subscription.php?{vb:raw session.sessionurl}do=removesubscription&amp;retur n=ucp&amp;t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a>
</vb:if>
<vb:if condition="$thread['pagenav']">
<dl class="pagination" id="pagination_threadbit_{vb:raw thread.realthreadid}">
<dt class="label">{vb:raw thread.totalpages} {vb:rawphrase pages} <span class="separator">&bull;</span></dt>
<dd>
{vb:raw thread.pagenav}
<vb:if condition="$show['pagenavmore']"> <span class="separator">...</span> <span><a href="{vb:raw thread.lastpagelink}">{vb:raw thread.totalpages}</a></span></vb:if>
</dd>
</dl>
</vb:if>
</div>

</div>

</div>
<!-- iconinfo -->
<div class="threaddetails td">
<div class="threaddetailicons">
<vb:if condition="$show['taglist']">
<img src="{vb:stylevar imgdir_misc}/tag.png" alt="{vb:raw thread.taglist}" />
</vb:if>
<vb:if condition="$show['rexpires']">
<img src="{vb:stylevar imgdir_misc}/expires.gif" alt="{vb:rawphrase expires_on_x_y, {vb:raw thread.expiredate}, {vb:raw thread.expiretime}}" />
</vb:if>
<vb:if condition="$show['moderated']">
<img src="{vb:stylevar imgdir_misc}/moderated_small.gif" alt="{vb:rawphrase x_moderated_posts, {vb:raw thread.hiddencount}}" />
</vb:if>
<vb:if condition="$show['deletedthread']">
<img src="{vb:stylevar imgdir_misc}/trashcan_small.gif" alt="{vb:rawphrase x_deleted_posts, {vb:raw thread.deletedcount}}" />
</vb:if>
<vb:if condition="$show['paperclip']">
<a href="javascript://" onclick="attachments({vb:raw thread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" /></a>
</vb:if>
<vb:if condition="$show['subscribed']">
<img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
</vb:if>
</div>
</div>
</div>

<!-- threadstats -->
<vb:if condition="!$show['notificationtype']">
<ul class="threadstats td alt" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">
<li>{vb:rawphrase replies}: <a href="misc.php?do=whoposted&amp;t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;" class="understate">{vb:raw thread.replycount}</a></li>
<li>{vb:rawphrase views}: {vb:raw thread.views}</li>
<li class="hidden">{vb:rawphrase rating}{vb:raw thread.rating} / 5</li>
</ul>
</vb:if>
<!-- lastpost -->
<dl class="threadlastpost td<vb:if condition="$show['notificationtype']"> alt</vb:if>">
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
<dd>{vb:raw memberaction_dropdown}</dd>
<dd>{vb:raw thread.lastpostdate}<vb:if condition="!$show['detailedtime']">, <em class="time">{vb:raw thread.lastposttime}</em></vb:if>
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw pageinfo_lastpost.p}" class="lastpostdate understate" title="{vb:rawphrase go_to_last_post}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</dd>
</dl>

<vb:if condition="$show['notificationtype']">
<!-- notification -->
<div class="threadnotification td" >
<label for="thread_imod_checkbox_{vb:raw thread.realthreadid}">{vb:raw thread.notification}</label>
</div>
<label class="threadimod td">
<input type="checkbox" name="deletebox[{vb:raw subscribethread.$threadid}]" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" value="yes" tabindex="1" />
</label>
</vb:if>

<vb:if condition="$show['inlinemod']">
<!-- fourth block -->
<label class="threadimod td alt">
<input type="checkbox" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" name="imodcheck[{vb:raw thread.realthreadid}]" tabindex="1" />
</label>
</vb:if>

</div>
</li>
bạn để ý dòng mình bôi đỏ .
đồ lót gợi cảm ('http://doxinh.com/') quần áo đẹp ('http://doxinh.com/danh-muc/quan-ao-thoi-trang/') đồ lót nữ dễ thương ('http://doxinh.com/danh-muc/do-lot-nu/') đồ lót nam đẹp ('http://doxinh.com/danh-muc/do-lot-nam/') đồ chip cao cấp ('http://doxinh.com/danh-muc/do-lot-cao-cap/') đầm ngủ ('http://doxinh.com/danh-muc/do-lot-nu/do-ngu/') đồ bơi gợi cảm ('http://doxinh.com/danh-muc/do-boi/') nhãn hiệu đồ lót nổi tiếng ('http://doxinh.com/danh-muc/thuong-hieu-do-lot/')

computerangel
25-08-2011, 11:20 AM
mình làm đc rồi, nhưng có cách nào để nó hiện như này o nhỉ : http://cc3.upanh.com/27.83.34341272.GRq0/1.jpg






Hiện tại nó giống kiểu thế này : (mất mất biểu tượng bài viết)


http://cc6.upanh.com/27.84.34341505.aZe0/f.jpg

checknvh
25-08-2011, 11:32 AM
cái này thì phải chỉnh tem thôi bạn , còn chỉnh ra làm sao thì mình chưa thử . bạn thử chỉnh đi , ko đc lên đay hỏi tiếp .

computerangel
25-08-2011, 11:46 AM
Đoạn này nếu thêm thẻ br cho nó :

"><br><br><br>{vb:raw thread.chip_thumb}</a>

nó sẽ thành thế này :
demo: http://forum.xemlayeu.net/forumdisplay.php?69-Diễn-viên-Người-mẫu

Tức là xuống dòng 3 phát , thì ảnh không che nữa, nhưng giờ thay vì xuống dòng, mình lại xếp ngang hàng thì dùng đoạn code nào đc nhỉ ??

x2team
07-09-2011, 11:40 PM
Mod này hay nè, ai dùng rồi hay biết thì giúp với...


Đoạn này nếu thêm thẻ br cho nó :

"><br><br><br>{vb:raw thread.chip_thumb}</a>

nó sẽ thành thế này :
demo: http://forum.xemlayeu.net/forumdisplay.php?69-Diễn-viên-Người-mẫu (http://forum.xemlayeu.net/forumdisplay.php?69-Di%E1%BB%85n-vi%C3%AAn-Ng%C6%B0%E1%BB%9Di-m%E1%BA%ABu)

Tức là xuống dòng 3 phát , thì ảnh không che nữa, nhưng giờ thay vì xuống dòng, mình lại xếp ngang hàng thì dùng đoạn code nào đc nhỉ ??



Mình nghĩ là thay vì dùng thẻ xuống dòng, bạn thêm 1 cái thẻ tab hay là thẻ khoảng trắng gì đó thử xem có được ko? Mình hỏng biết thẻ tab & khoảng trắng trong vbb là gì hết à. hic hic...

x2team
10-09-2011, 09:58 AM
Thấy cái mod này hay hay nên cũng muốn dùng thử cho biết. Bác nào biết xin giúp đỡ với... :MatCuoi (17):