MyBB Community Forums

Full Version: Post icons removal question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

MikeInToshx

Hey guys

Although the post icons on my theme are not visible, they are still there.
When I go to 'new posts today' It does show the post icons.

Now, I found a tutorial on how to remove them, but will it also remove them from the new posts ?:
[attachment=30615]

Also, could I replace the first icons? (idk the name for a moment.. lol. The blue folders...) with 40x37px icons? I'd use the same as my thread icons.

Cheers.
Go in AdminCP -> Templates & Style -> Templates -> click on template used by your current theme -> Search Templates -> and click (to edit) "search_results_threads_thread".

Replace first 4 lines:
<tr>
	<td align="center" class="{$bgcolor}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif"  alt="{$folder_label}" title="{$folder_label}" /></td>
	<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>
	<td class="{$bgcolor}">

with:
<tr>
	<td align="center" colspan="2" class="{$bgcolor}" width="4%"><img src="{$theme['imgdir']}/on.png"  alt="YOUR DESCRIPTION" title="YOUR DESCRIPTION" /></td>
	<td class="{$bgcolor}">	
where:
src="{$theme['imgdir']}/on.png" => path to your image(icon)
alt="YOUR DESCRIPTION" title="YOUR DESCRIPTION" => text that is shown on mouse hover.

That's all.

MikeInToshx

Hi, thankyou for your answer,

there is 1 little thing though, I'd like to have it the same as my thread icons. Where it also shows if the post is "hot" or "new" or "locked".

Right now it has the same icons as my index forum icons.

Cheers
(2013-11-29, 05:03 PM)MikeInToshx Wrote: [ -> ]there is 1 little thing though, I'd like to have it the same as my thread icons. Where it also shows if the post is "hot" or "new" or "locked".
Oh, sorry. Ok. Use this code:
<tr>
	<td align="center" colspan="2" class="{$bgcolor}" width="4%"><img src="{$theme['imgdir']}/{$folder}.gif"  alt="{$folder_label}" title="{$folder_label}" /></td>
	<td class="{$bgcolor}">

This will keep your "thread icons" and will show also if the post is "hot" or "new".
All you must to do is to replace those images (example: yourthemedir/images/on.gif) with you custom images and take care if are "gif" or "png". If your icons are "png", replace extension in code:
img src="{$theme['imgdir']}/{$folder}.png"

L.E.: Nice forum, btw. Smile

MikeInToshx

(2013-11-29, 05:44 PM)Flavius Popa Wrote: [ -> ]
(2013-11-29, 05:03 PM)MikeInToshx Wrote: [ -> ]there is 1 little thing though, I'd like to have it the same as my thread icons. Where it also shows if the post is "hot" or "new" or "locked".
Oh, sorry. Ok. Use this code:
<tr>
	<td align="center" colspan="2" class="{$bgcolor}" width="4%"><img src="{$theme['imgdir']}/{$folder}.gif"  alt="{$folder_label}" title="{$folder_label}" /></td>
	<td class="{$bgcolor}">

This will keep your "thread icons" and will show also if the post is "hot" or "new".
All you must to do is to replace those images (example: yourthemedir/images/on.gif) with you custom images and take care if are "gif" or "png". If your icons are "png", replace extension in code:
img src="{$theme['imgdir']}/{$folder}.png"

L.E.: Nice forum, btw. Smile

Thanks, didn't see your last post, meanwhile I changed theme though haha Big Grin