Missing ATOM feeds icon in phpBB 3.0.6

> Coding, hacking, computer graphics, game dev, and such...
User avatar
fips
Site Admin
Posts: 170
Joined: Wed Nov 12, 2008 9:49 pm
Location: Prague
Contact:

Missing ATOM feeds icon in phpBB 3.0.6

Post by fips »

From version 3.0.6 phpBB finally supports ATOM Feeds! To enable this feature go to (GENERAL / Feed Settings). The tricky part is making the feed icon visible next to each of the forum icons. There's a piece of code that handles this in the default Prosilver style, however, it's been commented out for some reason. Bellow I'll describe how to add the icons to an older style, which was designed without feeds in mind (seems to be common case these days):

1. Copy the feed icon from Prosilver to YourStyle:
from: /styles/prosilver/theme/images/feed.gif
to: /styles/yourstyle/theme/images/feed.gif

2. Open the style template:
You can use Administration Control Panel:
STYLES / Themes / Edit / forumlist_body.html

3. Add the code responsible for feed icons:
Put it between lines (Line 1) and (Line 2)

Code: Select all

(Line 1)<dt title="{forumrow.FORUM_FOLDER_IMG_ALT...
<!-- IF S_ENABLE_FEEDS and forumrow.S_FEED_ENABLED --><a class="feed-icon-forum" title="{L_FEED} - {forumrow.FORUM_NAME}" href="{U_FEED}?f={forumrow.FORUM_ID}"><img src="{T_THEME_PATH}/images/feed.gif" alt="{L_FEED} - {forumrow.FORUM_NAME}" /></a><!-- ENDIF -->
(Line 2)<!-- IF forumrow.FORUM_IMAGE...
User avatar
fips
Site Admin
Posts: 170
Joined: Wed Nov 12, 2008 9:49 pm
Location: Prague
Contact:

The ATOM feeds icon in phpBB 3.0.9

Post by fips »

Note that in phpBB 3.0.9, Line1 & Line2 have been slightly modified:
Put the code below between the two highlighted lines:

Code: Select all

(Line 1)<dt title="{forumrow.FORUM_FOLDER_IMG_ALT}"...
<!-- IF S_ENABLE_FEEDS and forumrow.S_FEED_ENABLED --><a class="feed-icon-forum" title="{L_FEED} - {forumrow.FORUM_NAME}" href="{U_FEED}?f={forumrow.FORUM_ID}"><img src="{T_THEME_PATH}/images/feed.gif" alt="{L_FEED} - {forumrow.FORUM_NAME}" /></a><!-- ENDIF -->
(Line 2)<!-- IF forumrow.FORUM_IMAGE --...
Post Reply