Remove Forum icons only on index site

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Scam Warning
Locked
kjempestor
Registered User
Posts: 3
Joined: Mon Mar 08, 2010 6:45 pm

Remove Forum icons only on index site

Post by kjempestor »

I want to remove the forum icons only on the index site


Image

I have tried this code
Manhattan wrote:I can't understand what you mean exactly but try it:

Open forumlist_body:

Find:

Code: Select all

			<dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
				<dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">
Replace with:

Code: Select all

			<dl class="icon">
				<dt style="padding-left: 5px;" title="{forumrow.FORUM_FOLDER_IMG_ALT}">
Purge your template cache
but the the icons are gone in all forumlists. Is there any way around?
User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Re: Remove Forum icons only on index site

Post by stickerboy »

I believe this should work :)
If you want to get rid of the normal read/unread icons, you need to do a bit of CSS duplication and a small edit to forumlist_body.html - here's how it's done on 6SM.

OPEN: forumlist_body.html
FIND:

Code: Select all

	<!-- IF not forumrow.S_IS_CAT -->
		<li class="row">
			<dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
				<dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">
REPLACE WITH:

Code: Select all

	<!-- IF not forumrow.S_IS_CAT -->
		<li class="row">
<!--			<dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">	-->
			<dl class="icons">
				<dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">
OPEN: content.css
FIND:

Code: Select all

li.header dl.icon dt {
	/* Tweak for headers alignment when folder icon used */
	padding-left: 0;
	padding-right: 50px;
}
AFTER ADD:

Code: Select all

li.header dl.icons dt {
	/* Tweak for headers alignment when folder icon used */
	padding-left: 0;
	padding-right: 4px;
}
From memory that's all I changed and should work :geek:
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red
kjempestor
Registered User
Posts: 3
Joined: Mon Mar 08, 2010 6:45 pm

Re: Remove Forum icons only on index site

Post by kjempestor »

No, the resault is the same as the mod in the post above. I still want to keep the icons in the sub-forum lists.
User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Re: Remove Forum icons only on index site

Post by stickerboy »

Can you post a link to your site please? :)
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red
User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Remove Forum icons only on index site

Post by prototech »

Simply change:

Code: Select all

<dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
To:

Code: Select all

<dl<!-- IF SCRIPT_NAME eq 'viewforum' -->class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;"<!-- ENDIF -->>
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.
User avatar
pi0tr3k
Registered User
Posts: 58
Joined: Mon Jun 15, 2009 2:12 pm

Re: Remove Forum icons only on index site

Post by pi0tr3k »

Was just looking for this :)
Thanks, worked ;)
EpicImageHost, the best img hosting with following features:
- EpicSnapr | Ultimate EIH Tool | Screensnapr Alternative
- Firefox & Chrome Addons for easily remoting
- Many many More!
http://eih.bz
LeeV18
Registered User
Posts: 63
Joined: Fri Apr 09, 2010 3:43 pm

Re: Remove Forum icons only on index site

Post by LeeV18 »

Sorry for bumping this thread. I had a similar question. I tried to remove all the forums icon in all page and this happens:

Image

How do I fix this?
User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Remove Forum icons only on index site

Post by prototech »

In content.css, find:

Code: Select all

dl.icon dt {
	padding-left: 45px;					/* Space for folder icon */
	background-repeat: no-repeat;
	background-position: 5px 95%;		/* Position of topic icon */
}
Remove padding-left: 45px;, then refresh your theme.
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.
Locked

Return to “[3.0.x] Styles Support & Discussion”