The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[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: 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: 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. |
#2
|
|||
|
|||
A little bump. I'm willing to pay a small fee for this. :P.
|
#3
|
|||
|
|||
Hi!
I have the same problem. Thanks! |
#4
|
|||
|
|||
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 { margin: 5px 2px 2px 5px; padding: 0px; float:{vb:stylevar left}; vertical-align: center; } |
Благодарность от: | ||
ozzy47 |
#5
|
||||
|
||||
Thanks for posting your solution.
|
#6
|
||||
|
||||
There is an easier way that requires no CSS modification.
in search_threadbit Find: Code:
<vb:if condition="$thread['sticky']"> <img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" /> </vb:if> Paste this code in above it. If there isn't a blank line there make one. Code:
<vb:if condition="$show['threadicon']"> <img src="{vb:raw thread.threadiconpath}" alt="{vb:raw thread.threadicontitle}" border="0" /> </vb:if> so the end result should look like this: Code:
...... <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> .......... |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|