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
Steve
BBCoder VI
BBCoder VI
Posts: 848
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Subsilver2 Display feed-icon

Post by Steve »

open styles/subsilver2/theme/stylesheet.css
find:

Code: Select all

.username-coloured {
	font-weight: bold;
}
after add:

Code: Select all

/* Feed icon in forumlist_body.html */
a.feed-icon-forum {
	float: right;
	margin: 3px;
}
open styles/subsilver2/template/forumlist_body.html
find:

Code: Select all

				<a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
add after:

Code: Select all

			<!-- 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 -->
subindex.PNG
open styles/subsilver2/template/viewforum_body.html
find:

Code: Select all

	<div id="pageheader">
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 -->
subforum.PNG
open styles/subsilver2/template/viewtopic_body.html
find:

Code: Select all

					<!-- IF U_BUMP_TOPIC --><a href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}">{L_BUMP_TOPIC}</a><!-- ENDIF -->
after add:

Code: Select all

 |
				<!-- IF S_ENABLE_FEEDS and S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><a 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 -->
subtopic.PNG
Refresh template and browser cahe also upload this feed image to your style/theme/images folder
feed.gif
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
User avatar
Makoto
BBCoder II
BBCoder II
Posts: 12
Joined: 13 Mar 2010, 01:19

Re: Display feed-icon

Post by Makoto »

thankss
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 848
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: Display feed-icon

Post by Steve »

no prob forgot to mention about the feed image added to my post above ;)
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 848
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: Display feed-icon

Post by Steve »

Some nice rss feed icons i made with paintshop pro 12 using a glass globe effect and layers .
Demo:
feed.PNG
Download:
rssfeeds.zip
but remeber to change the code for the image source in either the index_body.html ,viewforum_body.html or viewtopic_body.html finds for example.

find:

Code: Select all

<img src="{T_THEME_PATH}/images/feed.gif" alt="{L_FEED} - {forumrow.FORUM_NAME}" />
replace with:

Code: Select all

<img src="{T_THEME_PATH}/images/feedpink.png" alt="{L_FEED} - {forumrow.FORUM_NAME}" />
all ichanged was:

Code: Select all

feed.gif"
too:

Code: Select all

feedpink.png
all file formats are .png
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
Locked