![]() |
[vB 4.2.2] Show post icon in "search result"
Hi guys and gals,
I have a question, which shouldn't be too hard I guess since we managed to do it in vb3, but can't get it to work in vb4. We have link "active topics" which shows you the most recent topics with activity. Basically it's a search query. This is the link: http://www.wijzijnvoetbal.nl/forum/s...e=vBForum_Post The problem is, the output (or the search results) does not show the post icon that the first post in the thread has as you can see here: https://vborg.vbsupport.ru/external/2014/01/6.png It only shows the "go to last post" icon. BUT!! Now here's what gives me hope!! In the subforum overview, you do see the posticon. As you can see here: https://vborg.vbsupport.ru/external/2014/01/7.png So somewhere, some code makes them appear before the thread title!! Could anyone tell me what code I need to add to which CSS in order to get the post icon to show in the search result overview? Many thanks in advance. |
A little bump. I'm willing to pay a small fee for this. :P.
|
Hi!
I have the same problem. Thanks! |
Hi again!
Any solution? Thanks --------------- Added [DATE]1415594587[/DATE] at [TIME]1415594587[/TIME] --------------- OK, this is my solution in search_threadbit Replace: Code:
<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> Code:
<img class="search_inline_left" src="{vb:raw thread.threadiconpath}" alt="{vb:raw thread.threadicontitle}"/> Code:
.search_inline_left { https://vborg.vbsupport.ru/external/2014/11/16.jpg |
Thanks for posting your solution. :)
|
There is an easier way that requires no CSS modification.
in search_threadbit Find: Code:
<vb:if condition="$thread['sticky']"> Paste this code in above it. If there isn't a blank line there make one. Code:
<vb:if condition="$show['threadicon']"> so the end result should look like this: Code:
...... https://vborg.vbsupport.ru/external/2015/10/12.jpg |
All times are GMT. The time now is 02:13 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|