MyBB Community Forums

Full Version: use thread ICON in "showthread" template, not "postbit"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In the following template:

Template Sets » Default Templates » Show Thread Templates: showthread

I want to show the "Post Icon" of the first post.

I know there is a "Post Icon" for the post in the "postbit" template, but I want it in the "showthread" template.

How can I do this?

I've tried {$thread['icon']} but this only puts the iconid (iid)

any ideas?
Where exactly do you want to place such icon? Do you have an example of any forum which uses such icon?

Regards
When you make a new "Thread" you have the choice of picking an icon (Post Icon).

that is the icon I am talking about
(2009-05-25, 02:22 AM)warrenb Wrote: [ -> ]When you make a new "Thread" you have the choice of picking an icon (Post Icon).

that is the icon I am talking about

He actually asked where you want to put it Toungue
In the showthread template, next to thread title
{$thread['lastposticon']}
(2009-05-25, 02:33 PM)ghazal Wrote: [ -> ]
{$thread['lastposticon']}

Thanks for the reply

I used that in the "showthread" template but it doesnt work.

<td class="thead" colspan="2">
				<div>
					<strong>{$thread['lastposticon']}{$thread['subject']} {$thread['subject_extra']}</strong>
				</div>
			</td>

This only shows the title of the thread, no icon.
Do You Want To Add New Icons ?
When User Make a New Thread They Insert New Icons In There Thread ?
Like Shown In Attachment ?

[attachment=13971]
[Image: ss750.png]

as you can see, I want to move the icon from the postbit template (where the icon is in the screenshot) to the showthread template (empty red circle in screenshot)

any ideas?
never mind, i created a custom function

problem solved