Thread Rating:
  • 7 Vote(s) - 3.86 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] How to completely remove post icons
#1
INTRODUCTION

There is no setting for disabling post icons all across the forums so we have to manually remove them from the templates, which is what I'll be showing you in this tutorial considering it has been asked around the forums quite a few times. For those who are interested, I also wrote a tutorial on how to completely remove thread status icons and another quick one on how to completely remove both post icons and thread status icons.

TUTORIAL

REMOVE FROM THREADS AND POSTS

1. Go to Admin CP > Templates & Style > Templates > Your Template Set > New Thread Templates > newthread.

2. Go to Admin CP > Templates & Style > Templates > Your Template Set > New Reply Templates > newreply.

3. Go to Admin CP > Templates & Style > Templates > Your Template Set > Edit Post Templates > editpost.

4. From all these templates, find and remove:

{$posticons}

5. Go to Admin CP > Templates & Style > Templates > Your Template Set > Forum Display Templates > forumdisplay_thread.

6. Find and remove:

<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>

7. Go to Admin CP > Templates & Style > Templates > Your Template Set > Forum Display Templates > forumdisplay_threadlist.

8. Find:

<td class="tcat" colspan="3" width="66%"><span class="smalltext">

9. Replace with:

<td class="tcat" colspan="2" width="66%"><span class="smalltext">

10. Go to Admin CP > Templates & Style > Templates > Your Template Set > Forum Display Templates > forumdisplay_announcements_announcement.

11. Find and remove:

<td align="center" class="{$bgcolor}" width="2%">&nbsp;</td>

12. Go to Admin CP > Templates & Style > Templates > Your Template Set > User Control Panel Templates > usercp_subscriptions_thread.

13. Find and remove:

<td align="center" class="trow2" width="1%">{$icon}</td>

14. Go to Admin CP > Templates & Style > Templates > Your Template Set > User Control Panel Templates > usercp_latest_subscribed_threads.

15. Find and remove:

<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>

16. Next, find:

<td class="{$bgcolor}">{$gotounread}{$thread['displayprefix']}<a href="{$thread['threadlink']}" class="{$new_class}">{$thread['subject']}</a><br /><span class="smalltext">{$thread['author']}</span></td>

17. Replace with:

<td class="{$bgcolor}" colspan="2">{$gotounread}{$thread['displayprefix']}<a href="{$thread['threadlink']}" class="{$new_class}">{$thread['subject']}</a><br /><span class="smalltext">{$thread['author']}</span></td>

18. Go to Admin CP > Templates & Style > Templates > Your Template Set > User Control Panel Templates > usercp_latest_threads_threads.

19. Find and remove:

<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>

20. Next, find:

<td class="{$bgcolor}" >{$gotounread}{$thread['displayprefix']}<a href="{$thread['threadlink']}" class="{$new_class}">{$thread['subject']}</a><br /><span class="smalltext">{$thread['author']}</span></td>

21. Replace with:

<td class="{$bgcolor}" colspan="2">{$gotounread}{$thread['displayprefix']}<a href="{$thread['threadlink']}" class="{$new_class}">{$thread['subject']}</a><br /><span class="smalltext">{$thread['author']}</span></td>

22. Go to Admin CP > Templates & Style > Templates > Your Template Set > Show Thread Templates > showthread_similarthreads_bit.

23. Find and remove:

<td align="center" class="{$trow}" width="2%">{$icon}</td>

24. Go to Admin CP > Templates & Style > Templates > Your Template Set > Search Templates > search_results_posts_post.

25. Go to Admin CP > Templates & Style > Templates > Your Template Set > Search Templates > search_results_threads_thread.

26. From these templates, find and remove:

<td align="center" class="{$bgcolor}" width="2%">{$icon}</td>

27. Go to Admin CP > Templates & Style > Templates > Your Template Set > Search Templates > search_results_posts.

28. Find:

<td colspan="9" class="thead">

29. Replace with:

<td colspan="8" class="thead">

30. Find:

<td class="tcat" align="center" colspan="3">

31. Replace with:

<td class="tcat" align="center" colspan="2">

32. Go to Admin CP > Templates & Style > Templates > Your Template Set > Search Templates > search_results_threads.

33. Find:

<td colspan="8" class="thead">

34. Replace with:

<td colspan="7" class="thead">

35. Find:

<td class="tcat" align="center" colspan="3">

36. Replace with:

<td class="tcat" align="center" colspan="2">

