Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: kelvincool on February 08, 2015, 07:21:23 PM

Title: Targeting core theme specifically in modiication.xml
Post by: kelvincool on February 08, 2015, 07:21:23 PM
My mod has some additions to the stats page, as you may well know the core theme has a completely different stats template page to the default theme so the code for adding in the extra stats does not work for this. In order to support core I will need to target the core theme specifically, I'm wondering if the following is the correct way to do this:


<file name="$boarddir/Themes/core/Stats.template.php" error="skip">
<operation>
<search position="after">


This seems to work fine but the caveat is that it is mandatory and not like the usual way where you tick to apply to core theme. Is there a better way of doing this?

Many thanks
Title: Re: Targeting core theme specifically in modiication.xml
Post by: Antes on February 08, 2015, 07:35:02 PM
not really, unfortunately I had same problem long ago with my first mod.
Title: Re: Targeting core theme specifically in modiication.xml
Post by: live627 on February 09, 2015, 02:01:31 AM
<file name="$themes_dir/core/Stats.template.php">
<operation>
<search position="after">
Title: Re: Targeting core theme specifically in modiication.xml
Post by: kelvincool on February 12, 2015, 06:54:04 PM
Quote from: live627 on February 09, 2015, 02:01:31 AM
<file name="$themes_dir/core/Stats.template.php">
<operation>
<search position="after">


Many thanks live627, it's an improvement on what I got so far.