|
Mod: Display author avatar in Forumdisplay
Dz Version: 6.1 + 7.0.0
Edit : 02 files (css_common.htm + forumdisplay.htm)
Demo: NDV (6.1) + Nhatky12e.net (7.0)
================
01. Open css_common.htm
[Dz 6.1 + Dz 7.0.0] Add to the bottom
- /*mini-avatar in forumdisplay page by Vic.0*/
- td.author { width: 150px; text-align: left; }
- /*end minni-avatar by Vic.0 */
Sao chép mã
02. Open forumdisplay.htm
Dz 6.1
Find
- <td class="folder"><a href="viewthread.php?tid=$thread[tid]&extra=$extra" title="{lang target_blank}" target="_blank"><img src="{IMGDIR}/folder_$thread[folder].gif" /></a></td>
Sao chép mã
Replace by
- <!--Vic.0 avatar-->
- <div style="float:left;width:28px;padding-top:4px;">
- <img src="http://hi.netdepviet.org/s1/ucenter/avatar.php?uid=$thread[authorid]&size=small" class="ava_border" width="26px" height="26px" style="border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff;" />
- </div>
- <!--End Vic.0 Avatar-->
Sao chép mã
Dz 7.0
- <td class="folder">
- <a href="viewthread.php?tid=$thread[tid]&extra=$extra" title="{lang target_blank}" target="_blank">
- <!--{if $thread[folder] == 'lock'}-->
- <img src="{IMGDIR}/folder_lock.gif" alt="Lock" />
- <!--{elseif in_array($thread['displayorder'], array(1, 2, 3))}-->
- <img src="{IMGDIR}/pin_$thread[displayorder].gif" alt="$threadsticky[3-$thread[displayorder]]" />
- <!--{else}-->
- <img src="{IMGDIR}/folder_$thread[folder].gif" alt="$thread[folder]" />
- <!--{/if}-->
- </a>
- </td>
Sao chép mã
Replace by
- <!--Vic.0 avatar-->
- <div style="float:left;width:28px;padding-top:4px;">
- <img src="http://hi.netdepviet.org/s1/ucenter/avatar.php?uid=$thread[authorid]&size=small" class="ava_border" width="26px" height="26px" style="border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff;" />
- </div>
- <!--End Vic.0 Avatar-->
Sao chép mã |
|