[Tutorial] Give your board3 portal blocks more icons

Post Reply

Topic author
Anthies
Active Member
Posts: 2
Joined: 20. February 2010 09:44
phpBB.com User: anthies

[Tutorial] Give your board3 portal blocks more icons

Post by Anthies »

This tutorial is based on subsilver2 edits.

These board3 portals' blocks don't contain an icon next to their titles: Recent topics (recent.html), Latest news (news_compact.html), Latest polls (polls.html) and Who is online (whois_online.html). We're going to give them the icon!

1. Navigate to your host's (where you keep your root folder) root/style/YOUR_STYLE/template and open portal/block/recent.html.

2.1 FIND:

Code: Select all

{$C_BLOCK_H_L}
2.2 ADD AFTER:

Code: Select all

<!-- IF $S_BLOCK_ICON --><img src="{T_THEME_PATH}/images/portal/NAME_OF_YOUR_ICON" width="16" height="16" alt="" />&nbsp;<!-- ENDIF --> 
3. FOR EXAMPLE:

Code: Select all

<!-- IF $S_BLOCK_ICON --><img src="{T_THEME_PATH}/images/portal/portal_recent_topics.png" width="16" height="16" alt="" />&nbsp;<!-- ENDIF --> 
Upload your portal's images to root/styles/NAME_OF_YOUR_STYLE/theme/images/portal/.

Open those recent.html, news_compact.html, polls.html and whois_online.html and always find the following code and always add that "ADD AFTER" code after:

Code: Select all

{$C_BLOCK_H_L}
Works like a dream on my board: CLICK TO WATCH

You can change the pixels of your icons (width, height) at anytime (you don't have to resize your icons via Paint or something else, this feature does it for you). Just widen or lengthen (you know what I mean, make it larger) them.

Regards and thanks, Anthies
Download my smilies package: HERE

Subsilver2 based useful code snippets: HERE
Post Reply

Return to “Modifications Support”