Page 1 of 1

Missing ATOM feeds icon in phpBB 3.0.6

PostPosted: Tue Dec 22, 2009 5:00 pm
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...

The ATOM feeds icon in phpBB 3.0.9

PostPosted: Wed Jul 27, 2011 7:03 pm
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 --...