Display feed-icon

Guides & Snippets for phpBB3. Try the Snippets here and share Your own Snippets
There is no support here! Only Read Access!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

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
Board rules! No PM support
User avatar
kber
BBCoder II
BBCoder II
Posts: 7
Joined: 05 Mar 2010, 01:25
Contact:

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

Post by kber »

find = replace with at forumlist_body.html part
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

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

Post by Stoker »

What do you mean kber?
Board rules! No PM support
User avatar
kber
BBCoder II
BBCoder II
Posts: 7
Joined: 05 Mar 2010, 01:25
Contact:

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
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

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> -->
Board rules! No PM support
User avatar
kber
BBCoder II
BBCoder II
Posts: 7
Joined: 05 Mar 2010, 01:25
Contact:

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

Post by kber »

yes you are right , thanks !
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

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
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

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)
Board rules! No PM support
User avatar
Fire-Fox
BBCoder IV
BBCoder IV
Posts: 275
Joined: 22 Mar 2010, 13:24
Location: Denmark

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

Post by Fire-Fox »

Yes

It is working now :)
User avatar
Makoto
BBCoder II
BBCoder II
Posts: 12
Joined: 13 Mar 2010, 01:19

Re: Display feed-icon

Post by Makoto »

subsilver2? guide?
Locked