vB Version: 4.x.x
Last Update: Today
Тема на ОРГе:
http://www.vbulletin.org/forum/showthread.php?t=268618
Если в кратце на русском то данный хак выводить аватары на форумхом, перед названиями темы и так далее, немного красивее форум смотрица.
Раньше изменения было всего в 2-х шаблонах, но после обновления хака, что-то по более стало. Ну я думаю кто задасца целью не беда.
За живым просмотром хака в личку, позже сделаю на тестовом форуме.
What does this plugin do?
This plugin add user avatars to the thread listing in forum display page. See the sceenshot for sample.
How to Install the plugin?
This plugin requires you edit vBulletin templates.
Import the xml file from the product manager..
Edit the threadbit template.
Find
Code:
<vb:if condition="$show['threadicon']">
And add the following just above it.
Code:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.avatarurl}" border="0" /></a>
Find
Code:
<dt>{vb:rawphrase last_post_by}</dt>
тут я дополню, в некоторых версиях ищется так
Code:
{vb:rawphrase last_post_by}
Please note: Some custom templates have the above code as
Code:
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}</dt>
And add the following just above it.
Code:
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>
Edit forumhome_forumbit_level1_post and forumhome_forumbit_level2_post templates as follows.
Find
Code:
{vb:raw forum.lastpostinfo}
Code:
And add the following code just above it.
Code:
<a href="{vb:link member, {vb:raw forum}, null, 'real_lastposterid', 'real_lastposter'}"><img height="48px" width="48px" style="float:left;margin-right:4px" src="{vb:raw forum.avatarurl}" border="0" /></a>
Edit search_threadbit
Find the first occurrence of
Code:
<div class="inner">
And add after that
Code:
<a href="{vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}"><img height="32px" width="32px" style="float:left;margin:7px 4px 0 0" src="{vb:raw thread.avatarurl}" border="0" /></a>
Then again find
Code:
<dl class="threadlastpost td">
And add after that
Code:
<a href="{vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}"><img height="32px" width="32px" style="float:left;margin-right:4px" src="{vb:raw thread.lastposteravatarurl}" border="0" /></a>
Edit search_results_postbit
Find
Code:
<div class="contact">
And add after that
Code:
<a href="{vb:link member, {vb:raw post}, null, 'userid', 'username'}"><img height="32px" width="32px" style="float:left;margin-left:4px" src="{vb:raw post.avatarurl}" border="0" /></a>
Upgrading Instructions
If you are upgrading the plugin, just import the new plugin file and overwrite the existing plugins. Once done make the necessary edits to the search templates.
S
upport
This plugin is supported, so you can post your issues and queries either on my blog or in comments below.
History
Updated 21st August
Added support for avatars in search results.
Fixed bug for thread started by guests.
Updated 18th August
Avatar of sub forums last post bug fixed.
Updated 17th August
Added Support for avatars in forumhome
Avatars linked to member urls
Enjoy!!!