37. Go to Admin CP > Templates & Style > Templates > Your Template Set > Portal Templates > portal_announcement.

38. Go to Admin CP > Templates & Style > Templates > Your Template Set > Moderator Control Panel Templates > modcp_announcements_announcement.

39. Go to Admin CP > Templates & Style > Templates > Your Template Set > Moderator Control Panel Templates > modcp_announcements_announcement_global.

40. From all these templates, find and remove:

{$icon}

41. Go to Admin CP > Templates & Style > Templates > Your Template Set > Post Bit Templates > postbit.

42. Go to Admin CP > Templates & Style > Templates > Your Template Set > Post Bit Templates > postbit_classic.

43. From these templates, find and remove:

{$post['icon']}

44. Go to Admin CP > Templates & Style > Templates > Your Template Set > Show Thread Templates > showthread_similarthreads.

45. Find:

<td class="tcat" align="center" colspan="2">

46. Replace with:

<td class="tcat" align="center" colspan="1">


47. Go to Admin CP > Templates & Style > Templates > Your Template Set > Show Thread Templates > showthread_similarthreads_bit.

48. Find and remove:

<td align="center" class="{$trow}" width="2%">{$icon}</td>

REMOVE FROM PRIVATE MESSAGES

1. Go to Admin CP > Templates & Style > Templates > Your Template Set > Private Messaging Templates > private_send.

2. Find and remove:

{$posticons}

3. Go to Admin CP > Templates & Style > Templates > Your Template Set > Private Messaging Templates > private_messagebit.

4. Go to Admin CP > Templates & Style > Templates > Your Template Set > Private Messaging Templates > private_search_messagebit.

5. From these templates, find and remove:

<td align="center" class="trow2" width="1%">{$icon}</td>

6. Go to Admin CP > Templates & Style > Templates > Your Template Set > Private Messaging Templates > private.

7. Find:

<td class="tcat" align="center" colspan="3">

8. Replace with:

<td class="tcat" align="center" colspan="2">

CONCLUSION

Even after these lengthy modifications, post icons are still referenced in the database. That means if you reverted the modifications, post icons would go back to its place. So if you really want to delete post icons from the database, then you have to execute these SQL queries (in phpMyAdmin or a similar database manager) which will delete post icons from threads and posts:

UPDATE `mybb_threads` SET `icon` = '';

UPDATE `mybb_posts` SET `icon` = '';

Similarly, to delete post icons from private messages, execute this SQL query:

UPDATE `mybb_privatemessages` SET `icon` = ''; 

If you followed these steps precisely both New Thread and New Reply pages won't have that box to select the post icons from. And Forum Display pages won't have the post icon column anymore. See the examples below:

       
Reply
#2
Thnxx...
Reply
#3
Don't work fine as you think.
Try to create an announcement (not an important thread) and see the result.
I think this thing must be fixed.
Reply
#4
(03-23-2011, 01:54 PM)Løque Wrote: Don't work fine as you think.
Try to create an announcement (not an important thread) and see the result.
I think this thing must be fixed.

That's correct. There is another modification to remove icons column from 'announcement' area too;

In forumdisplay_announcements_announcement find and remove;
<td align="center" class="{$bgcolor}" width="2%">&nbsp;</td>

It should work.

For more info: http://yaldaram.com/showthread.php?tid=328
Reply
#5
Yes, thank you, I've been trying to reply but this website is constantly timing out.

I'll update the thread and the attachment as soon as I can.
Reply
#6
Now seems to be perfect!
Reply
#7
Most welcome and thanks faviouz Wink
Reply
#8
Thanks bro, i will be using this for sure.
I'm not here often, shoot a PM or whatever if you want my discord.
Reply
#9
Thank you, faviouz
good tutorial for beginner like me.
Reply
#10
Ehy faviouz, why not add the tutorial to remove icons from private messages also?

ACP/Themes & Templates/Templates/Your theme/Private Messaging Templates/private:

Find:
<td class="tcat" align="center" colspan="3">

Replace:
<td class="tcat" align="center" colspan="2">

ACP/Themes & Templates/Templates/Your theme/Private Messaging Templates/private_messagebit:

Remove:
<td align="center" class="trow2" width="1%">{$icon}</td>


ACP/Themes & Templates/Templates/Your theme/Private Messaging Templates/private_send:

Remove:
{$posticons}

The tutorial miss a thing, the icons are still viewable when a user edit a post.
Open: ACP/Themes & Templates/Templates/Your theme/Edit post templates/editpost.

Remove:
{$posticons}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)