Warning: The author of this contribution does not provide support for it anymore.

Default Topic Icon

Support for 3.3.x - Default Topic Icon

Support for 3.3.x

by phreakwars » Mon Dec 04, 2017 7:14 am

Yes this MOD will work in PhPBB 3.3.x

The instructions are just a hair different. I don't plan on creating an updated extension, but this is a very simple modification for you to do.

Simply open posting_editor.html in the style you are using I.E.

Code: Select all

styles/prosilver/template/posting_editor.html
FIND:

Code: Select all

<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
	<dl>
		<dt><label for="icon">{L_ICON}{L_COLON}</label></dt>
		<dd>
			<label for="icon"><input type="radio" name="icon" id="icon" value="0" checked="checked" tabindex="1" /> <!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></label>
			<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED} tabindex="1" /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="{topic_icon.ICON_ALT}" title="{topic_icon.ICON_ALT}" /></label> <!-- END topic_icon -->
		</dd>
	</dl>
	<!-- ENDIF -->
REPLACE WITH:

Code: Select all

	<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
	<dl>
		<dt><label for="icon">{L_ICON}{L_COLON}</label></dt>
		<dd>
			<!-- BEGIN topic_icon --><label for="icon-{topic_icon.ICON_ID}"><input type="radio" name="icon" id="icon-{topic_icon.ICON_ID}" value="{topic_icon.ICON_ID}" {topic_icon.S_ICON_CHECKED}{S_NO_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" /></label> <!-- END topic_icon -->
		</dd>
	</dl>
	<!-- ENDIF -->

This will inherit over to your other themes if they are set as Inherit from prosilver in the styles section of the ACP. Otherwise, you'll have to edit the posting_editor.html file of whichever style you want to do the modification on. Clear your board's cache after making the changes, and you should now have the Default Topic Icon modification on your own forum. No downloading needed. :D
MODS by me: Default Topic Icon
User avatar
phreakwars
Registered User
Posts: 242
Joined: Thu Feb 22, 2007 4:57 am
Location: Polaris Industries
Contact: