Display feed-icon

Guides & Snippets for phpBB3.
Try the Snippets here and share Your own Snippets

Display feed-icon

Post by Stoker »

Display feed-icon on forum index, viewforum and viewtopic
Written by djs596 and Stoker

Do the following if you want to display the feed-icon on forum index, viewforum and viewtopic.
Note that this is for phpBB 3.0.6

Subsilver2 feed icon instructions
Show the feed-icon on viewtopic
Note that you have to enable topic feeds in ACP.

Open styles/prosilver/template/viewtopic_body.html
Find:

Code: Select all

<!-- INCLUDE overall_header.html -->
After add:

Code: Select all

<!-- IF S_ENABLE_FEEDS and S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID -->
<a class="feed-icon-forum" title="{L_FEED} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}"><img src="{T_THEME_PATH}/images/feed.gif" title="{L_FEED} - {TOPIC_TITLE}" alt="{L_FEED}" /></a>
<!-- ENDIF -->
Screenshot:
viewtopic.png

Show the feed-icon on viewforum
Note that you have to enable forum feeds in ACP.

Open styles/prosilver/template/viewforum_body.html
Find:

Code: Select all

<!-- INCLUDE overall_header.html -->
After add:

Code: Select all

<!-- IF S_ENABLE_FEEDS and S_ENABLE_FEEDS_FORUM and S_FORUM_ID -->
<a class="feed-icon-forum" title="{L_FEED} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}"><img src="{T_THEME_PATH}/images/feed.gif" title="{L_FEED} - {FORUM_NAME}" alt="{L_FEED}" /></a>
<!-- ENDIF -->
Screenshot:
viewforum.png

Show the feed-icon on forum index Thanks djs ;)
Note that you have to enable forum feeds in ACP.

Open styles/prosilver/template/forumlist_body.html
Find:

Code: Select all

<!-- <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" title="{L_FEED} - {forumrow.FORUM_NAME}" /></a> -->
Replace with:

Code: Select all

<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" title="{L_FEED} - {forumrow.FORUM_NAME}" alt="{L_FEED}" /></a>
Screenshot:
forumindex.png

Upload the changed files and refresh template in ACP
You do not have the required permissions to view the files attached to this post.

Re: Display feed-icon on forum index, viewforum and viewtopi

Post by kber »

find = replace with at forumlist_body.html part

Re: Display feed-icon on forum index, viewforum and viewtopi

Post by Stoker »

What do you mean kber?

Re: Display feed-icon on forum index, viewforum and viewtopi

Post by kber »

Open styles/prosilver/template/forumlist_body.html
Find:

Code: Select all

 <!-- <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" title="{L_FEED} - {forumrow.FORUM_NAME}" /></a> -->

Replace with:

Code: Select all

<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" title="{L_FEED} - {forumrow.FORUM_NAME}" alt="{L_FEED}" /></a>
same code :D

Re: Display feed-icon on forum index, viewforum and viewtopi

Post by Stoker »

No, there is a small difference (in red):
<!-- <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" title="{L_FEED} - {forumrow.FORUM_NAME}" /></a> -->

Re: Display feed-icon on forum index, viewforum and viewtopi

Post by kber »

yes you are right , thanks !

Re: Display feed-icon on forum index, viewforum and viewtopi

Post by Fire-Fox »

I suppose it will take some time before the feed icon appear?

I have installed this mod on 3.0.7-PL1 version of phpBB

Re: Display feed-icon on forum index, viewforum and viewtopi

Post by Stoker »

It will work as soon as you refresh the template
(and offcourse only if feed is enabled)

Re: Display feed-icon on forum index, viewforum and viewtopi

Post by Fire-Fox »

Yes

It is working now :)

Re: Display feed-icon

Post by Makoto »

subsilver2? guide?