Page 1 of 2

Display feed-icon

Posted: 05 Mar 2010, 11:23
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

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

Posted: 16 Mar 2010, 18:59
by kber
find = replace with at forumlist_body.html part

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

Posted: 16 Mar 2010, 19:04
by Stoker
What do you mean kber?

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

Posted: 16 Mar 2010, 20:44
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

Posted: 16 Mar 2010, 20:46
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

Posted: 16 Mar 2010, 21:01
by kber
yes you are right , thanks !

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

Posted: 23 Mar 2010, 12:26
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

Posted: 23 Mar 2010, 12:52
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

Posted: 23 Mar 2010, 18:39
by Fire-Fox
Yes

It is working now :)

Re: Display feed-icon

Posted: 21 Jul 2010, 21:54
by Makoto
subsilver2? guide?