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: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

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
NAPWR wrote: Nice, Stoker is Hot
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: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

Re: Display feed-icon

Post by Steve »

no prob forgot to mention about the feed image added to my post above ;)
NAPWR wrote: Nice, Stoker is Hot
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 803
Joined: 05 Mar 2010, 01:10
Extra Rank: Donator.png
BBCodes: 2000
Favourite BBCode: porn tube
Favourite MOD: Non of Stokers
Location: up your bum
Contact:

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
NAPWR wrote: Nice, Stoker is Hot
Locked