1. 4FipS.com
  2. Photos
  3. Videos
  4. Code
  5. Forums
  6. pfQuizzz
  7. About

4FipS.com Forums

Forums dedicated to the projects hosted at 4FipS.com

Skip to content

Missing ATOM feeds icon in phpBB 3.0.6

> About coding, hacking, photography, and such...

Missing ATOM feeds icon in phpBB 3.0.6

Postby FipS on Tue Dec 22, 2009 5:00 pm

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: 144
Joined: Wed Nov 12, 2008 9:49 pm
Location: Prague

Missing ATOM feeds icon in phpBB 3.0.6

Sponsor

Sponsor
 

The ATOM feeds icon in phpBB 3.0.9

Postby FipS on Wed Jul 27, 2011 7:03 pm

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 --...
User avatar
FipS
Site Admin
 
Posts: 144
Joined: Wed Nov 12, 2008 9:49 pm
Location: Prague


Return to 4FipS.com General Discussion & Blog

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests

cron