форум vBSupport.ru > Форумные движки и CMS (Порталы) > CMS (Portals) > vBadvanced CMPS
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
fr0x
Продвинутый
 
fr0x's Avatar
Default Аватар для модуля последних тем
2

Хотите добавить аватары топикстартеров к Вашему модулю Последних тем? Тогда этот vb-модуль для Вас!



Модуль взят отсюда: http://www.vbadvanced.com/forum/showthread.php?t=39990
Да, он сделан для VB4, но отлично подходит для vB3. Сам пользуюсь.

Инструкция взята отсюда: http://www.vbadvanced.com/forum/showthread.php?t=39746 (модуль из этой темы не рабочий, ну и ладно )

Установка:
Зайдите в админ-панель -> Продукты и модули -> Сохранить/загрузить модули
и импортируйте .xml модуль из аттачей

Далее идите в редактирование шаблонов.
В шаблоне adv_portal_recthreads_exp замените всё содержимое на:
HTML Code:
<tr>
<td class="$bgclass">
<img height="40px" width="40px" src="$thread[avatarurl]" class="inlineimg" border="0" /></td>
<td class="$bgclass">
<if condition="$thread['subscribed'] OR $show['paperclip'] OR ($thread['sticky'] AND $mod_options['portal_threads_stickyicon'])">
		
<span style="float:$stylevar[right]">	
<if condition="$thread['subscribed']">		
<img alt="" class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" title="$vbphrase[you_are_subscribed_to_this_thread]" /></if>
			
<if condition="$show['paperclip']">		
<a href="#" onclick="vba_attach_win($thread[threadid]); return false"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" border="0" title="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" alt="" /></a></if>
			
<if condition="$thread['sticky'] AND $mod_options['portal_threads_stickyicon']">
				
<img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" title="$vbphrase[sticky_thread]" alt="" /></if>
		</span>
		</if>
		<if condition="$mod_options['portal_threads_newpostarrow'] AND $show['gotonewpost']">
			<a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$thread[threadid]&amp;goto=newpost"><img alt="$vbphrase[go_to_first_new_post]" src="$stylevar[imgdir_button]/firstnew.gif" border="0" class="inlineimg" /></a>
		</if>
		$thread[prefix]
		<a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$thread[threadid]" title="$thread[preview]">
<if condition="$show['gotonewpost']">$thread[title]</strong><else />$thread[title]</if></a>
		<if condition="$mod_options['portal_threads_multipage'] AND $show['pagenav']">
			
<span class="smallfont">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" border="0" alt="" /> $thread[pagenav]<if condition="$show[pagenavmore]">... <a href="$vboptions[bburl]/showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]">$vbphrase[last_page]</a></if>)</span>
		</if>
		<if condition="$thread['rating']">
			<span style="float:$stylevar[right]"><img alt="" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" title="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span>
		</if>
		<if condition="$mod_options['portal_threads_threadstarter']">
			
<div class="smallfont">
				
<if condition="$thread[postuserid]">
					
<span style="cursor:pointer" onclick="window.open('$vboptions[bburl]/member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
				<else />
					$thread[postusername]
				</if>
			</div>
		</if>
		<if condition="$mod_options['portal_threads_showdate']">
<div class="smallfont">$thread[postdate] <span class="time">$thread[posttime]</span></div></if>
</td>
	
<if condition="$show['lastpost']">
<td class="$bgclass">	
<span class="smallfont">
Last Post: $thread[lastposter]<br />
Date: $thread[lastpostdate]<br />
<a href="$vboptions[bburl]/showthread.php?$session[sessionurl]p=$thread[lastpostid]#post$thread[lastpostid]"><u>Read Latest Post...</u></a>
</span>
</td>
</if>
<if condition="$mod_options['portal_threads_replies']">
<td align="center" class="$class_reply">
<span class="smallfont">
Reply: $thread[replycount]</span>
</if>
<br />
<if condition="$mod_options['portal_threads_views']">
<span class="smallfont">Views: $thread[views]</span>
</td>
</if>
	<if condition="$mod_options['portal_threads_showforum']">
<td class="$class_ftitle"><span class="smallfont"><a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></span></td></if></tr>
Сохраните и откройте шаблон adv_portal_recthreads_exp_head.
Замените всё содержимое шаблона на:
HTML Code:
<tr>
<td class="thead" width="10%">&nbsp;</td>
	<td class="thead" width="50%"><if condition="$mod_options['portal_threads_showrating']"><span style="float:$stylevar[right]">$vbphrase[rating]</span></if>$vbphrase[title_username_date]</td>
	<if condition="$mod_options['portal_threads_lastpost']">
		<td align="center" class="thead" style="white-space: nowrap" width="25%">Latest Posts By Members</td>
	</if>
	<if condition="$mod_options['portal_threads_replies']">
		
<td class="thead" width="15%">Reply/Views</td>
	</if>
	
	<if condition="$mod_options['portal_threads_showforum']">
		<td align="center" class="thead" width="20%">$vbphrase[forum]</td>
	</if>
</tr>
Всё! Можете обновлять главную страницу и любоваться.

ps: прошу прощения за такой скриншот, у меня не стандартный module_wrapper и поэтому мне не показать, как выглядит данный хак в обычном виде :P
Attached Thumbnails
blackthornDEMO.PNG  
Attached Files
File Type: xml bt_cmpsrctavatar.xml (705 Bytes, 5 views)
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 12:08 AM.


Powered by vBulletin® Version 3.0.9
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...